]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: fix dst/src fid for vxlan encap/decap actions
authorSathya Perla <sathya.perla@broadcom.com>
Fri, 1 Dec 2017 08:13:04 +0000 (03:13 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sun, 3 Dec 2017 02:25:38 +0000 (21:25 -0500)
commit2659274243bd81287a2efffeab98e03b8f3bd350
tree2e851ba75f0a91ce7525427a63875e93217be960
parentf3b75116d224e5c6db778a1221ed7f93a7cacead
bnxt_en: fix dst/src fid for vxlan encap/decap actions

For flows that involve a vxlan encap action, the vxlan sock
interface may be specified as the outgoing interface. The driver
must resolve the outgoing PF interface used by this socket and
use the dst_fid of the PF in the hwrm_cfa_encap_record_alloc cmd.

Similarily for flows that have a vxlan decap action, the
fid of the incoming PF interface must be used as the src_fid in
the hwrm_cfa_decap_filter_alloc cmd.

Fixes: 16a8dacf0eb2 ("bnxt_en: add support for Flower based vxlan encap/decap offload")
Signed-off-by: Sathya Perla <sathya.perla@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