devlink: parse linecard attr in doit() callbacks
authorJiri Pirko <jiri@nvidia.com>
Fri, 11 Aug 2023 15:57:02 +0000 (17:57 +0200)
committerJakub Kicinski <kuba@kernel.org>
Mon, 14 Aug 2023 18:47:24 +0000 (11:47 -0700)
commit63618463cb94bda3ee68dc2ada998c0ef3c00e67
treea114c71700a110a85089010ef133b251ac171508
parent83b5f0253b1ef352f4333c4fb2d24eff23045f6b
devlink: parse linecard attr in doit() callbacks

No need to give the linecards any special treatment in netlink attribute
parsing, as unlike for ports, there is only a couple of commands
benefiting from that.

Remove DEVLINK_NL_FLAG_NEED_LINECARD, make pre_doit() callback simpler
by moving the linecard attribute parsing to linecard_[gs]et_doit() ops.

Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Acked-by: Jakub Kicinski <kuba@kernel.org>
Link: https://lore.kernel.org/r/20230811155714.1736405-2-jiri@resnulli.us
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/devlink/devl_internal.h
net/devlink/leftover.c
net/devlink/netlink.c