* [PATCH v1] net/mlx5: provide correct items to meter sub-policy
@ 2022-02-18 7:43 Shun Hao
2022-02-22 14:46 ` Raslan Darawsheh
0 siblings, 1 reply; 3+ messages in thread
From: Shun Hao @ 2022-02-18 7:43 UTC (permalink / raw)
To: matan, viacheslavo, orika, thomas; +Cc: dev, rasland, stable
If meter policy action was RSS, the correct items were not provided
for sub-policy creation.
This fixes the issue by providing original items in meter split, so
the sub-policy creation gets the correct items.
Fixes: 3c481324baf3 ("net/mlx5: fix meter flow direction check")
Cc: stable@dpdk.org
Signed-off-by: Shun Hao <shunh@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
---
drivers/net/mlx5/mlx5_flow.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c
index 179cc3b303..0311f91bf2 100644
--- a/drivers/net/mlx5/mlx5_flow.c
+++ b/drivers/net/mlx5/mlx5_flow.c
@@ -5022,6 +5022,7 @@ flow_meter_split_prep(struct rte_eth_dev *dev,
uint32_t tag_id = 0;
struct rte_flow_item *vlan_item_dst = NULL;
const struct rte_flow_item *vlan_item_src = NULL;
+ const struct rte_flow_item *orig_items = items;
struct rte_flow_action *hw_mtr_action;
struct rte_flow_action *action_pre_head = NULL;
int32_t flow_src_port = priv->representor_id;
@@ -5146,7 +5147,8 @@ flow_meter_split_prep(struct rte_eth_dev *dev,
if (!fm->def_policy) {
sub_policy = get_meter_sub_policy(dev, flow, wks,
- attr, items, error);
+ attr, orig_items,
+ error);
if (!sub_policy)
return -rte_errno;
} else {
--
2.20.0
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: [PATCH v1] net/mlx5: provide correct items to meter sub-policy
2022-02-18 7:43 [PATCH v1] net/mlx5: provide correct items to meter sub-policy Shun Hao
@ 2022-02-22 14:46 ` Raslan Darawsheh
2022-02-22 14:48 ` Raslan Darawsheh
0 siblings, 1 reply; 3+ messages in thread
From: Raslan Darawsheh @ 2022-02-22 14:46 UTC (permalink / raw)
To: Shun Hao, Matan Azrad, Slava Ovsiienko, Ori Kam,
NBU-Contact-Thomas Monjalon (EXTERNAL)
Cc: dev@dpdk.org , stable
Hi,
> -----Original Message-----
> From: Shun Hao <shunh@nvidia.com>
> Sent: Friday, February 18, 2022 9:43 AM
> To: Matan Azrad <matan@nvidia.com>; Slava Ovsiienko
> <viacheslavo@nvidia.com>; orika@nvidia.com ; thomas@monjalon.net
> Cc: dev@dpdk.org ; Raslan Darawsheh <rasland@nvidia.com>;
> stable@dpdk.org
> Subject: [PATCH v1] net/mlx5: provide correct items to meter sub-policy
>
> If meter policy action was RSS, the correct items were not provided for sub-
> policy creation.
>
> This fixes the issue by providing original items in meter split, so the sub-policy
> creation gets the correct items.
>
> Fixes: 3c481324baf3 ("net/mlx5: fix meter flow direction check")
> Cc: stable@dpdk.org
>
> Signed-off-by: Shun Hao <shunh@nvidia.com>
> Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
Patch applied to next-net-mlx,
Kindest regards,
Raslan Darawsheh
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: [PATCH v1] net/mlx5: provide correct items to meter sub-policy
2022-02-22 14:46 ` Raslan Darawsheh
@ 2022-02-22 14:48 ` Raslan Darawsheh
0 siblings, 0 replies; 3+ messages in thread
From: Raslan Darawsheh @ 2022-02-22 14:48 UTC (permalink / raw)
To: Shun Hao, Matan Azrad, Slava Ovsiienko, Ori Kam,
NBU-Contact-Thomas Monjalon (EXTERNAL)
Cc: dpdk-dev, stable
Hi,
> -----Original Message-----
> From: Shun Hao <shunh@nvidia.com>
> Sent: Friday, February 18, 2022 9:43 AM
> To: Matan Azrad <matan@nvidia.com>; Slava Ovsiienko
> <viacheslavo@nvidia.com>; orika@nvidia.com ; thomas@monjalon.net
> Cc: dev@dpdk.org ; Raslan Darawsheh <rasland@nvidia.com>;
> stable@dpdk.org
> Subject: [PATCH v1] net/mlx5: provide correct items to meter
> sub-policy
>
> If meter policy action was RSS, the correct items were not provided
> for sub- policy creation.
>
> This fixes the issue by providing original items in meter split, so
> the sub-policy creation gets the correct items.
>
> Fixes: 3c481324baf3 ("net/mlx5: fix meter flow direction check")
> Cc: stable@dpdk.org
>
> Signed-off-by: Shun Hao <shunh@nvidia.com>
> Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
Patch applied to next-net-mlx,
Kindest regards,
Raslan Darawsheh
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-02-22 14:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-18 7:43 [PATCH v1] net/mlx5: provide correct items to meter sub-policy Shun Hao
2022-02-22 14:46 ` Raslan Darawsheh
2022-02-22 14:48 ` Raslan Darawsheh
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).