Skip to content

Commit

Permalink
netxen: suppress false lro warning messages
Browse files Browse the repository at this point in the history
When interface is down, driver prints false warning messages
during lro configuration through ethtool.

Signed-off-by: Sucheta Chakraborty <sucheta.chakraborty@qlogic.com>
Signed-off-by: Amit Kumar Salecha <amit.salecha@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Sucheta Chakraborty authored and David S. Miller committed Jun 3, 2011
1 parent fe09bb6 commit 34624d6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drivers/net/netxen/netxen_nic_hw.c
Original file line number Diff line number Diff line change
Expand Up @@ -809,6 +809,9 @@ int netxen_config_hw_lro(struct netxen_adapter *adapter, int enable)
u64 word;
int rv = 0;

if (!test_bit(__NX_FW_ATTACHED, &adapter->state))
return 0;

memset(&req, 0, sizeof(nx_nic_req_t));

req.qhdr = cpu_to_le64(NX_HOST_REQUEST << 23);
Expand Down Expand Up @@ -959,6 +962,9 @@ int netxen_send_lro_cleanup(struct netxen_adapter *adapter)
u64 word;
int rv;

if (!test_bit(__NX_FW_ATTACHED, &adapter->state))
return 0;

memset(&req, 0, sizeof(nx_nic_req_t));
req.qhdr = cpu_to_le64(NX_HOST_REQUEST << 23);

Expand Down

0 comments on commit 34624d6

Please sign in to comment.