Skip to content

Commit

Permalink
net/ice: fix return value for raw pattern parsing function
Browse files Browse the repository at this point in the history
If the parser was not initialized when calling ice_hash_parse_raw_pattern()
-rte_errno was returned. Replace returning rte_errno with ENOTSUP since
rte_errno is meaningless in the context of ice_hash_parse_raw_pattern().

Fixes: 1b9c681 ("net/ice: enable protocol agnostic flow offloading in RSS")
Cc: stable@dpdk.org

Signed-off-by: Vladimir Medvedkin <vladimir.medvedkin@intel.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
  • Loading branch information
vmedvedk authored and bruce-richardson committed Jul 22, 2024
1 parent ede2b89 commit 8b362d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ice/ice_hash.c
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ ice_hash_parse_raw_pattern(struct ice_adapter *ad,
int i, j, ret = 0;

if (ad->psr == NULL)
return -rte_errno;
return -ENOTSUP;

raw_spec = item->spec;
raw_mask = item->mask;
Expand Down

0 comments on commit 8b362d6

Please sign in to comment.