Message ID | 20241021031211.814-2-liuhangbin@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 22ccb684c1cae37411450e6e86a379cd3c29cb8f |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | Bonding: returns detailed error about XDP failures | expand |
diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c index b1bffd8e9a95..f0f76b6ac8be 100644 --- a/drivers/net/bonding/bond_main.c +++ b/drivers/net/bonding/bond_main.c @@ -5676,8 +5676,11 @@ static int bond_xdp_set(struct net_device *dev, struct bpf_prog *prog, ASSERT_RTNL(); - if (!bond_xdp_check(bond)) + if (!bond_xdp_check(bond)) { + BOND_NL_ERR(dev, extack, + "No native XDP support for the current bonding mode"); return -EOPNOTSUPP; + } old_prog = bond->xdp_prog; bond->xdp_prog = prog;