Skip to content

devlink: Use nla_policy to validate range

Parav Pandit netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2devlink: Enhance policy to validate eswitch mode valuenet/core/devlink.c+2 -10 replies
2/2devlink: Enhance policy to validate port type input valuenet/core/devlink.c+2 -30 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJiri PirkoJakub Kicinski
SeriesR-b
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH net-next 0/2] 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.

Parav Pandit (2):
devlink: Enhance policy to validate eswitch mode value
devlink: Enhance policy to validate port type input value

 net/core/devlink.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
Signature · 1 line
2.26.2