Skip to content

Commit 325e0d0

Browse files
shirazsaleemanguy11
authored andcommitted
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 <[email protected]> Tested-by: Leszek Kaliszczuk <[email protected]> Signed-off-by: Tony Nguyen <[email protected]>
1 parent 3b0e041 commit 325e0d0

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

Documentation/networking/devlink/devlink-params.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,9 @@ own name.
109109
- Boolean
110110
- When enabled, the device driver will instantiate VDPA networking
111111
specific auxiliary device of the devlink device.
112+
* - ``enable_iwarp``
113+
- Boolean
114+
- Enable handling of iWARP traffic in the device.
112115
* - ``internal_err_reset``
113116
- Boolean
114117
- When enabled, the device driver will reset the device on internal

include/net/devlink.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,7 @@ enum devlink_param_generic_id {
485485
DEVLINK_PARAM_GENERIC_ID_ENABLE_ETH,
486486
DEVLINK_PARAM_GENERIC_ID_ENABLE_RDMA,
487487
DEVLINK_PARAM_GENERIC_ID_ENABLE_VNET,
488+
DEVLINK_PARAM_GENERIC_ID_ENABLE_IWARP,
488489

489490
/* add new param generic ids above here*/
490491
__DEVLINK_PARAM_GENERIC_ID_MAX,
@@ -534,6 +535,9 @@ enum devlink_param_generic_id {
534535
#define DEVLINK_PARAM_GENERIC_ENABLE_VNET_NAME "enable_vnet"
535536
#define DEVLINK_PARAM_GENERIC_ENABLE_VNET_TYPE DEVLINK_PARAM_TYPE_BOOL
536537

538+
#define DEVLINK_PARAM_GENERIC_ENABLE_IWARP_NAME "enable_iwarp"
539+
#define DEVLINK_PARAM_GENERIC_ENABLE_IWARP_TYPE DEVLINK_PARAM_TYPE_BOOL
540+
537541
#define DEVLINK_PARAM_GENERIC(_id, _cmodes, _get, _set, _validate) \
538542
{ \
539543
.id = DEVLINK_PARAM_GENERIC_ID_##_id, \

net/core/devlink.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4432,6 +4432,11 @@ static const struct devlink_param devlink_param_generic[] = {
44324432
.name = DEVLINK_PARAM_GENERIC_ENABLE_VNET_NAME,
44334433
.type = DEVLINK_PARAM_GENERIC_ENABLE_VNET_TYPE,
44344434
},
4435+
{
4436+
.id = DEVLINK_PARAM_GENERIC_ID_ENABLE_IWARP,
4437+
.name = DEVLINK_PARAM_GENERIC_ENABLE_IWARP_NAME,
4438+
.type = DEVLINK_PARAM_GENERIC_ENABLE_IWARP_TYPE,
4439+
},
44354440
};
44364441

44374442
static int devlink_param_generic_verify(const struct devlink_param *param)

0 commit comments

Comments
 (0)