mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 03:44:45 +01:00
idpf: Fix flow rule delete failure due to invalid validation
When deleting a flow rule using "ethtool -N <dev> delete <location>",
idpf_sideband_action_ena() incorrectly validates fsp->ring_cookie even
though ethtool doesn't populate this field for delete operations. The
uninitialized ring_cookie may randomly match RX_CLS_FLOW_DISC or
RX_CLS_FLOW_WAKE, causing validation to fail and preventing legitimate
rule deletions. Remove the unnecessary sideband action enable check and
ring_cookie validation during delete operations since action validation
is not required when removing existing rules.
Fixes: ada3e24b84 ("idpf: add flow steering support")
Signed-off-by: Sreedevi Joshi <sreedevi.joshi@intel.com>
Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Reviewed-by: Paul Menzel <pmenzel@molgen.mpg.de>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
This commit is contained in:
parent
1500a8662d
commit
2c31557336
1 changed files with 0 additions and 3 deletions
|
|
@ -307,9 +307,6 @@ static int idpf_del_flow_steer(struct net_device *netdev,
|
|||
vport_config = vport->adapter->vport_config[np->vport_idx];
|
||||
user_config = &vport_config->user_config;
|
||||
|
||||
if (!idpf_sideband_action_ena(vport, fsp))
|
||||
return -EOPNOTSUPP;
|
||||
|
||||
rule = kzalloc(struct_size(rule, rule_info, 1), GFP_KERNEL);
|
||||
if (!rule)
|
||||
return -ENOMEM;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue