Home
last modified time | relevance | path

Searched hist:"4 fa86555d1cd338afc6e6308cc1ff890a014ec8c" (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/include/net/
H A Dgenetlink.hdiff 4fa86555d1cd338afc6e6308cc1ff890a014ec8c Fri Oct 21 14:35:32 CDT 2022 Jakub Kicinski <kuba@kernel.org> genetlink: piggy back on resv_op to default to a reject policy

To keep backward compatibility we used to leave attribute parsing
to the family if no policy is specified. This becomes tedious as
we move to more strict validation. Families must define reject all
policies if they don't want any attributes accepted.

Piggy back on the resv_start_op field as the switchover point.
AFAICT only ethtool has added new commands since the resv_start_op
was defined, and it has per-op policies so this should be a no-op.

Nonetheless the patch should still go into v6.1 for consistency.

Link: https://lore.kernel.org/all/20221019125745.3f2e7659@kernel.org/
Link: https://lore.kernel.org/r/20221021193532.1511293-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
/openbmc/linux/net/netlink/
H A Dgenetlink.cdiff 4fa86555d1cd338afc6e6308cc1ff890a014ec8c Fri Oct 21 14:35:32 CDT 2022 Jakub Kicinski <kuba@kernel.org> genetlink: piggy back on resv_op to default to a reject policy

To keep backward compatibility we used to leave attribute parsing
to the family if no policy is specified. This becomes tedious as
we move to more strict validation. Families must define reject all
policies if they don't want any attributes accepted.

Piggy back on the resv_start_op field as the switchover point.
AFAICT only ethtool has added new commands since the resv_start_op
was defined, and it has per-op policies so this should be a no-op.

Nonetheless the patch should still go into v6.1 for consistency.

Link: https://lore.kernel.org/all/20221019125745.3f2e7659@kernel.org/
Link: https://lore.kernel.org/r/20221021193532.1511293-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>