Debian Codegraph @

drivers/net/ethernet/mellanox/mlx5/core/Makefile

raw
1 # SPDX-License-Identifier: GPL-2.0
2 #
3 # Makefile for Mellanox 5th generation network adapters
4 # (ConnectX series) core & netdev driver
5 #
6
7 subdir-ccflags-y += -I$(src)
8
9 obj-$(CONFIG_MLX5_CORE) += mlx5_core.o
10
11 #
12 # mlx5 core basic
13 #
14 mlx5_core-y := main.o cmd.o debugfs.o fw.o eq.o uar.o pagealloc.o \
15 health.o mcg.o cq.o alloc.o port.o mr.o pd.o \
16 transobj.o vport.o sriov.o fs_cmd.o fs_core.o pci_irq.o \
17 fs_counters.o fs_ft_pool.o rl.o lag/debugfs.o lag/lag.o dev.o events.o wq.o lib/gid.o \
18 lib/devcom.o lib/pci_vsc.o lib/dm.o lib/fs_ttc.o diag/fs_tracepoint.o \
19 diag/fw_tracer.o diag/crdump.o devlink.o sh_devlink.o diag/rsc_dump.o \
20 diag/reporter_vnic.o fw_reset.o qos.o lib/tout.o lib/aso.o wc.o fs_pool.o \
21 lib/nv_param.o
22
23 #
24 # Netdev basic
25 #
26 mlx5_core-$(CONFIG_MLX5_CORE_EN) += en/rqt.o en/tir.o en/rss.o en/rx_res.o \
27 en/channels.o en_main.o en_common.o en_fs.o en_ethtool.o \
28 en_tx.o en_rx.o en_dim.o en_txrx.o en/xdp.o en_stats.o \
29 en_selftest.o en/port.o en/monitor_stats.o en/health.o \
30 en/reporter_tx.o en/reporter_rx.o en/params.o en/xsk/pool.o \
31 en/xsk/setup.o en/xsk/rx.o en/xsk/tx.o en/devlink.o en/ptp.o \
32 en/qos.o en/htb.o en/trap.o en/fs_tt_redirect.o en/selq.o \
33 lib/crypto.o lib/sd.o en/pcie_cong_event.o
34
35 #
36 # Netdev extra
37 #
38 mlx5_core-$(CONFIG_MLX5_EN_ARFS) += en_arfs.o
39 mlx5_core-$(CONFIG_MLX5_EN_RXNFC) += en_fs_ethtool.o
40 mlx5_core-$(CONFIG_MLX5_CORE_EN_DCB) += en_dcbnl.o en/port_buffer.o
41 mlx5_core-$(CONFIG_PCI_HYPERV_INTERFACE) += en/hv_vhca_stats.o
42 mlx5_core-$(CONFIG_MLX5_ESWITCH) += lag/mp.o lag/port_sel.o lib/geneve.o lib/port_tun.o \
43 en_rep.o en/rep/bond.o en/mod_hdr.o \
44 en/mapping.o lag/mpesw.o
45 mlx5_core-$(CONFIG_MLX5_CLS_ACT) += en_tc.o en/rep/tc.o en/rep/neigh.o \
46 lib/fs_chains.o en/tc_tun.o \
47 esw/indir_table.o en/tc_tun_encap.o \
48 en/tc_tun_vxlan.o en/tc_tun_gre.o en/tc_tun_geneve.o \
49 en/tc_tun_mplsoudp.o diag/en_tc_tracepoint.o \
50 en/tc/post_act.o en/tc/int_port.o en/tc/meter.o \
51 en/tc/post_meter.o en/tc/act_stats.o
52
53 mlx5_core-$(CONFIG_MLX5_CLS_ACT) += en/tc/act/act.o en/tc/act/drop.o en/tc/act/trap.o \
54 en/tc/act/accept.o en/tc/act/mark.o en/tc/act/goto.o \
55 en/tc/act/tun.o en/tc/act/csum.o en/tc/act/pedit.o \
56 en/tc/act/vlan.o en/tc/act/vlan_mangle.o en/tc/act/mpls.o \
57 en/tc/act/mirred.o en/tc/act/mirred_nic.o \
58 en/tc/act/ct.o en/tc/act/sample.o en/tc/act/ptype.o \
59 en/tc/act/redirect_ingress.o en/tc/act/police.o
60
61 ifneq ($(CONFIG_MLX5_TC_CT),)
62 mlx5_core-y += en/tc_ct.o en/tc/ct_fs_dmfs.o
63 mlx5_core-$(CONFIG_MLX5_SW_STEERING) += en/tc/ct_fs_smfs.o
64 mlx5_core-$(CONFIG_MLX5_HW_STEERING) += en/tc/ct_fs_hmfs.o
65 endif
66
67 mlx5_core-$(CONFIG_MLX5_TC_SAMPLE) += en/tc/sample.o
68
69 #
70 # Core extra
71 #
72 mlx5_core-$(CONFIG_MLX5_ESWITCH) += eswitch.o eswitch_offloads.o eswitch_offloads_termtbl.o \
73 ecpf.o rdma.o esw/legacy.o esw/adj_vport.o \
74 esw/devlink_port.o esw/vporttbl.o esw/qos.o esw/ipsec.o
75
76 mlx5_core-$(CONFIG_MLX5_ESWITCH) += esw/acl/helper.o \
77 esw/acl/egress_lgcy.o esw/acl/egress_ofld.o \
78 esw/acl/ingress_lgcy.o esw/acl/ingress_ofld.o
79
80 ifneq ($(CONFIG_MLX5_EN_IPSEC),)
81 mlx5_core-$(CONFIG_MLX5_ESWITCH) += esw/ipsec_fs.o
82 endif
83
84 mlx5_core-$(CONFIG_MLX5_BRIDGE) += esw/bridge.o esw/bridge_mcast.o esw/bridge_debugfs.o \
85 en/rep/bridge.o
86
87 mlx5_core-$(CONFIG_HWMON) += hwmon.o
88 mlx5_core-$(CONFIG_MLX5_MPFS) += lib/mpfs.o
89 ifneq ($(CONFIG_VXLAN),)
90 mlx5_core-y += lib/vxlan.o
91 endif
92 mlx5_core-$(CONFIG_PTP_1588_CLOCK) += lib/clock.o
93 mlx5_core-$(CONFIG_PCI_HYPERV_INTERFACE) += lib/hv.o lib/hv_vhca.o
94
95 #
96 # Ipoib netdev
97 #
98 mlx5_core-$(CONFIG_MLX5_CORE_IPOIB) += ipoib/ipoib.o ipoib/ethtool.o ipoib/ipoib_vlan.o
99
100 #
101 # Accelerations & FPGA
102 #
103 mlx5_core-$(CONFIG_MLX5_FPGA) += fpga/cmd.o fpga/core.o fpga/conn.o fpga/sdk.o
104
105 mlx5_core-$(CONFIG_MLX5_MACSEC) += en_accel/macsec.o lib/macsec_fs.o \
106 en_accel/macsec_stats.o
107
108 mlx5_core-$(CONFIG_MLX5_EN_IPSEC) += en_accel/ipsec.o en_accel/ipsec_rxtx.o \
109 en_accel/ipsec_stats.o en_accel/ipsec_fs.o \
110 en_accel/ipsec_offload.o lib/ipsec_fs_roce.o
111
112 mlx5_core-$(CONFIG_MLX5_EN_TLS) += en_accel/ktls_stats.o \
113 en_accel/fs_tcp.o en_accel/ktls.o en_accel/ktls_txrx.o \
114 en_accel/ktls_tx.o en_accel/ktls_rx.o
115
116 mlx5_core-$(CONFIG_MLX5_EN_PSP) += en_accel/psp.o en_accel/psp_rxtx.o
117
118 #
119 # SW Steering
120 #
121 mlx5_core-$(CONFIG_MLX5_SW_STEERING) += steering/sws/dr_domain.o \
122 steering/sws/dr_table.o \
123 steering/sws/dr_matcher.o \
124 steering/sws/dr_rule.o \
125 steering/sws/dr_icm_pool.o \
126 steering/sws/dr_buddy.o \
127 steering/sws/dr_ste.o \
128 steering/sws/dr_send.o \
129 steering/sws/dr_ste_v0.o \
130 steering/sws/dr_ste_v1.o \
131 steering/sws/dr_ste_v2.o \
132 steering/sws/dr_ste_v3.o \
133 steering/sws/dr_cmd.o \
134 steering/sws/dr_fw.o \
135 steering/sws/dr_action.o \
136 steering/sws/dr_definer.o \
137 steering/sws/dr_ptrn.o \
138 steering/sws/dr_arg.o \
139 steering/sws/dr_dbg.o \
140 steering/sws/fs_dr.o \
141 lib/smfs.o
142
143 #
144 # HW Steering
145 #
146 mlx5_core-$(CONFIG_MLX5_HW_STEERING) += steering/hws/cmd.o \
147 steering/hws/context.o \
148 steering/hws/pat_arg.o \
149 steering/hws/buddy.o \
150 steering/hws/pool.o \
151 steering/hws/table.o \
152 steering/hws/action.o \
153 steering/hws/rule.o \
154 steering/hws/matcher.o \
155 steering/hws/send.o \
156 steering/hws/definer.o \
157 steering/hws/bwc.o \
158 steering/hws/debug.o \
159 steering/hws/vport.o \
160 steering/hws/bwc_complex.o \
161 steering/hws/fs_hws_pools.o \
162 steering/hws/fs_hws.o \
163 steering/hws/action_ste_pool.o
164
165 #
166 # SF device
167 #
168 mlx5_core-$(CONFIG_MLX5_SF) += sf/vhca_event.o sf/dev/dev.o sf/dev/driver.o irq_affinity.o
169
170 #
171 # SF manager
172 #
173 mlx5_core-$(CONFIG_MLX5_SF_MANAGER) += sf/cmd.o sf/hw_table.o sf/devlink.o
174
175 #
176 # TPH support
177 #
178 mlx5_core-$(CONFIG_PCIE_TPH) += lib/st.o
179
180 obj-$(CONFIG_MLX5_DPLL) += mlx5_dpll.o
181 mlx5_dpll-y := dpll.o