OSDN Git Service

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)
commit479ca3bf91da971fcefc003cf5773e8d7db24794
treef8ebd37dcc1c0336234676d4454e58c9271b3bef
parente85a9be93cf144623a823a0a60e4eda6ee337aef
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: f484f6782e01 ("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