]> git.droids-corp.org - dpdk.git/commit
net/ice: fix raw flow input pattern parsing
authorTing Xu <ting.xu@intel.com>
Mon, 18 Apr 2022 06:59:08 +0000 (14:59 +0800)
committerQi Zhang <qi.z.zhang@intel.com>
Mon, 18 Apr 2022 07:27:46 +0000 (09:27 +0200)
commit848de9572c83142e989394a699064d728eb892c3
tree6fed89e39298eaad168afdc5bd1982e11b6ca5dc
parent531d2555c8a644030f1ee7d3c9edf1db9c35d6ef
net/ice: fix raw flow input pattern parsing

When parsing raw flow pattern in FDIR, the input parameter spec and
mask are used directly and the original value will be changed. It
will cause error if these values are used in other functions. In this
patch, temporary variables are created to store the spec and mask.

Fixes: 25be39cc1760 ("net/ice: enable protocol agnostic flow offloading in FDIR")
Cc: stable@dpdk.org
Signed-off-by: Ting Xu <ting.xu@intel.com>
Acked-by: Junfeng Guo <junfeng.guo@intel.com>
drivers/net/ice/ice_fdir_filter.c