fd0dd1ab1e
Generate a list of MAC addresses of netdevs that could be used as VXLAN tunnel end points. Give offloaded MACs an index for storage on the NFP in the ranges: 0x100-0x1ff physical port representors 0x200-0x2ff VF port representors 0x300-0x3ff other offloads (e.g. vxlan netdevs, ovs bridges) Assign phys and vf indexes based on unique 8 bit values in the port num. Maintain list of other netdevs to ensure same netdev is not offloaded twice and each gets a unique ID without exhausting the entries. Because the IDs are unique but constant for a netdev, any changes are implemented by overwriting the index on NFP. Signed-off-by: John Hurley <john.hurley@netronome.com> Signed-off-by: Simon Horman <simon.horman@netronome.com> Signed-off-by: David S. Miller <davem@davemloft.net>
51 lines
1.0 KiB
Makefile
51 lines
1.0 KiB
Makefile
obj-$(CONFIG_NFP) += nfp.o
|
|
|
|
nfp-objs := \
|
|
nfpcore/nfp6000_pcie.o \
|
|
nfpcore/nfp_cppcore.o \
|
|
nfpcore/nfp_cpplib.o \
|
|
nfpcore/nfp_hwinfo.o \
|
|
nfpcore/nfp_mip.o \
|
|
nfpcore/nfp_mutex.o \
|
|
nfpcore/nfp_nffw.o \
|
|
nfpcore/nfp_nsp.o \
|
|
nfpcore/nfp_nsp_cmds.o \
|
|
nfpcore/nfp_nsp_eth.o \
|
|
nfpcore/nfp_resource.o \
|
|
nfpcore/nfp_rtsym.o \
|
|
nfpcore/nfp_target.o \
|
|
nfp_app.o \
|
|
nfp_app_nic.o \
|
|
nfp_devlink.o \
|
|
nfp_hwmon.o \
|
|
nfp_main.o \
|
|
nfp_net_common.o \
|
|
nfp_net_ethtool.o \
|
|
nfp_net_main.o \
|
|
nfp_net_repr.o \
|
|
nfp_net_sriov.o \
|
|
nfp_netvf_main.o \
|
|
nfp_port.o \
|
|
bpf/main.o \
|
|
bpf/offload.o \
|
|
nic/main.o
|
|
|
|
ifeq ($(CONFIG_NFP_APP_FLOWER),y)
|
|
nfp-objs += \
|
|
flower/action.o \
|
|
flower/cmsg.o \
|
|
flower/main.o \
|
|
flower/match.o \
|
|
flower/metadata.o \
|
|
flower/offload.o \
|
|
flower/tunnel_conf.o
|
|
endif
|
|
|
|
ifeq ($(CONFIG_BPF_SYSCALL),y)
|
|
nfp-objs += \
|
|
bpf/verifier.o \
|
|
bpf/jit.o
|
|
endif
|
|
|
|
nfp-$(CONFIG_NFP_DEBUG) += nfp_net_debugfs.o
|