Skip to content
Commit ba356c90 authored by Parav Pandit's avatar Parav Pandit Committed by David S. Miller
Browse files

devlink: Enhance policy to validate eswitch mode value



Use range checking facility of nla_policy to validate eswitch mode input
attribute value is valid or not.

Signed-off-by: default avatarParav Pandit <parav@nvidia.com>
Reviewed-by: default avatarJiri Pirko <jiri@nvidia.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 3ab0a7a0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment