0001
0002
0003
0004
0005
0006
0007 subdir-ccflags-y += -I$(src)
0008
0009 obj-$(CONFIG_MLX5_CORE) += mlx5_core.o
0010
0011
0012
0013
0014 mlx5_core-y := main.o cmd.o debugfs.o fw.o eq.o uar.o pagealloc.o \
0015 health.o mcg.o cq.o alloc.o port.o mr.o pd.o \
0016 transobj.o vport.o sriov.o fs_cmd.o fs_core.o pci_irq.o \
0017 fs_counters.o fs_ft_pool.o rl.o lag/debugfs.o lag/lag.o dev.o events.o wq.o lib/gid.o \
0018 lib/devcom.o lib/pci_vsc.o lib/dm.o lib/fs_ttc.o diag/fs_tracepoint.o \
0019 diag/fw_tracer.o diag/crdump.o devlink.o diag/rsc_dump.o \
0020 fw_reset.o qos.o lib/tout.o lib/aso.o
0021
0022
0023
0024
0025 mlx5_core-$(CONFIG_MLX5_CORE_EN) += en/rqt.o en/tir.o en/rss.o en/rx_res.o \
0026 en/channels.o en_main.o en_common.o en_fs.o en_ethtool.o \
0027 en_tx.o en_rx.o en_dim.o en_txrx.o en/xdp.o en_stats.o \
0028 en_selftest.o en/port.o en/monitor_stats.o en/health.o \
0029 en/reporter_tx.o en/reporter_rx.o en/params.o en/xsk/pool.o \
0030 en/xsk/setup.o en/xsk/rx.o en/xsk/tx.o en/devlink.o en/ptp.o \
0031 en/qos.o en/htb.o en/trap.o en/fs_tt_redirect.o en/selq.o \
0032 lib/crypto.o
0033
0034
0035
0036
0037 mlx5_core-$(CONFIG_MLX5_EN_ARFS) += en_arfs.o
0038 mlx5_core-$(CONFIG_MLX5_EN_RXNFC) += en_fs_ethtool.o
0039 mlx5_core-$(CONFIG_MLX5_CORE_EN_DCB) += en_dcbnl.o en/port_buffer.o
0040 mlx5_core-$(CONFIG_PCI_HYPERV_INTERFACE) += en/hv_vhca_stats.o
0041 mlx5_core-$(CONFIG_MLX5_ESWITCH) += lag/mp.o lag/port_sel.o lib/geneve.o lib/port_tun.o \
0042 en_rep.o en/rep/bond.o en/mod_hdr.o \
0043 en/mapping.o lag/mpesw.o
0044 mlx5_core-$(CONFIG_MLX5_CLS_ACT) += en_tc.o en/rep/tc.o en/rep/neigh.o \
0045 lib/fs_chains.o en/tc_tun.o \
0046 esw/indir_table.o en/tc_tun_encap.o \
0047 en/tc_tun_vxlan.o en/tc_tun_gre.o en/tc_tun_geneve.o \
0048 en/tc_tun_mplsoudp.o diag/en_tc_tracepoint.o \
0049 en/tc/post_act.o en/tc/int_port.o en/tc/meter.o \
0050 en/tc/post_meter.o
0051
0052 mlx5_core-$(CONFIG_MLX5_CLS_ACT) += en/tc/act/act.o en/tc/act/drop.o en/tc/act/trap.o \
0053 en/tc/act/accept.o en/tc/act/mark.o en/tc/act/goto.o \
0054 en/tc/act/tun.o en/tc/act/csum.o en/tc/act/pedit.o \
0055 en/tc/act/vlan.o en/tc/act/vlan_mangle.o en/tc/act/mpls.o \
0056 en/tc/act/mirred.o en/tc/act/mirred_nic.o \
0057 en/tc/act/ct.o en/tc/act/sample.o en/tc/act/ptype.o \
0058 en/tc/act/redirect_ingress.o en/tc/act/police.o
0059
0060 ifneq ($(CONFIG_MLX5_TC_CT),)
0061 mlx5_core-y += en/tc_ct.o en/tc/ct_fs_dmfs.o
0062 mlx5_core-$(CONFIG_MLX5_SW_STEERING) += en/tc/ct_fs_smfs.o
0063 endif
0064
0065 mlx5_core-$(CONFIG_MLX5_TC_SAMPLE) += en/tc/sample.o
0066
0067
0068
0069
0070 mlx5_core-$(CONFIG_MLX5_ESWITCH) += eswitch.o eswitch_offloads.o eswitch_offloads_termtbl.o \
0071 ecpf.o rdma.o esw/legacy.o \
0072 esw/debugfs.o esw/devlink_port.o esw/vporttbl.o esw/qos.o
0073
0074 mlx5_core-$(CONFIG_MLX5_ESWITCH) += esw/acl/helper.o \
0075 esw/acl/egress_lgcy.o esw/acl/egress_ofld.o \
0076 esw/acl/ingress_lgcy.o esw/acl/ingress_ofld.o
0077
0078 mlx5_core-$(CONFIG_MLX5_BRIDGE) += esw/bridge.o en/rep/bridge.o
0079
0080 mlx5_core-$(CONFIG_MLX5_MPFS) += lib/mpfs.o
0081 mlx5_core-$(CONFIG_VXLAN) += lib/vxlan.o
0082 mlx5_core-$(CONFIG_PTP_1588_CLOCK) += lib/clock.o
0083 mlx5_core-$(CONFIG_PCI_HYPERV_INTERFACE) += lib/hv.o lib/hv_vhca.o
0084
0085
0086
0087
0088 mlx5_core-$(CONFIG_MLX5_CORE_IPOIB) += ipoib/ipoib.o ipoib/ethtool.o ipoib/ipoib_vlan.o
0089
0090
0091
0092
0093 mlx5_core-$(CONFIG_MLX5_FPGA) += fpga/cmd.o fpga/core.o fpga/conn.o fpga/sdk.o
0094
0095 mlx5_core-$(CONFIG_MLX5_EN_IPSEC) += en_accel/ipsec.o en_accel/ipsec_rxtx.o \
0096 en_accel/ipsec_stats.o en_accel/ipsec_fs.o \
0097 en_accel/ipsec_offload.o
0098
0099 mlx5_core-$(CONFIG_MLX5_EN_TLS) += en_accel/ktls_stats.o \
0100 en_accel/fs_tcp.o en_accel/ktls.o en_accel/ktls_txrx.o \
0101 en_accel/ktls_tx.o en_accel/ktls_rx.o
0102
0103 mlx5_core-$(CONFIG_MLX5_SW_STEERING) += steering/dr_domain.o steering/dr_table.o \
0104 steering/dr_matcher.o steering/dr_rule.o \
0105 steering/dr_icm_pool.o steering/dr_buddy.o \
0106 steering/dr_ste.o steering/dr_send.o \
0107 steering/dr_ste_v0.o steering/dr_ste_v1.o \
0108 steering/dr_ste_v2.o \
0109 steering/dr_cmd.o steering/dr_fw.o \
0110 steering/dr_action.o steering/fs_dr.o \
0111 steering/dr_dbg.o lib/smfs.o
0112
0113
0114
0115 mlx5_core-$(CONFIG_MLX5_SF) += sf/vhca_event.o sf/dev/dev.o sf/dev/driver.o irq_affinity.o
0116
0117
0118
0119
0120 mlx5_core-$(CONFIG_MLX5_SF_MANAGER) += sf/cmd.o sf/hw_table.o sf/devlink.o