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)
commite9ecc731a87912d209d6e9b4ed20ed70451c08cb
tree2e851ba75f0a91ce7525427a63875e93217be960
parentc8fb7b8259c67b86cd93a71c85e78b34d2c96fdc
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: 8c95f773b4a3 ("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