summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHangbin Liu <liuhangbin@kylinos.cn>2026-08-06 11:29:28 +0800
committerJakub Kicinski <kuba@kernel.org>2026-08-10 16:15:09 -0700
commitfd23a7c973174a320ae2b560d1caa69ef111c0c2 (patch)
tree09f10cb0bb41a7b244e55a404e6a5ebc8775a305
parente99ecc3046ea5f5c6b5e1f8b4ef854c6c6998e06 (diff)
downloadlinux-fd23a7c973174a320ae2b560d1caa69ef111c0c2.tar.gz
linux-fd23a7c973174a320ae2b560d1caa69ef111c0c2.zip
bonding: fix wrong extack attribute in ARP validate netlink error path
The attribute of netlink error message should be IFLA_BOND_ARP_VALIDATE when ARP validation setting fails. Added by commit 2bff369b2354 ("bonding: netlink error message support for options"). Signed-off-by: Hangbin Liu <liuhangbin@kylinos.cn> Reviewed-by: Fernando Fernandez Mancera <fmancera@suse.de> Link: https://patch.msgid.link/20260806-bond_arp_validate-v1-1-3ae005657ef9@kylinos.cn Signed-off-by: Jakub Kicinski <kuba@kernel.org>
-rw-r--r--drivers/net/bonding/bond_netlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/bonding/bond_netlink.c b/drivers/net/bonding/bond_netlink.c
index 55d2f8a539d4..23ccf4d03137 100644
--- a/drivers/net/bonding/bond_netlink.c
+++ b/drivers/net/bonding/bond_netlink.c
@@ -372,7 +372,7 @@ static int bond_changelink(struct net_device *bond_dev, struct nlattr *tb[],
int arp_validate = nla_get_u32(data[IFLA_BOND_ARP_VALIDATE]);
if (arp_validate && miimon) {
- NL_SET_ERR_MSG_ATTR(extack, data[IFLA_BOND_ARP_INTERVAL],
+ NL_SET_ERR_MSG_ATTR(extack, data[IFLA_BOND_ARP_VALIDATE],
"ARP validating cannot be used with MII monitoring");
return -EINVAL;
}