diff options
author | Michael Guralnik <michaelgur@mellanox.com> | 2019-11-09 00:45:20 +0100 |
---|---|---|
committer | Saeed Mahameed <saeedm@mellanox.com> | 2019-11-11 21:15:29 +0100 |
commit | 6c7295e13ffd5623b02f1adc1442f1d8a3d52424 (patch) | |
tree | e51c6883807b745a92b73f0644ab612cd27329f4 /net/core/devlink.c | |
parent | net/mlx5: fix spelling mistake "metdata" -> "metadata" (diff) | |
download | linux-6c7295e13ffd5623b02f1adc1442f1d8a3d52424.tar.xz linux-6c7295e13ffd5623b02f1adc1442f1d8a3d52424.zip |
devlink: Add new "enable_roce" generic device param
New device parameter to enable/disable handling of RoCE traffic in the
device.
Signed-off-by: Michael Guralnik <michaelgur@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Reviewed-by: Maor Gottlieb <maorg@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'net/core/devlink.c')
-rw-r--r-- | net/core/devlink.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/core/devlink.c b/net/core/devlink.c index f80151eeaf51..0fbcd44aa64f 100644 --- a/net/core/devlink.c +++ b/net/core/devlink.c @@ -2884,6 +2884,11 @@ static const struct devlink_param devlink_param_generic[] = { .name = DEVLINK_PARAM_GENERIC_RESET_DEV_ON_DRV_PROBE_NAME, .type = DEVLINK_PARAM_GENERIC_RESET_DEV_ON_DRV_PROBE_TYPE, }, + { + .id = DEVLINK_PARAM_GENERIC_ID_ENABLE_ROCE, + .name = DEVLINK_PARAM_GENERIC_ENABLE_ROCE_NAME, + .type = DEVLINK_PARAM_GENERIC_ENABLE_ROCE_TYPE, + }, }; static int devlink_param_generic_verify(const struct devlink_param *param) |