]> Pileus Git - ~andy/linux/blobdiff - drivers/net/ethernet/mellanox/mlx4/en_netdev.c
mlx4: 64-byte CQE/EQE support
[~andy/linux] / drivers / net / ethernet / mellanox / mlx4 / en_netdev.c
index edd9cb8d3e1d8f09cc1715ddee967b5fa58181fd..93a3256695825bb3a535143aa7878dfbe9d9cedd 100644 (file)
@@ -1600,6 +1600,7 @@ int mlx4_en_init_netdev(struct mlx4_en_dev *mdev, int port,
                goto out;
        }
        priv->rx_ring_num = prof->rx_ring_num;
+       priv->cqe_factor = (mdev->dev->caps.cqe_size == 64) ? 1 : 0;
        priv->mac_index = -1;
        priv->msg_enable = MLX4_EN_MSG_LEVEL;
        spin_lock_init(&priv->stats_lock);