Skip to content

Commit

Permalink
net/bnxt: fix ULP parser to ignore segment offset
Browse files Browse the repository at this point in the history
[ upstream commit 631ac1d ]

Fix ULP parser to ignore segment_offset of IPv4 header.
Currently the IPv4 handler is assuming default setting,
which causes the flow table to be updated incorrectly.

Fixes: 741172b ("net/bnxt: refactor flow parser in ULP")

Signed-off-by: Shuanglin Wang <shuanglin.wang@broadcom.com>
Reviewed-by: Randy Schacher <stuart.schacher@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
  • Loading branch information
Shuanglin Wang authored and kevintraynor committed Jun 8, 2022
1 parent df8b0db commit 78eaf9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/bnxt/tf_ulp/ulp_rte_parser.c
Expand Up @@ -1096,7 +1096,7 @@ ulp_rte_ipv4_hdr_handler(const struct rte_flow_item *item,
hdr.fragment_offset),
ulp_deference_struct(ipv4_mask,
hdr.fragment_offset),
ULP_PRSR_ACT_DEFAULT);
ULP_PRSR_ACT_MASK_IGNORE);

size = sizeof(((struct rte_flow_item_ipv4 *)NULL)->hdr.time_to_live);
ulp_rte_prsr_fld_mask(params, &idx, size,
Expand Down

0 comments on commit 78eaf9f

Please sign in to comment.