summaryrefslogtreecommitdiffstats
path: root/drivers/net/mlx4/en_rx.c
diff options
context:
space:
mode:
authorAmerigo Wang <amwang@redhat.com>2010-08-17 23:51:18 +0200
committerDavid S. Miller <davem@davemloft.net>2010-08-23 06:43:58 +0200
commitf3c58aceaa3f237ba43735805f4677950327b8ee (patch)
treed847af6efead20dc3eeea2c6cb73be097d507a7a /drivers/net/mlx4/en_rx.c
parentxen: use less generic names in netfront driver. (diff)
downloadlinux-f3c58aceaa3f237ba43735805f4677950327b8ee.tar.xz
linux-f3c58aceaa3f237ba43735805f4677950327b8ee.zip
mlx4: remove num_lro parameter
As suggested by David, this parameter can die, we can use ethtool to turn LRO on/off. Compile tests only. Signed-off-by: WANG Cong <amwang@redhat.com> 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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/mlx4/en_rx.c b/drivers/net/mlx4/en_rx.c
index efc3fad468db..2add04025fd0 100644
--- a/drivers/net/mlx4/en_rx.c
+++ b/drivers/net/mlx4/en_rx.c
@@ -320,9 +320,9 @@ int mlx4_en_create_rx_ring(struct mlx4_en_priv *priv,
ring->lro.frag_align_pad = NET_IP_ALIGN;
ring->lro.ip_summed = CHECKSUM_UNNECESSARY;
ring->lro.ip_summed_aggr = CHECKSUM_UNNECESSARY;
- ring->lro.max_desc = mdev->profile.num_lro;
+ ring->lro.max_desc = MLX4_EN_MAX_LRO_DESCRIPTORS;
ring->lro.max_aggr = MAX_SKB_FRAGS;
- ring->lro.lro_arr = kcalloc(mdev->profile.num_lro,
+ ring->lro.lro_arr = kcalloc(MLX4_EN_MAX_LRO_DESCRIPTORS,
sizeof(struct net_lro_desc),
GFP_KERNEL);
if (!ring->lro.lro_arr) {