| 1 |
# SPDX-License-Identifier: GPL-2.0-only |
| 2 |
# |
| 3 |
# Mellanox driver configuration |
| 4 |
# |
| 5 |
|
| 6 |
config MLX5_CORE |
| 7 |
tristate "Mellanox 5th generation network adapters (ConnectX series) core driver" |
| 8 |
depends on PCI |
| 9 |
select AUXILIARY_BUS |
| 10 |
select NET_DEVLINK |
| 11 |
depends on MLXFW || !MLXFW |
| 12 |
depends on PTP_1588_CLOCK_OPTIONAL |
| 13 |
depends on PCI_HYPERV_INTERFACE || !PCI_HYPERV_INTERFACE |
| 14 |
depends on HWMON || !HWMON |
| 15 |
help |
| 16 |
Core driver for low level functionality of the ConnectX-4 and |
| 17 |
Connect-IB cards by Mellanox Technologies. |
| 18 |
|
| 19 |
config MLX5_FPGA |
| 20 |
bool "Mellanox Technologies Innova support" |
| 21 |
depends on MLX5_CORE |
| 22 |
help |
| 23 |
Build support for the Innova family of network cards by Mellanox |
| 24 |
Technologies. Innova network cards are comprised of a ConnectX chip |
| 25 |
and an FPGA chip on one board. If you select this option, the |
| 26 |
mlx5_core driver will include the Innova FPGA core and allow building |
| 27 |
sandbox-specific client drivers. |
| 28 |
|
| 29 |
config MLX5_CORE_EN |
| 30 |
bool "Mellanox 5th generation network adapters (ConnectX series) Ethernet support" |
| 31 |
depends on NETDEVICES && ETHERNET && INET && PCI && MLX5_CORE |
| 32 |
select PAGE_POOL |
| 33 |
select PAGE_POOL_STATS |
| 34 |
select DIMLIB |
| 35 |
help |
| 36 |
Ethernet support in Mellanox Technologies ConnectX-4 NIC. |
| 37 |
|
| 38 |
config MLX5_EN_ARFS |
| 39 |
bool "Mellanox MLX5 ethernet accelerated receive flow steering (ARFS) support" |
| 40 |
depends on MLX5_CORE_EN && RFS_ACCEL |
| 41 |
default y |
| 42 |
help |
| 43 |
Mellanox MLX5 ethernet hardware-accelerated receive flow steering support, |
| 44 |
Enables ethernet netdevice arfs support and ntuple filtering. |
| 45 |
|
| 46 |
config MLX5_EN_RXNFC |
| 47 |
bool "Mellanox MLX5 ethernet rx nfc flow steering support" |
| 48 |
depends on MLX5_CORE_EN |
| 49 |
default y |
| 50 |
help |
| 51 |
Mellanox MLX5 ethernet rx nfc flow steering support |
| 52 |
Enables ethtool receive network flow classification, which allows user defined |
| 53 |
flow rules to direct traffic into arbitrary rx queue via ethtool set/get_rxnfc |
| 54 |
API. |
| 55 |
|
| 56 |
config MLX5_MPFS |
| 57 |
bool "Mellanox Technologies MLX5 MPFS support" |
| 58 |
depends on MLX5_CORE_EN |
| 59 |
default y |
| 60 |
help |
| 61 |
Mellanox Technologies Ethernet Multi-Physical Function Switch (MPFS) |
| 62 |
support in ConnectX NIC. MPFs is required for when multi-PF configuration |
| 63 |
is enabled to allow passing user configured unicast MAC addresses to the |
| 64 |
requesting PF. |
| 65 |
|
| 66 |
config MLX5_ESWITCH |
| 67 |
bool "Mellanox Technologies MLX5 SRIOV E-Switch support" |
| 68 |
depends on MLX5_CORE_EN && NET_SWITCHDEV |
| 69 |
default y |
| 70 |
help |
| 71 |
Mellanox Technologies Ethernet SRIOV E-Switch support in ConnectX NIC. |
| 72 |
E-Switch provides internal SRIOV packet steering and switching for the |
| 73 |
enabled VFs and PF in two available modes: |
| 74 |
Legacy SRIOV mode (L2 mac vlan steering based). |
| 75 |
Switchdev mode (eswitch offloads). |
| 76 |
|
| 77 |
config MLX5_BRIDGE |
| 78 |
bool |
| 79 |
depends on MLX5_ESWITCH && BRIDGE |
| 80 |
default y |
| 81 |
help |
| 82 |
mlx5 ConnectX offloads support for Ethernet Bridging (BRIDGE). |
| 83 |
Enable offloading FDB rules from a bridge device containing |
| 84 |
representors of mlx5 uplink and VF ports. Supports VLANs (trunk and |
| 85 |
access modes). |
| 86 |
|
| 87 |
config MLX5_CLS_ACT |
| 88 |
bool "MLX5 TC classifier action support" |
| 89 |
depends on MLX5_ESWITCH && NET_CLS_ACT && NET_TC_SKB_EXT |
| 90 |
default y |
| 91 |
help |
| 92 |
mlx5 ConnectX offloads support for TC classifier action (NET_CLS_ACT), |
| 93 |
works in both native NIC mode and Switchdev SRIOV mode. |
| 94 |
Actions get attached to a Hardware offloaded classifiers and are |
| 95 |
invoked after a successful classification. Actions are used to |
| 96 |
overwrite the classification result, instantly drop or redirect and/or |
| 97 |
reformat packets in wire speeds without involving the host cpu. |
| 98 |
|
| 99 |
If set to N, TC offloads in both NIC and switchdev modes will be disabled. |
| 100 |
If unsure, set to Y |
| 101 |
|
| 102 |
config MLX5_TC_CT |
| 103 |
bool "MLX5 TC connection tracking offload support" |
| 104 |
depends on MLX5_CLS_ACT && NF_FLOW_TABLE && NET_ACT_CT |
| 105 |
default y |
| 106 |
help |
| 107 |
Say Y here if you want to support offloading connection tracking rules |
| 108 |
via tc ct action. |
| 109 |
|
| 110 |
If unsure, set to Y |
| 111 |
|
| 112 |
config MLX5_TC_SAMPLE |
| 113 |
bool "MLX5 TC sample offload support" |
| 114 |
depends on MLX5_CLS_ACT |
| 115 |
depends on PSAMPLE=y || PSAMPLE=n || MLX5_CORE=m |
| 116 |
default y |
| 117 |
help |
| 118 |
Say Y here if you want to support offloading sample rules via tc |
| 119 |
sample action. |
| 120 |
If set to N, will not be able to configure tc rules with sample |
| 121 |
action. |
| 122 |
|
| 123 |
If unsure, set to Y |
| 124 |
|
| 125 |
config MLX5_CORE_EN_DCB |
| 126 |
bool "Data Center Bridging (DCB) Support" |
| 127 |
default y |
| 128 |
depends on MLX5_CORE_EN && DCB |
| 129 |
help |
| 130 |
Say Y here if you want to use Data Center Bridging (DCB) in the |
| 131 |
driver. |
| 132 |
If set to N, will not be able to configure QoS and ratelimit attributes. |
| 133 |
This flag is depended on the kernel's DCB support. |
| 134 |
|
| 135 |
If unsure, set to Y |
| 136 |
|
| 137 |
config MLX5_CORE_IPOIB |
| 138 |
bool "Mellanox 5th generation network adapters (connectX series) IPoIB offloads support" |
| 139 |
depends on MLX5_CORE_EN |
| 140 |
help |
| 141 |
MLX5 IPoIB offloads & acceleration support. |
| 142 |
|
| 143 |
config MLX5_MACSEC |
| 144 |
bool "Connect-X support for MACSec offload" |
| 145 |
depends on MLX5_CORE_EN |
| 146 |
depends on MACSEC |
| 147 |
default n |
| 148 |
help |
| 149 |
Build support for MACsec cryptography-offload acceleration in the NIC. |
| 150 |
|
| 151 |
config MLX5_EN_IPSEC |
| 152 |
bool "Mellanox Technologies IPsec Connect-X support" |
| 153 |
depends on MLX5_CORE_EN |
| 154 |
depends on XFRM_OFFLOAD |
| 155 |
depends on INET_ESP_OFFLOAD || INET6_ESP_OFFLOAD |
| 156 |
help |
| 157 |
Build support for IPsec cryptography-offload acceleration in the NIC. |
| 158 |
|
| 159 |
config MLX5_EN_TLS |
| 160 |
bool "Mellanox Technologies TLS Connect-X support" |
| 161 |
depends on TLS_DEVICE |
| 162 |
depends on TLS=y || MLX5_CORE=m |
| 163 |
depends on MLX5_CORE_EN |
| 164 |
help |
| 165 |
Build support for TLS cryptography-offload acceleration in the NIC. |
| 166 |
|
| 167 |
config MLX5_SW_STEERING |
| 168 |
bool "Mellanox Technologies software-managed steering" |
| 169 |
depends on MLX5_CORE_EN && MLX5_ESWITCH |
| 170 |
select CRC32 |
| 171 |
default y |
| 172 |
help |
| 173 |
Build support for software-managed steering in the NIC. |
| 174 |
|
| 175 |
config MLX5_HW_STEERING |
| 176 |
bool "Mellanox Technologies hardware-managed steering" |
| 177 |
depends on MLX5_CORE_EN && MLX5_ESWITCH |
| 178 |
default y |
| 179 |
help |
| 180 |
Build support for Hardware-Managed Flow Steering (HMFS) in the NIC. |
| 181 |
HMFS is a new approach to managing steering rules where STEs are |
| 182 |
written to ICM by HW (as opposed to SW in software-managed steering), |
| 183 |
which allows higher rate of rule insertion. |
| 184 |
|
| 185 |
config MLX5_SF |
| 186 |
bool "Mellanox Technologies subfunction device support using auxiliary device" |
| 187 |
depends on MLX5_CORE && MLX5_CORE_EN |
| 188 |
help |
| 189 |
Build support for subfuction device in the NIC. A Mellanox subfunction |
| 190 |
device can support RDMA, netdevice and vdpa device. |
| 191 |
It is similar to a SRIOV VF but it doesn't require SRIOV support. |
| 192 |
|
| 193 |
config MLX5_SF_MANAGER |
| 194 |
bool |
| 195 |
depends on MLX5_SF && MLX5_ESWITCH |
| 196 |
default y |
| 197 |
help |
| 198 |
Build support for subfuction port in the NIC. A Mellanox subfunction |
| 199 |
port is managed through devlink. A subfunction supports RDMA, netdevice |
| 200 |
and vdpa device. It is similar to a SRIOV VF but it doesn't require |
| 201 |
SRIOV support. |
| 202 |
|
| 203 |
config MLX5_DPLL |
| 204 |
tristate "Mellanox 5th generation network adapters (ConnectX series) DPLL support" |
| 205 |
depends on NETDEVICES && ETHERNET && PCI && MLX5_CORE |
| 206 |
select DPLL |
| 207 |
help |
| 208 |
DPLL support in Mellanox Technologies ConnectX NICs. |
| 209 |
|
| 210 |
config MLX5_EN_PSP |
| 211 |
bool "Mellanox Technologies support for PSP cryptography-offload acceleration" |
| 212 |
depends on INET_PSP |
| 213 |
depends on MLX5_CORE_EN |
| 214 |
default y |
| 215 |
help |
| 216 |
mlx5 device offload support for Google PSP Security Protocol offload. |
| 217 |
Adds support for PSP encryption offload and for SPI and key generation |
| 218 |
interfaces to PSP Stack which supports PSP crypto offload. |
| 219 |
|
| 220 |
If unsure, say Y. |