Files
rockchip-kernel/include/uapi/linux
Shay Drory da65e9ff3b devlink: Expose port function commands to control RoCE
Expose port function commands to enable / disable RoCE, this is used to
control the port RoCE device capabilities.

When RoCE is disabled for a function of the port, function cannot create
any RoCE specific resources (e.g GID table).
It also saves system memory utilization. For example disabling RoCE enable a
VF/SF saves 1 Mbytes of system memory per function.

Example of a PCI VF port which supports function configuration:
Set RoCE of the VF's port function.

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

$ devlink port function set pci/0000:06:00.0/2 roce disable

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

Signed-off-by: Shay Drory <shayd@nvidia.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2022-12-07 20:09:18 -08:00
..
2022-09-15 09:08:09 +02:00
2021-01-25 18:44:44 +01:00
2022-04-19 13:13:47 +01:00
2021-11-01 13:36:08 +00:00
2022-08-11 10:31:19 -07:00
2022-06-07 10:20:42 -07:00
2021-11-26 16:48:59 +01:00
2022-11-03 15:16:50 +01:00
2022-08-23 14:54:54 -05:00
2022-04-04 08:55:23 +02:00
2022-09-24 07:00:00 +02:00
2021-10-07 13:51:11 +02:00
2022-08-10 13:49:50 +01:00
2021-02-08 13:01:24 +01:00
2022-03-11 08:28:05 -08:00
2021-11-15 07:53:10 -08:00
2021-06-03 15:31:34 -07:00
2022-06-03 20:09:27 +08:00
2022-09-20 09:13:38 +02:00
2022-09-29 18:43:04 +02:00
2021-03-10 09:34:06 +01:00
2022-12-01 20:06:06 -08:00
2022-09-07 16:46:03 +02:00
2021-07-06 10:37:46 -05:00
2022-09-20 09:13:38 +02:00
2021-01-07 16:17:32 +01:00
2022-09-27 17:29:09 -07:00
2022-09-08 12:59:00 -06:00
2022-08-11 04:31:15 -04:00
2021-06-12 13:16:45 -07:00