mirror of https://gitee.com/openkylin/linux.git
netxen: suppress false lro warning messages
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>
This commit is contained in:
parent
fe09bb6190
commit
34624d6631
|
@ -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);
|
||||
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue