]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Fix inline header size calculation
authorSaeed Mahameed <saeedm@mellanox.com>
Thu, 12 Nov 2015 17:35:25 +0000 (19:35 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 15 Nov 2015 23:43:40 +0000 (18:43 -0500)
commit92798b774d72b3ea0682358388f95bd08dbec417
tree0e410e70db169b915554c673d5b2dfc02c4f0bf1
parent1c3500a56b6f229d780ac2917effa9cae7db0273
net/mlx5e: Fix inline header size calculation

mlx5e_get_inline_hdr_size didn't take into account the vlan insertion
into the inline WQE segment.
This could lead to max inline violation in cases where
skb_headlen(skb) + VLAN_HLEN >= sq->max_inline.

Fixes: 0a426105a8a9 ("net/mlx5e: Fix LSO vlan insertion")
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Achiad Shochat <achiad@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en_tx.c