net: mlx4: convert to hw_features
[pandora-kernel.git] / drivers / net / mlx4 / en_rx.c
index 62dd21b..277215f 100644 (file)
@@ -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++;