idpf: fix offloads support for encapsulated packets
authorMadhu Chittim <madhu.chittim@intel.com>
Fri, 25 Apr 2025 22:26:33 +0000 (15:26 -0700)
committerJakub Kicinski <kuba@kernel.org>
Mon, 28 Apr 2025 22:59:13 +0000 (15:59 -0700)
commit713dd6c2deca88cba0596b1e2576f7b7a8e5c59e
tree3fd113d4a54c536b62f527c5ee19fac1abd88f47
parent425c5f266b2edeee0ce16fedd8466410cdcfcfe3
idpf: fix offloads support for encapsulated packets

Split offloads into csum, tso and other offloads so that tunneled
packets do not by default have all the offloads enabled.

Stateless offloads for encapsulated packets are not yet supported in
firmware/software but in the driver we were setting the features same as
non encapsulated features.

Fixed naming to clarify CSUM bits are being checked for Tx.

Inherit netdev features to VLAN interfaces as well.

Fixes: 0fe45467a104 ("idpf: add create vport and netdev configuration")
Reviewed-by: Sridhar Samudrala <sridhar.samudrala@intel.com>
Signed-off-by: Madhu Chittim <madhu.chittim@intel.com>
Tested-by: Zachary Goldstein <zachmgoldstein@google.com>
Tested-by: Samuel Salin <Samuel.salin@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Link: https://patch.msgid.link/20250425222636.3188441-4-anthony.l.nguyen@intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/intel/idpf/idpf.h
drivers/net/ethernet/intel/idpf/idpf_lib.c