linux/drivers/net/ethernet/intel
Marcin Szycik 2cca35f5dd ice: Fix checking for unsupported keys on non-tunnel device
Add missing FLOW_DISSECTOR_KEY_ENC_* checks to TC flower filter parsing.
Without these checks, it would be possible to add filters with tunnel
options on non-tunnel devices. enc_* options are only valid for tunnel
devices.

Example:
  devlink dev eswitch set $PF1_PCI mode switchdev
  echo 1 > /sys/class/net/$PF1/device/sriov_numvfs
  tc qdisc add dev $VF1_PR ingress
  ethtool -K $PF1 hw-tc-offload on
  tc filter add dev $VF1_PR ingress flower enc_ttl 12 skip_sw action drop

Fixes: 9e300987d4 ("ice: VXLAN and Geneve TC support")
Reviewed-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
Signed-off-by: Marcin Szycik <marcin.szycik@linux.intel.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Sujai Buvaneswaran <sujai.buvaneswaran@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
2024-04-16 10:55:25 -07:00
..
e1000 intel: legacy: field get conversion 2023-12-18 11:20:43 -08:00
e1000e e1000e: move force SMBUS from enable ulp function to avoid PHY loss issue 2024-03-27 11:44:34 -07:00
fm10k intel: legacy: field get conversion 2023-12-18 11:20:43 -08:00
i40e i40e: Fix VF MAC filter removal 2024-04-01 21:33:08 -07:00
iavf iavf: drop duplicate iavf_{add|del}_cloud_filter() calls 2024-03-06 09:32:58 -08:00
ice ice: Fix checking for unsupported keys on non-tunnel device 2024-04-16 10:55:25 -07:00
idpf idpf: fix kernel panic on unknown packet types 2024-04-03 13:07:28 -07:00
igb Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2024-03-11 20:38:36 -07:00
igbvf net: adopt skb_network_offset() and similar helpers 2024-03-04 08:47:06 +00:00
igc igc: Remove stale comment about Tx timestamping 2024-03-25 09:57:21 -07:00
ixgbe ixgbe: avoid sleeping allocation in ixgbe_ipsec_vf_add_sa() 2024-03-25 09:57:21 -07:00
ixgbevf net: adopt skb_network_offset() and similar helpers 2024-03-04 08:47:06 +00:00
Kconfig igc: fix LEDS_CLASS dependency 2024-03-04 20:49:58 -08:00
Makefile idpf: add SRIOV support and other ndo_ops 2023-09-13 14:59:24 -07:00
e100.c intel: make module parameters readable in sys filesystem 2024-03-04 20:49:58 -08:00