net/mlx5e: Copy all L2 headers into inline segment
authorMatthew Finlay <matt@mellanox.com>
Thu, 30 Jun 2016 14:34:47 +0000 (17:34 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Jul 2016 10:12:04 +0000 (06:12 -0400)
commite3a19b53cbb0e6738b7a547f262179065b72e3fa
tree0a006d50da7448edb953a4003504edc72761e1b8
parent6cd392a082deca8accec5c50b5b3fc1a9de5bfa2
net/mlx5e: Copy all L2 headers into inline segment

ConnectX4-Lx uses an inline wqe mode that currently defaults to
requiring the entire L2 header be included in the wqe.
This patch fixes mlx5e_get_inline_hdr_size() to account for
all L2 headers (VLAN, QinQ, etc) using skb_network_offset(skb).

Fixes: e586b3b0baee ("net/mlx5: Ethernet Datapath files")
Signed-off-by: Matthew Finlay <matt@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en_tx.c