linux/Documentation/networking/devlink
Dima Chumak 390a24cbc3 devlink: Expose port function commands to control IPsec packet offloads
Expose port function commands to enable / disable IPsec packet offloads,
this is used to control the port IPsec capabilities.

When IPsec packet is disabled for a function of the port (default),
function cannot offload IPsec packet operations (encapsulation and XFRM
policy offload). When enabled, IPsec packet operations can be offloaded
by the function of the port, which includes crypto operation
(Encrypt/Decrypt), IPsec encapsulation and XFRM state and policy
offload.

Example of a PCI VF port which supports IPsec packet offloads:

$ devlink port show pci/0000:06:00.0/1
    pci/0000:06:00.0/1: type eth netdev enp6s0pf0vf0 flavour pcivf pfnum 0 vfnum 0
        function:
        hw_addr 00:00:00:00:00:00 roce enable ipsec_packet disable

$ devlink port function set pci/0000:06:00.0/1 ipsec_packet enable

$ devlink port show pci/0000:06:00.0/1
    pci/0000:06:00.0/1: type eth netdev enp6s0pf0vf0 flavour pcivf pfnum 0 vfnum 0
        function:
        hw_addr 00:00:00:00:00:00 roce enable ipsec_packet enable

Signed-off-by: Dima Chumak <dchumak@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Link: https://lore.kernel.org/r/20230825062836.103744-3-saeed@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2023-08-27 17:08:45 -07:00
..
am65-nuss-cpsw-switch.rst net: ti: am65-cpsw-nuss: Add devlink support 2021-02-11 17:52:13 -08:00
bnxt.rst bnxt_en: Update bnxt.rst devlink documentation 2021-10-29 12:13:05 +01:00
devlink-dpipe.rst devlink: fix typo in documentation 2021-03-13 18:11:24 -08:00
devlink-flash.rst devlink: introduce flash update overwrite mask 2020-09-25 17:20:57 -07:00
devlink-health.rst devlink: Update devlink health documentation 2023-02-15 19:15:44 -08:00
devlink-info.rst net: devlink: add DEVLINK_INFO_VERSION_GENERIC_FW_BOOTLOADER 2022-12-12 11:39:13 +01:00
devlink-linecard.rst Revert "Merge branch 'mlxsw-line-card-model'" 2022-05-05 15:47:23 -07:00
devlink-params.rst devlink: Clarifies max_macs generic devlink param 2021-12-21 19:08:55 -08:00
devlink-port.rst devlink: Expose port function commands to control IPsec packet offloads 2023-08-27 17:08:45 -07:00
devlink-region.rst devlink: support directly reading from region memory 2022-11-30 20:54:30 -08:00
devlink-reload.rst devlink: Add Documentation/networking/devlink/devlink-reload.rst 2020-10-09 12:06:53 -07:00
devlink-resource.rst mlxsw: Register physical ports as a devlink resource 2021-01-22 20:42:13 -08:00
devlink-selftests.rst devlink: introduce framework for selftests 2022-07-28 21:56:53 -07:00
devlink-trap.rst devlink: Add packet traps for 802.1X operation 2022-11-09 19:06:14 -08:00
etas_es58x.rst Documentation: devlink: add devlink documentation for the etas_es58x driver 2022-12-12 11:39:13 +01:00
hns3.rst devlink: add documentation for hns3 driver 2021-07-26 12:16:03 +01:00
ice.rst ice: document RDMA devlink parameters 2023-04-17 18:53:13 -07:00
index.rst sfc: add devlink info support for ef100 2023-02-16 12:03:12 +01:00
ionic.rst devlink: add documentation for ionic device driver 2020-01-10 17:07:00 -08:00
iosm.rst net: wwan: iosm: correct devlink extra params 2021-10-02 16:05:20 +01:00
mlx4.rst devlink: add a file documenting devlink regions 2020-01-10 17:07:00 -08:00
mlx5.rst net/mlx5e: Add recovery flow for tx devlink health reporter for unhealthy PTP SQ 2023-08-14 14:40:20 -07:00
mlxsw.rst mlxsw: core_linecards: Expose device PSID over device info 2022-07-26 13:56:36 -07:00
mv88e6xxx.rst
netdevsim.rst Documentation: networking: correct spelling 2023-01-31 13:00:47 +01:00
nfp.rst devlink: document info versions for each driver 2020-01-10 17:06:59 -08:00
octeontx2.rst devlink: add documentation for octeontx2 driver 2021-10-28 14:35:34 +01:00
prestera.rst Documentation: networking: correct spelling 2023-01-31 13:00:47 +01:00
qed.rst devlink: fix typos in qed documentation 2020-01-15 23:14:31 +01:00
sfc.rst sfc: add devlink info support for ef100 2023-02-16 12:03:12 +01:00
ti-cpsw-switch.rst