diff options
author | Michał Mirosław <mirq-linux@rere.qmqm.pl> | 2011-04-19 05:03:57 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-04-20 10:30:44 +0200 |
commit | 135d84a9f28854f875f32f97485737b0013c99d6 (patch) | |
tree | 5e42b4b9321c7a69908090efde029517cc868191 /drivers/net/qlcnic/qlcnic_init.c | |
parent | net: ibmveth: convert to hw_features (diff) | |
download | linux-135d84a9f28854f875f32f97485737b0013c99d6.tar.xz linux-135d84a9f28854f875f32f97485737b0013c99d6.zip |
net: qlcnic: convert to hw_features
Bit more than minimal conversion. There might be some issues because
of qlcnic_set_netdev_features() if it's called after netdev init.
Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/qlcnic/qlcnic_init.c')
-rw-r--r-- | drivers/net/qlcnic/qlcnic_init.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/qlcnic/qlcnic_init.c b/drivers/net/qlcnic/qlcnic_init.c index 4ec0eeb6bff9..d0f338b01396 100644 --- a/drivers/net/qlcnic/qlcnic_init.c +++ b/drivers/net/qlcnic/qlcnic_init.c @@ -1390,8 +1390,8 @@ static struct sk_buff *qlcnic_process_rxbuf(struct qlcnic_adapter *adapter, skb = buffer->skb; - if (likely(adapter->rx_csum && (cksum == STATUS_CKSUM_OK || - cksum == STATUS_CKSUM_LOOP))) { + if (likely((adapter->netdev->features & NETIF_F_RXCSUM) && + (cksum == STATUS_CKSUM_OK || cksum == STATUS_CKSUM_LOOP))) { adapter->stats.csummed++; skb->ip_summed = CHECKSUM_UNNECESSARY; } else { |