diff options
| author | Marcin Szycik <[email protected]> | 2024-04-09 15:45:44 +0000 |
|---|---|---|
| committer | Tony Nguyen <[email protected]> | 2024-04-16 17:55:25 +0000 |
| commit | 2cca35f5dd78b9f8297c879c5db5ab137c5d86c3 (patch) | |
| tree | 93c8a192d999ed784e9d32aabdf2011e9d767f22 /net/unix/af_unix.c | |
| parent | ice: tc: allow zero flags in parsing tc flower (diff) | |
| download | kernel-2cca35f5dd78b9f8297c879c5db5ab137c5d86c3.tar.gz kernel-2cca35f5dd78b9f8297c879c5db5ab137c5d86c3.zip | |
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: 9e300987d4a8 ("ice: VXLAN and Geneve TC support")
Reviewed-by: Michal Swiatkowski <[email protected]>
Signed-off-by: Marcin Szycik <[email protected]>
Reviewed-by: Jacob Keller <[email protected]>
Tested-by: Sujai Buvaneswaran <[email protected]>
Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
