]> 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)
commit92c6ed762cbf2d6a6bc546ab4fd8cfb08020c4ef
tree2e851ba75f0a91ce7525427a63875e93217be960
parentba15950b9cc8bf7d77349ce2c43a61d24a20eaa0
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: 48751389e5f3 ("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