Skip to content

Commit 479ca3b

Browse files
sbasavapatnadavem330
authored andcommitted
bnxt_en: Ignore src port field in decap filter nodes
The driver currently uses src port field (along with other fields) in the decap tunnel key, while looking up and adding tunnel nodes. This leads to redundant cfa_decap_filter_alloc() requests to the FW and flow-miss in the flow engine. Fix this by ignoring the src port field in decap tunnel nodes. Fixes: f484f67 ("bnxt_en: add hwrm FW cmds for cfa_encap_record and decap_filter") Signed-off-by: Sriharsha Basavapatna <[email protected]> Signed-off-by: Michael Chan <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent e85a9be commit 479ca3b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1051,8 +1051,10 @@ static int bnxt_tc_get_decap_handle(struct bnxt *bp, struct bnxt_tc_flow *flow,
10511051

10521052
/* Check if there's another flow using the same tunnel decap.
10531053
* If not, add this tunnel to the table and resolve the other
1054-
* tunnel header fileds
1054+
* tunnel header fileds. Ignore src_port in the tunnel_key,
1055+
* since it is not required for decap filters.
10551056
*/
1057+
decap_key->tp_src = 0;
10561058
decap_node = bnxt_tc_get_tunnel_node(bp, &tc_info->decap_table,
10571059
&tc_info->decap_ht_params,
10581060
decap_key);

0 commit comments

Comments
 (0)