aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorShiraz Saleem <shiraz.saleem@intel.com>2021-10-18 18:16:01 -0500
committerTony Nguyen <anthony.l.nguyen@intel.com>2021-11-22 08:41:39 -0800
commit325e0d0aa683a96b9d9cd5802be524d4da5e2dd2 (patch)
tree5874d862ae03ae00f69c654d14f0fd932eeb40d6 /net
parentMerge branch 'qca8k-next' (diff)
downloadlinux-dev-325e0d0aa683a96b9d9cd5802be524d4da5e2dd2.tar.xz
linux-dev-325e0d0aa683a96b9d9cd5802be524d4da5e2dd2.zip
devlink: Add 'enable_iwarp' generic device param
Add a new device generic parameter to enable and disable iWARP functionality on a multi-protocol RDMA device. Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com> Tested-by: Leszek Kaliszczuk <leszek.kaliszczuk@intel.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Diffstat (limited to 'net')
-rw-r--r--net/core/devlink.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/net/core/devlink.c b/net/core/devlink.c
index 5ad72dbfcd07..d144a62cbf73 100644
--- a/net/core/devlink.c
+++ b/net/core/devlink.c
@@ -4432,6 +4432,11 @@ static const struct devlink_param devlink_param_generic[] = {
.name = DEVLINK_PARAM_GENERIC_ENABLE_VNET_NAME,
.type = DEVLINK_PARAM_GENERIC_ENABLE_VNET_TYPE,
},
+ {
+ .id = DEVLINK_PARAM_GENERIC_ID_ENABLE_IWARP,
+ .name = DEVLINK_PARAM_GENERIC_ENABLE_IWARP_NAME,
+ .type = DEVLINK_PARAM_GENERIC_ENABLE_IWARP_TYPE,
+ },
};
static int devlink_param_generic_verify(const struct devlink_param *param)