nfp: support vepa mode in HW bridge
authorYinjun Zhang <yinjun.zhang@corigine.com>
Fri, 24 Jun 2022 07:38:15 +0000 (09:38 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 28 Jun 2022 05:06:59 +0000 (22:06 -0700)
commitbe80141108bc043c71f5fffdfefa75b1e3e6f441
tree784fc1602a58726713b1ccdf742dafdce1e71b02
parent63769819079d87dc322fefaf981589e227de2978
nfp: support vepa mode in HW bridge

Add support for VEPA mode of HW bridge.
The default remains VEB mode.
The mode may be configured using ndo_bridge_setlink,
and inspected using ndo_bridge_getlink.

Signed-off-by: Yinjun Zhang <yinjun.zhang@corigine.com>
Reviewed-by: Louis Peens <louis.peens@corigine.com>
Signed-off-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/netronome/nfp/nfd3/rings.c
drivers/net/ethernet/netronome/nfp/nfdk/rings.c
drivers/net/ethernet/netronome/nfp/nfp_net_common.c
drivers/net/ethernet/netronome/nfp/nfp_net_ctrl.h