From: David S. Miller Date: Wed, 23 Sep 2020 00:38:42 +0000 (-0700) Subject: Merge branch 'devlink-Use-nla_policy-to-validate-range' X-Git-Tag: v5.10-rc1~107^2~174 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=748d1c8a425ec529d541f082ee7a81f6a51fa120;p=thirdparty%2Flinux.git Merge branch 'devlink-Use-nla_policy-to-validate-range' Parav Pandit says: ==================== devlink: Use nla_policy to validate range This two small patches uses nla_policy to validate user specified fields are in valid range or not. Patch summary: Patch-1 checks the range of eswitch mode field Patch-2 checks for the port type field. It eliminates a check in code by using nla policy infrastructure. ==================== Reviewed-by: Jakub Kicinski Signed-off-by: David S. Miller --- 748d1c8a425ec529d541f082ee7a81f6a51fa120