Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 215114
b: refs/heads/master
c: a2152d0
h: refs/heads/master
v: v3
  • Loading branch information
Amit Kumar Salecha authored and David S. Miller committed Oct 8, 2010
1 parent a0df0b3 commit 39c2b4a
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b8c17620458b82fd868f4813e1ff18368a832b7c
refs/heads/master: a2152d096e0cd8593e883f72e875195ea0e89bb7
4 changes: 2 additions & 2 deletions trunk/drivers/net/qlcnic/qlcnic_ethtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -865,7 +865,7 @@ static int qlcnic_set_rx_csum(struct net_device *dev, u32 data)
return 0;
}

if (adapter->flags & QLCNIC_LRO_ENABLED) {
if (dev->features & NETIF_F_LRO) {
if (qlcnic_config_hw_lro(adapter, QLCNIC_LRO_DISABLED))
return -EIO;

Expand Down Expand Up @@ -1062,7 +1062,7 @@ static int qlcnic_set_flags(struct net_device *netdev, u32 data)
return -EINVAL;
}

if ((data & ETH_FLAG_LRO) && (adapter->flags & QLCNIC_LRO_ENABLED))
if ((data & ETH_FLAG_LRO) && (netdev->features & NETIF_F_LRO))
return 0;

if (data & ETH_FLAG_LRO) {
Expand Down
5 changes: 0 additions & 5 deletions trunk/drivers/net/qlcnic/qlcnic_hw.c
Original file line number Diff line number Diff line change
Expand Up @@ -582,9 +582,6 @@ int qlcnic_config_hw_lro(struct qlcnic_adapter *adapter, int enable)
u64 word;
int rv;

if ((adapter->flags & QLCNIC_LRO_ENABLED) == enable)
return 0;

memset(&req, 0, sizeof(struct qlcnic_nic_req));

req.qhdr = cpu_to_le64(QLCNIC_HOST_REQUEST << 23);
Expand All @@ -599,8 +596,6 @@ int qlcnic_config_hw_lro(struct qlcnic_adapter *adapter, int enable)
dev_err(&adapter->netdev->dev,
"Could not send configure hw lro request\n");

adapter->flags ^= QLCNIC_LRO_ENABLED;

return rv;
}

Expand Down
2 changes: 0 additions & 2 deletions trunk/drivers/net/qlcnic/qlcnic_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -657,8 +657,6 @@ qlcnic_check_options(struct qlcnic_adapter *adapter)
dev_info(&pdev->dev, "firmware v%d.%d.%d\n",
fw_major, fw_minor, fw_build);

adapter->flags &= ~QLCNIC_LRO_ENABLED;

if (adapter->ahw.port_type == QLCNIC_XGBE) {
adapter->num_rxd = DEFAULT_RCV_DESCRIPTORS_10G;
adapter->num_jumbo_rxd = MAX_JUMBO_RCV_DESCRIPTORS_10G;
Expand Down

0 comments on commit 39c2b4a

Please sign in to comment.