[v1,2/2] net/ice: fix unsupported flow rule transfer attribute
Checks
Commit Message
ice doesn't support transfer attribute of flow rule,
ignore it when validating rule attributes.
Fixes: d76116a4678f ("net/ice: add generic flow API")
Signed-off-by: Steve Yang <stevex.yang@intel.com>
---
drivers/net/ice/ice_generic_flow.c | 8 ++++++++
1 file changed, 8 insertions(+)
Comments
> -----Original Message-----
> From: Yang, SteveX <stevex.yang@intel.com>
> Sent: Monday, December 26, 2022 8:37 AM
> To: dev@dpdk.org
> Cc: Zhang, Yuying <yuying.zhang@intel.com>; Xing, Beilei
> <beilei.xing@intel.com>; Yang, Qiming <qiming.yang@intel.com>; Zhang, Qi
> Z <qi.z.zhang@intel.com>; Yang, SteveX <stevex.yang@intel.com>
> Subject: [PATCH v1 2/2] net/ice: fix unsupported flow rule transfer attribute
>
> ice doesn't support transfer attribute of flow rule, ignore it when validating
> rule attributes.
>
> Fixes: d76116a4678f ("net/ice: add generic flow API")
>
> Signed-off-by: Steve Yang <stevex.yang@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
Applied to dpdk-next-net-intel.
Thanks
Qi
@@ -2030,6 +2030,14 @@ ice_flow_valid_attr(struct ice_adapter *ad,
return -rte_errno;
}
+ /* Not supported */
+ if (attr->transfer) {
+ rte_flow_error_set(error, EINVAL,
+ RTE_FLOW_ERROR_TYPE_ATTR_TRANSFER,
+ attr, "Not support transfer.");
+ return -rte_errno;
+ }
+
/* Check pipeline mode support to set classification stage */
if (ad->devargs.pipe_mode_support) {
if (attr->priority == 0)