Merge tag 'for-linus-4.18-rc2-tag' of git://git.kernel.org/pub/scm/linux/kernel/git...
[sfrench/cifs-2.6.git] / drivers / net / ethernet / mellanox / mlx5 / core / Kconfig
1 #
2 # Mellanox driver configuration
3 #
4
5 config MLX5_CORE
6         tristate "Mellanox Technologies ConnectX-4 and Connect-IB core driver"
7         depends on MAY_USE_DEVLINK
8         depends on PCI
9         imply PTP_1588_CLOCK
10         default n
11         ---help---
12           Core driver for low level functionality of the ConnectX-4 and
13           Connect-IB cards by Mellanox Technologies.
14
15 config MLX5_ACCEL
16         bool
17
18 config MLX5_FPGA
19         bool "Mellanox Technologies Innova support"
20         depends on MLX5_CORE
21         select MLX5_ACCEL
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 Technologies ConnectX-4 Ethernet support"
31         depends on NETDEVICES && ETHERNET && INET && PCI && MLX5_CORE
32         depends on IPV6=y || IPV6=n || MLX5_CORE=m
33         select PAGE_POOL
34         default n
35         ---help---
36           Ethernet support in Mellanox Technologies ConnectX-4 NIC.
37
38 config MLX5_MPFS
39         bool "Mellanox Technologies MLX5 MPFS support"
40         depends on MLX5_CORE_EN
41         default y
42         ---help---
43           Mellanox Technologies Ethernet Multi-Physical Function Switch (MPFS)
44           support in ConnectX NIC. MPFs is required for when multi-PF configuration
45           is enabled to allow passing user configured unicast MAC addresses to the
46           requesting PF.
47
48 config MLX5_ESWITCH
49         bool "Mellanox Technologies MLX5 SRIOV E-Switch support"
50         depends on MLX5_CORE_EN && NET_SWITCHDEV
51         default y
52         ---help---
53           Mellanox Technologies Ethernet SRIOV E-Switch support in ConnectX NIC.
54           E-Switch provides internal SRIOV packet steering and switching for the
55           enabled VFs and PF in two available modes:
56                 Legacy SRIOV mode (L2 mac vlan steering based).
57                 Switchdev mode (eswitch offloads).
58
59 config MLX5_CORE_EN_DCB
60         bool "Data Center Bridging (DCB) Support"
61         default y
62         depends on MLX5_CORE_EN && DCB
63         ---help---
64           Say Y here if you want to use Data Center Bridging (DCB) in the
65           driver.
66           If set to N, will not be able to configure QoS and ratelimit attributes.
67           This flag is depended on the kernel's DCB support.
68
69           If unsure, set to Y
70
71 config MLX5_CORE_IPOIB
72         bool "Mellanox Technologies ConnectX-4 IPoIB offloads support"
73         depends on MLX5_CORE_EN
74         default n
75         ---help---
76           MLX5 IPoIB offloads & acceleration support.
77
78 config MLX5_EN_IPSEC
79         bool "IPSec XFRM cryptography-offload accelaration"
80         depends on MLX5_ACCEL
81         depends on MLX5_CORE_EN
82         depends on XFRM_OFFLOAD
83         depends on INET_ESP_OFFLOAD || INET6_ESP_OFFLOAD
84         default n
85         ---help---
86           Build support for IPsec cryptography-offload accelaration in the NIC.
87           Note: Support for hardware with this capability needs to be selected
88           for this option to become available.
89
90 config MLX5_EN_TLS
91         bool "TLS cryptography-offload accelaration"
92         depends on MLX5_CORE_EN
93         depends on TLS_DEVICE
94         depends on TLS=y || MLX5_CORE=m
95         depends on MLX5_ACCEL
96         default n
97         ---help---
98           Build support for TLS cryptography-offload accelaration in the NIC.
99           Note: Support for hardware with this capability needs to be selected
100           for this option to become available.