diff options
| author | Junfeng Guo <[email protected]> | 2023-03-14 02:03:15 +0000 |
|---|---|---|
| committer | Tony Nguyen <[email protected]> | 2023-03-28 16:48:41 +0000 |
| commit | 29486b6df3e6a63b57d1ed1dce06051267282ff4 (patch) | |
| tree | 713ed5a5f32ed350cb1e5bd841a2f306ee9ef3d9 /drivers/net/ethernet/intel/ice/ice_sched.c | |
| parent | ice: Fix ice_cfg_rdma_fltr() to only update relevant fields (diff) | |
| download | kernel-29486b6df3e6a63b57d1ed1dce06051267282ff4.tar.gz kernel-29486b6df3e6a63b57d1ed1dce06051267282ff4.zip | |
ice: add profile conflict check for AVF FDIR
Add profile conflict check while adding some FDIR rules to avoid
unexpected flow behavior, rules may have conflict including:
IPv4 <---> {IPv4_UDP, IPv4_TCP, IPv4_SCTP}
IPv6 <---> {IPv6_UDP, IPv6_TCP, IPv6_SCTP}
For example, when we create an FDIR rule for IPv4, this rule will work
on packets including IPv4, IPv4_UDP, IPv4_TCP and IPv4_SCTP. But if we
then create an FDIR rule for IPv4_UDP and then destroy it, the first
FDIR rule for IPv4 cannot work on pkt IPv4_UDP then.
To prevent this unexpected behavior, we add restriction in software
when creating FDIR rules by adding necessary profile conflict check.
Fixes: 1f7ea1cd6a37 ("ice: Enable FDIR Configure for AVF")
Signed-off-by: Junfeng Guo <[email protected]>
Tested-by: Rafal Romanowski <[email protected]>
Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_sched.c')
0 files changed, 0 insertions, 0 deletions
