Commit | Line | Data |
---|---|---|
b2441318 | 1 | # SPDX-License-Identifier: GPL-2.0 |
a8274b85 SM |
2 | # |
3 | # Makefile for Mellanox 5th generation network adapters | |
4 | # (ConnectX series) core & netdev driver | |
5 | # | |
6 | ||
e29341fb | 7 | subdir-ccflags-y += -I$(src) |
e126ba97 | 8 | |
a8274b85 SM |
9 | obj-$(CONFIG_MLX5_CORE) += mlx5_core.o |
10 | ||
11 | # | |
12 | # mlx5 core basic | |
13 | # | |
e126ba97 | 14 | mlx5_core-y := main.o cmd.o debugfs.o fw.o eq.o uar.o pagealloc.o \ |
333fbaa0 | 15 | health.o mcg.o cq.o alloc.o port.o mr.o pd.o \ |
256cf690 | 16 | transobj.o vport.o sriov.o fs_cmd.o fs_core.o pci_irq.o \ |
4a98544d | 17 | fs_counters.o fs_ft_pool.o rl.o lag.o dev.o events.o wq.o lib/gid.o \ |
c9b9dcb4 | 18 | lib/devcom.o lib/pci_vsc.o lib/dm.o diag/fs_tracepoint.o \ |
214baf22 MM |
19 | diag/fw_tracer.o diag/crdump.o devlink.o diag/rsc_dump.o \ |
20 | fw_reset.o qos.o | |
08fb1dac | 21 | |
a8274b85 SM |
22 | # |
23 | # Netdev basic | |
24 | # | |
e80541ec | 25 | mlx5_core-$(CONFIG_MLX5_CORE_EN) += en_main.o en_common.o en_fs.o en_ethtool.o \ |
358aa5ce | 26 | en_tx.o en_rx.o en_dim.o en_txrx.o en/xdp.o en_stats.o \ |
c50de4af | 27 | en_selftest.o en/port.o en/monitor_stats.o en/health.o \ |
1742b3d5 | 28 | en/reporter_tx.o en/reporter_rx.o en/params.o en/xsk/pool.o \ |
214baf22 | 29 | en/xsk/setup.o en/xsk/rx.o en/xsk/tx.o en/devlink.o en/ptp.o \ |
65d6b6e5 MM |
30 | en/qos.o en/trap.o en/fs_tt_redirect.o en/rqt.o en/tir.o \ |
31 | en/rx_res.o | |
fe6d86b3 | 32 | |
a8274b85 SM |
33 | # |
34 | # Netdev extra | |
35 | # | |
36 | mlx5_core-$(CONFIG_MLX5_EN_ARFS) += en_arfs.o | |
37 | mlx5_core-$(CONFIG_MLX5_EN_RXNFC) += en_fs_ethtool.o | |
38 | mlx5_core-$(CONFIG_MLX5_CORE_EN_DCB) += en_dcbnl.o en/port_buffer.o | |
cef35af3 | 39 | mlx5_core-$(CONFIG_PCI_HYPERV_INTERFACE) += en/hv_vhca_stats.o |
7e51891a | 40 | mlx5_core-$(CONFIG_MLX5_ESWITCH) += lag_mp.o lib/geneve.o lib/port_tun.o \ |
c9355682 CM |
41 | en_rep.o en/rep/bond.o en/mod_hdr.o \ |
42 | en/mapping.o | |
d956873f | 43 | mlx5_core-$(CONFIG_MLX5_CLS_ACT) += en_tc.o en/rep/tc.o en/rep/neigh.o \ |
c9355682 | 44 | lib/fs_chains.o en/tc_tun.o \ |
0d9f9647 | 45 | esw/indir_table.o en/tc_tun_encap.o \ |
d956873f | 46 | en/tc_tun_vxlan.o en/tc_tun_gre.o en/tc_tun_geneve.o \ |
f828ca6a | 47 | en/tc_tun_mplsoudp.o diag/en_tc_tracepoint.o |
4c3844d9 | 48 | mlx5_core-$(CONFIG_MLX5_TC_CT) += en/tc_ct.o |
a8274b85 SM |
49 | |
50 | # | |
51 | # Core extra | |
52 | # | |
10caabda | 53 | mlx5_core-$(CONFIG_MLX5_ESWITCH) += eswitch.o eswitch_offloads.o eswitch_offloads_termtbl.o \ |
b55b3538 | 54 | ecpf.o rdma.o esw/legacy.o |
ea651a86 | 55 | mlx5_core-$(CONFIG_MLX5_ESWITCH) += esw/acl/helper.o \ |
07bab950 | 56 | esw/acl/egress_lgcy.o esw/acl/egress_ofld.o \ |
c7eddc60 | 57 | esw/acl/ingress_lgcy.o esw/acl/ingress_ofld.o \ |
4c7f4028 | 58 | esw/devlink_port.o esw/vporttbl.o |
2a9ab10a | 59 | mlx5_core-$(CONFIG_MLX5_TC_SAMPLE) += esw/sample.o |
19e9bfa0 | 60 | mlx5_core-$(CONFIG_MLX5_BRIDGE) += esw/bridge.o en/rep/bridge.o |
ea651a86 | 61 | |
a8274b85 SM |
62 | mlx5_core-$(CONFIG_MLX5_MPFS) += lib/mpfs.o |
63 | mlx5_core-$(CONFIG_VXLAN) += lib/vxlan.o | |
64 | mlx5_core-$(CONFIG_PTP_1588_CLOCK) += lib/clock.o | |
87175120 | 65 | mlx5_core-$(CONFIG_PCI_HYPERV_INTERFACE) += lib/hv.o lib/hv_vhca.o |
08fb1dac | 66 | |
a8274b85 SM |
67 | # |
68 | # Ipoib netdev | |
69 | # | |
70 | mlx5_core-$(CONFIG_MLX5_CORE_IPOIB) += ipoib/ipoib.o ipoib/ethtool.o ipoib/ipoib_vlan.o | |
e80541ec | 71 | |
a8274b85 SM |
72 | # |
73 | # Accelerations & FPGA | |
74 | # | |
2d64663c | 75 | mlx5_core-$(CONFIG_MLX5_IPSEC) += accel/ipsec_offload.o |
e2869fb2 TT |
76 | mlx5_core-$(CONFIG_MLX5_FPGA_IPSEC) += fpga/ipsec.o |
77 | mlx5_core-$(CONFIG_MLX5_FPGA_TLS) += fpga/tls.o | |
45d3b55d | 78 | mlx5_core-$(CONFIG_MLX5_ACCEL) += lib/crypto.o accel/tls.o accel/ipsec.o |
48935bbb | 79 | |
e2869fb2 | 80 | mlx5_core-$(CONFIG_MLX5_FPGA) += fpga/cmd.o fpga/core.o fpga/conn.o fpga/sdk.o |
547eede0 | 81 | |
164f16f7 | 82 | mlx5_core-$(CONFIG_MLX5_EN_IPSEC) += en_accel/ipsec.o en_accel/ipsec_rxtx.o \ |
5e466345 | 83 | en_accel/ipsec_stats.o en_accel/ipsec_fs.o |
4c03e69a | 84 | |
d2ead1f3 | 85 | mlx5_core-$(CONFIG_MLX5_EN_TLS) += en_accel/tls.o en_accel/tls_rxtx.o en_accel/tls_stats.o \ |
7d0d0d86 | 86 | en_accel/fs_tcp.o en_accel/ktls.o en_accel/ktls_txrx.o \ |
1182f365 | 87 | en_accel/ktls_tx.o en_accel/ktls_rx.o |
fb86f121 AV |
88 | |
89 | mlx5_core-$(CONFIG_MLX5_SW_STEERING) += steering/dr_domain.o steering/dr_table.o \ | |
90 | steering/dr_matcher.o steering/dr_rule.o \ | |
3b72422d | 91 | steering/dr_icm_pool.o steering/dr_buddy.o \ |
fb86f121 | 92 | steering/dr_ste.o steering/dr_send.o \ |
10b69418 | 93 | steering/dr_ste_v0.o steering/dr_ste_v1.o \ |
fb86f121 | 94 | steering/dr_cmd.o steering/dr_fw.o \ |
6a48faee | 95 | steering/dr_action.o steering/fs_dr.o |
f3196bb0 PP |
96 | # |
97 | # SF device | |
98 | # | |
1958fc2f | 99 | mlx5_core-$(CONFIG_MLX5_SF) += sf/vhca_event.o sf/dev/dev.o sf/dev/driver.o |
8f010541 PP |
100 | |
101 | # | |
102 | # SF manager | |
103 | # | |
104 | mlx5_core-$(CONFIG_MLX5_SF_MANAGER) += sf/cmd.o sf/hw_table.o sf/devlink.o |