aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/ice/ice_main.c
diff options
context:
space:
mode:
authorJoe Damato <jdamato@fastly.com>2022-03-17 21:12:12 -0700
committerTony Nguyen <anthony.l.nguyen@intel.com>2022-04-12 11:05:09 -0700
commit69e66c04c672d8ff83f76e625c27a4d7cd717c08 (patch)
treeb2915c26d42a2c1dddde1ddba4b16992adeb46c0 /drivers/net/ethernet/intel/ice/ice_main.c
parenti40e: Add support for MPLS + TSO (diff)
downloadlinux-dev-69e66c04c672d8ff83f76e625c27a4d7cd717c08.tar.xz
linux-dev-69e66c04c672d8ff83f76e625c27a4d7cd717c08.zip
ice: Add mpls+tso support
Attempt to add mpls+tso support. I don't have ice hardware available to test myself, but I just implemented this feature in i40e and thought it might be useful to implement for ice while this is fresh in my brain. Hoping some one at intel will be able to test this on my behalf. Signed-off-by: Joe Damato <jdamato@fastly.com> Tested-by: Gurucharan <gurucharanx.g@intel.com> (A Contingent worker at Intel) Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_main.c')
-rw-r--r--drivers/net/ethernet/intel/ice/ice_main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/ice/ice_main.c b/drivers/net/ethernet/intel/ice/ice_main.c
index d768925785ca..fbefcb08fa64 100644
--- a/drivers/net/ethernet/intel/ice/ice_main.c
+++ b/drivers/net/ethernet/intel/ice/ice_main.c
@@ -3329,7 +3329,9 @@ static void ice_set_netdev_features(struct net_device *netdev)
vlano_features | tso_features;
/* add support for HW_CSUM on packets with MPLS header */
- netdev->mpls_features = NETIF_F_HW_CSUM;
+ netdev->mpls_features = NETIF_F_HW_CSUM |
+ NETIF_F_TSO |
+ NETIF_F_TSO6;
/* enable features */
netdev->features |= netdev->hw_features;