net/mlx5e: Fix inline header size for small packets
authorMoshe Shemesh <moshe@mellanox.com>
Tue, 8 Aug 2017 12:56:37 +0000 (15:56 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Wed, 30 Aug 2017 18:20:43 +0000 (21:20 +0300)
commit6aace17e64f4aa1c49802c46bd10688968b3787f
treeb48f81b9492882c33445d3a338658eb6b399dd6b
parent191220396db840822fc818edf03c49f0c02eb237
net/mlx5e: Fix inline header size for small packets

Fix inline header size, make sure it is not greater than skb len.
This bug effects small packets, for example L2 packets with size < 18.

Fixes: ae76715d153e ("net/mlx5e: Check the minimum inline header mode before xmit")
Signed-off-by: Moshe Shemesh <moshe@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tx.c