devlink: Use nla_policy to validate range
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | devlink: Enhance policy to validate eswitch mode valuenet/ | +2 | 0 replies | |
| 2/2 | devlink: Enhance policy to validate port type input valuenet/ | +2 | 0 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.
| Patch | Jiri Pirko | Jakub Kicinski |
|---|---|---|
| Series | R-b | |
| 1/2 | R-b | |
| 2/2 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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