162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0-only
262306a36Sopenharmony_ci#
362306a36Sopenharmony_ci# Netronome device configuration
462306a36Sopenharmony_ci#
562306a36Sopenharmony_ci
662306a36Sopenharmony_ciconfig NET_VENDOR_NETRONOME
762306a36Sopenharmony_ci	bool "Netronome(R) devices"
862306a36Sopenharmony_ci	default y
962306a36Sopenharmony_ci	help
1062306a36Sopenharmony_ci	  If you have a Netronome(R) network (Ethernet) card or device, say Y.
1162306a36Sopenharmony_ci
1262306a36Sopenharmony_ci	  Note that the answer to this question doesn't directly affect the
1362306a36Sopenharmony_ci	  kernel: saying N will just cause the configurator to skip all
1462306a36Sopenharmony_ci	  the questions about Netronome(R) cards. If you say Y, you will be
1562306a36Sopenharmony_ci	  asked for your specific card in the following questions.
1662306a36Sopenharmony_ci
1762306a36Sopenharmony_ciif NET_VENDOR_NETRONOME
1862306a36Sopenharmony_ci
1962306a36Sopenharmony_ciconfig NFP
2062306a36Sopenharmony_ci	tristate "Netronome(R) NFP4000/NFP6000 NIC driver"
2162306a36Sopenharmony_ci	depends on PCI_MSI
2262306a36Sopenharmony_ci	depends on VXLAN || VXLAN=n
2362306a36Sopenharmony_ci	depends on TLS && TLS_DEVICE || TLS_DEVICE=n
2462306a36Sopenharmony_ci	select NET_DEVLINK
2562306a36Sopenharmony_ci	select CRC32
2662306a36Sopenharmony_ci	select DIMLIB
2762306a36Sopenharmony_ci	help
2862306a36Sopenharmony_ci	  This driver supports the Netronome(R) NFP4000/NFP6000 based
2962306a36Sopenharmony_ci	  cards working as a advanced Ethernet NIC.  It works with both
3062306a36Sopenharmony_ci	  SR-IOV physical and virtual functions.
3162306a36Sopenharmony_ci
3262306a36Sopenharmony_ciconfig NFP_APP_FLOWER
3362306a36Sopenharmony_ci	bool "NFP4000/NFP6000 TC Flower offload support"
3462306a36Sopenharmony_ci	depends on NFP
3562306a36Sopenharmony_ci	depends on NET_SWITCHDEV
3662306a36Sopenharmony_ci	depends on IPV6!=m || NFP=m
3762306a36Sopenharmony_ci	default y
3862306a36Sopenharmony_ci	help
3962306a36Sopenharmony_ci	  Enable driver support for TC Flower offload on NFP4000 and NFP6000.
4062306a36Sopenharmony_ci	  Say Y, if you are planning to make use of TC Flower offload
4162306a36Sopenharmony_ci	  either directly, with Open vSwitch, or any other way.  Note that
4262306a36Sopenharmony_ci	  TC Flower offload requires specific FW to work.
4362306a36Sopenharmony_ci
4462306a36Sopenharmony_ciconfig NFP_APP_ABM_NIC
4562306a36Sopenharmony_ci	bool "NFP4000/NFP6000 Advanced buffer management NIC support"
4662306a36Sopenharmony_ci	depends on NFP
4762306a36Sopenharmony_ci	depends on NET_SWITCHDEV
4862306a36Sopenharmony_ci	default y
4962306a36Sopenharmony_ci	help
5062306a36Sopenharmony_ci	  Enable driver support for Advanced buffer management NIC on NFP.
5162306a36Sopenharmony_ci	  ABM NIC allows advanced configuration of queuing and scheduling
5262306a36Sopenharmony_ci	  of packets, including ECN marking. Say Y, if you are planning to
5362306a36Sopenharmony_ci	  use one of the NFP4000 and NFP6000 platforms which support this
5462306a36Sopenharmony_ci	  functionality.
5562306a36Sopenharmony_ci	  Code will be built into the nfp.ko driver.
5662306a36Sopenharmony_ci
5762306a36Sopenharmony_ciconfig NFP_NET_IPSEC
5862306a36Sopenharmony_ci	bool "NFP IPsec crypto offload support"
5962306a36Sopenharmony_ci	depends on NFP
6062306a36Sopenharmony_ci	depends on XFRM_OFFLOAD
6162306a36Sopenharmony_ci	default y
6262306a36Sopenharmony_ci	help
6362306a36Sopenharmony_ci	  Enable driver support IPsec crypto offload on NFP NIC.
6462306a36Sopenharmony_ci	  Say Y, if you are planning to make use of IPsec crypto
6562306a36Sopenharmony_ci	  offload. NOTE that IPsec crypto offload on NFP NIC
6662306a36Sopenharmony_ci	  requires specific FW to work.
6762306a36Sopenharmony_ci
6862306a36Sopenharmony_ciconfig NFP_DEBUG
6962306a36Sopenharmony_ci	bool "Debug support for Netronome(R) NFP4000/NFP6000 NIC drivers"
7062306a36Sopenharmony_ci	depends on NFP
7162306a36Sopenharmony_ci	help
7262306a36Sopenharmony_ci	  Enable extra sanity checks and debugfs support in
7362306a36Sopenharmony_ci	  Netronome(R) NFP4000/NFP6000 NIC drivers.
7462306a36Sopenharmony_ci	  Note: selecting this option may adversely impact
7562306a36Sopenharmony_ci		performance.
7662306a36Sopenharmony_ci
7762306a36Sopenharmony_ciendif
78