mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-26 02:25:00 -05:00
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>
This commit is contained in:
parent
3b0e04140b
commit
325e0d0aa6
3 changed files with 12 additions and 0 deletions
|
@ -109,6 +109,9 @@ own name.
|
|||
- Boolean
|
||||
- When enabled, the device driver will instantiate VDPA networking
|
||||
specific auxiliary device of the devlink device.
|
||||
* - ``enable_iwarp``
|
||||
- Boolean
|
||||
- Enable handling of iWARP traffic in the device.
|
||||
* - ``internal_err_reset``
|
||||
- Boolean
|
||||
- When enabled, the device driver will reset the device on internal
|
||||
|
|
|
@ -485,6 +485,7 @@ enum devlink_param_generic_id {
|
|||
DEVLINK_PARAM_GENERIC_ID_ENABLE_ETH,
|
||||
DEVLINK_PARAM_GENERIC_ID_ENABLE_RDMA,
|
||||
DEVLINK_PARAM_GENERIC_ID_ENABLE_VNET,
|
||||
DEVLINK_PARAM_GENERIC_ID_ENABLE_IWARP,
|
||||
|
||||
/* add new param generic ids above here*/
|
||||
__DEVLINK_PARAM_GENERIC_ID_MAX,
|
||||
|
@ -534,6 +535,9 @@ enum devlink_param_generic_id {
|
|||
#define DEVLINK_PARAM_GENERIC_ENABLE_VNET_NAME "enable_vnet"
|
||||
#define DEVLINK_PARAM_GENERIC_ENABLE_VNET_TYPE DEVLINK_PARAM_TYPE_BOOL
|
||||
|
||||
#define DEVLINK_PARAM_GENERIC_ENABLE_IWARP_NAME "enable_iwarp"
|
||||
#define DEVLINK_PARAM_GENERIC_ENABLE_IWARP_TYPE DEVLINK_PARAM_TYPE_BOOL
|
||||
|
||||
#define DEVLINK_PARAM_GENERIC(_id, _cmodes, _get, _set, _validate) \
|
||||
{ \
|
||||
.id = DEVLINK_PARAM_GENERIC_ID_##_id, \
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue