net/mlx5/hws: set the correct VLAN inner_type value
PATCH 1/1 net/mlx5/hws: set the correct VLAN inner_type value
From: Hamdan Igbaria <[email protected]>
Set the correct VLAN inner_type value, till today the once the VLAN inner_type field was set, an incorrect value was taken instead of the inner_type field.
--- drivers/net/mlx5/hws/mlx5dr_definer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/mlx5/hws/mlx5dr_definer.c +2 -1
@@ -197,6 +197,7 @@ struct mlx5dr_definer_conv_data { X(SET, random_number, v->value, rte_flow_item_random) \ X(SET, ib_l4_bth_a, v->hdr.a, rte_flow_item_ib_bth) \ X(SET, cvlan, STE_CVLAN, rte_flow_item_vlan) \ +X (SET_BE16 , inner_type, v->inner_type, rte_flow_item_vlan) \ /* Item set function format */#define X (set_type, func_name, value, item_type) \
@@ -873,7 +874,7 @@ mlx5dr_definer_conv_item_vlan(struct mlx5dr_definer_conv_data *cd,if (m->hdr.eth_proto) { fc = &cd->fc[DR_CALC_FNAME (ETH_TYPE , inner)]; fc->item_idx = item_idx; - fc->tag_set = &mlx5dr_definer_eth_type_set; + fc->tag_set = &mlx5dr_definer_inner_type_set;DR_CALC_SET (fc, eth_l2, l3_ethertype, inner); }
Signature · 1 line
2.34.1
Hi,
Quoted 16 lines
-----Original Message-----
From: Bing Zhao <[email protected]>
Sent: Wednesday, February 21, 2024 8:28 AM
To: Suanming Mou <[email protected]>; Raslan Darawsheh <[email protected]>; [email protected]
Cc: Matan Azrad <[email protected]>; Slava Ovsiienko <[email protected]>; Ori Kam <[email protected]>; Dariusz Sosnowski <[email protected]>; [email protected]; Hamdan Agbariya <[email protected]>; Erez Shitrit <[email protected]>
Subject: [PATCH]net/mlx5/hws: set the correct VLANinner_typevalueFrom: Hamdan Igbaria <[email protected]>
Set the correct VLAN
inner_typevalue, till today the once the VLANinner_typefield was set, an incorrect value was taken instead of theinner_typefield.
Quoted 6 lines
Fixes c55c2bf35333 ("net/mlx5/hws: add definer layer")Signed-off-by Hamdan Igbaria <[email protected]>Reviewed-by Erez Shitrit <[email protected]>Acked-by Suanming Mou <[email protected]>
Patch applied to next-net-mlx,
Kindest regards,
Raslan Darawsheh