diff options
author | Michał Mirosław <mirq-linux@rere.qmqm.pl> | 2011-04-15 04:50:49 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-04-15 15:50:41 -0700 |
commit | c8c64cff2c88b17fdd7402dd06288d7415896430 (patch) | |
tree | b089cdcda51dd22560da97abea15afdc656ab777 /drivers/net/mlx4/en_rx.c | |
parent | 569e146396cb3b378d2957b94671bf30cd777c67 (diff) | |
download | linux-c8c64cff2c88b17fdd7402dd06288d7415896430.tar.bz2 |
net: mlx4: convert to hw_features
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/mlx4/en_rx.c')
-rw-r--r-- | drivers/net/mlx4/en_rx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/mlx4/en_rx.c b/drivers/net/mlx4/en_rx.c index 62dd21b06df4..277215fb9d72 100644 --- a/drivers/net/mlx4/en_rx.c +++ b/drivers/net/mlx4/en_rx.c @@ -584,7 +584,7 @@ int mlx4_en_process_rx_cq(struct net_device *dev, struct mlx4_en_cq *cq, int bud ring->bytes += length; ring->packets++; - if (likely(priv->rx_csum)) { + if (likely(dev->features & NETIF_F_RXCSUM)) { if ((cqe->status & cpu_to_be16(MLX4_CQE_STATUS_IPOK)) && (cqe->checksum == cpu_to_be16(0xffff))) { priv->port_stats.rx_chksum_good++; |