]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: Ignore src port field in decap filter nodes
authorSriharsha Basavapatna <sriharsha.basavapatna@broadcom.com>
Wed, 11 Apr 2018 15:50:15 +0000 (11:50 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Apr 2018 18:41:59 +0000 (14:41 -0400)
commit977cb5ac52e48636871eebc91ce278bce3de45f2
treef8ebd37dcc1c0336234676d4454e58c9271b3bef
parent4383e21dbc024e405898a2909281dbc3b4c7ac79
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: bc3eba5376cf ("bnxt_en: add hwrm FW cmds for cfa_encap_record and decap_filter")
Signed-off-by: Sriharsha Basavapatna <sriharsha.basavapatna@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c