diff options
author | Yevgeny Petrilin <yevgenyp@mellanox.co.il> | 2009-06-20 22:16:02 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-06-21 19:18:06 -0700 |
commit | 7237b400554c9bb5ba0091b5e39f4620f3dd5637 (patch) | |
tree | f04e7d47c85b1a959995b3515115b11b717c5285 /drivers/net/mlx4/en_tx.c | |
parent | 3c05f5ef7c09291e51ae327e854bf43cb8e55a55 (diff) | |
download | linux-7237b400554c9bb5ba0091b5e39f4620f3dd5637.tar.gz linux-7237b400554c9bb5ba0091b5e39f4620f3dd5637.tar.bz2 linux-7237b400554c9bb5ba0091b5e39f4620f3dd5637.zip |
mlx4_en: Removed redundant check on lso header size
This check that verifies that the LSO header along with control
segment and first data segment do not cross 128 bytes is no longer
required.
Signed-off-by: Yevgeny Petrilin <yevgenyp@mellanox.co.il>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/mlx4/en_tx.c')
-rw-r--r-- | drivers/net/mlx4/en_tx.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/net/mlx4/en_tx.c b/drivers/net/mlx4/en_tx.c index 99a6a36dc27b..08c43f2ae72b 100644 --- a/drivers/net/mlx4/en_tx.c +++ b/drivers/net/mlx4/en_tx.c @@ -518,11 +518,6 @@ static int get_real_size(struct sk_buff *skb, struct net_device *dev, return 0; } } - if (unlikely(*lso_header_size > MAX_LSO_HDR_SIZE)) { - if (netif_msg_tx_err(priv)) - en_warn(priv, "LSO header size too big\n"); - return 0; - } } else { *lso_header_size = 0; if (!is_inline(skb, NULL)) |