bridge: mcast: Place netlink policy before validation functions
authorIdo Schimmel <idosch@nvidia.com>
Sat, 10 Dec 2022 14:56:22 +0000 (16:56 +0200)
committerJakub Kicinski <kuba@kernel.org>
Mon, 12 Dec 2022 23:33:36 +0000 (15:33 -0800)
commit1870a2d35abb6f4d8ff2213d50bbd082b1f8cde5
treea48f43684a7416be6c2ef940136c9a392e490042
parent6ff1e68eb21501042ebf8226d500398fd07350f3
bridge: mcast: Place netlink policy before validation functions

Subsequent patches are going to add additional validation functions and
netlink policies. Some of these functions will need to perform parsing
using nla_parse_nested() and the new policies.

In order to keep all the policies next to each other, move the current
policy to before the validation functions.

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Acked-by: Nikolay Aleksandrov <razor@blackwall.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/bridge/br_mdb.c