ixgbe/ixgbevf: Enables TSO for MPLS encapsulated packets
authorScott Peterson <scott.d.peterson@intel.com>
Fri, 18 Nov 2016 19:25:42 +0000 (11:25 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 31 May 2017 11:16:28 +0000 (04:16 -0700)
commit2a20525b26475528dc5a664478db2fea23c57d42
tree069c5009a0569a8a4087799045eef23c0cef2648
parentffe406457753a7ca2061ecc8c4d3971623066911
ixgbe/ixgbevf: Enables TSO for MPLS encapsulated packets

This patch advertises TSO & GSO features in netdev->mpls_features.
In ixgbe(vf)_tso() where we set up segmentation offload, the IP
header will be the inner network header when eth_p_mpls() indicates
the Ethernet protocol is MPLS (UC or MC).

Suggested-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: Scott Peterson <scott.d.peterson@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c