diff options
author | Eric Dumazet <edumazet@google.com> | 2014-10-05 13:35:22 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-10-06 09:04:16 +0400 |
commit | 1556b8746e52501fdfaadd65837baaa63a9fa937 (patch) | |
tree | 33befd15a97dcb8bb8b3a78bc6d355caf2d37f59 /drivers/net/ethernet/mellanox/mlx4/en_tx.c | |
parent | 1255a5055449781a92076fc5429952f2b33cf309 (diff) | |
download | linux-1556b8746e52501fdfaadd65837baaa63a9fa937.tar.xz |
net/mlx4_en: Use the new tx_copybreak to set inline threshold
Instead of setting inline threshold using module parameter only on
driver load, use set_tunable() to set it dynamically.
No need to store the threshold per ring, using instead the netdev global
priv->prof->inline_thold
Initial value still is set using the module parameter, therefore
backward compatability is kept.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx4/en_tx.c')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx4/en_tx.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/en_tx.c b/drivers/net/ethernet/mellanox/mlx4/en_tx.c index f0080c5417c3..92a7cf46d9af 100644 --- a/drivers/net/ethernet/mellanox/mlx4/en_tx.c +++ b/drivers/net/ethernet/mellanox/mlx4/en_tx.c @@ -66,7 +66,6 @@ int mlx4_en_create_tx_ring(struct mlx4_en_priv *priv, ring->size = size; ring->size_mask = size - 1; ring->stride = stride; - ring->inline_thold = priv->prof->inline_thold; tmp = size * sizeof(struct mlx4_en_tx_info); ring->tx_info = kmalloc_node(tmp, GFP_KERNEL | __GFP_NOWARN, node); |