ethtool: correct policy for ETHTOOL_MSG_CHANNELS_SET
authorJohannes Berg <johannes.berg@intel.com>
Wed, 7 Oct 2020 10:53:51 +0000 (12:53 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 8 Oct 2020 23:06:01 +0000 (16:06 -0700)
commitfd15dd0586896392f6f29daa5b9eeb6c1b18df6a
tree2103a327cafe4ed124a5bfb00f94b752fcf97791
parentdb972e5325183df1265bf851b32dc7530dd4393a
ethtool: correct policy for ETHTOOL_MSG_CHANNELS_SET

This accidentally got wired up to the *get* policy instead
of the *set* policy, causing operations to be rejected. Fix
it by wiring up the correct policy instead.

Fixes: 5028588b62cb ("ethtool: wire up set policies to ops")
Reported-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Tested-by: Leon Romanovsky <leonro@nvidia.com>
Reviewed-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ethtool/netlink.c