diff options
author | Vasundhara Volam <vasundhara-v.volam@broadcom.com> | 2018-07-04 14:30:36 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-07-05 19:58:35 +0900 |
commit | f567bcdae2b052bab94be7903863cb9ab47c907c (patch) | |
tree | 8fd4f5c1c88e05615b92f4146658a2e2dac4f8bd /net | |
parent | dfb3c0821a4435600879b6dc7fb5d9dbf9678475 (diff) |
devlink: Add enable_sriov boolean generic parameter
enable_sriov - Enables Single-Root Input/Output Virtualization(SR-IOV)
characteristic of the device.
Reviewed-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: Vasundhara Volam <vasundhara-v.volam@broadcom.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/core/devlink.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/net/core/devlink.c b/net/core/devlink.c index 5bbd0aa7571a..470f3dbfecfe 100644 --- a/net/core/devlink.c +++ b/net/core/devlink.c @@ -2615,7 +2615,11 @@ static const struct devlink_param devlink_param_generic[] = { .name = DEVLINK_PARAM_GENERIC_MAX_MACS_NAME, .type = DEVLINK_PARAM_GENERIC_MAX_MACS_TYPE, }, - + { + .id = DEVLINK_PARAM_GENERIC_ID_ENABLE_SRIOV, + .name = DEVLINK_PARAM_GENERIC_ENABLE_SRIOV_NAME, + .type = DEVLINK_PARAM_GENERIC_ENABLE_SRIOV_TYPE, + }, }; static int devlink_param_generic_verify(const struct devlink_param *param) |