Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge branch 'bonding-returns-detailed-error-about-xdp-failures'

Hangbin Liu says:

====================
Bonding: returns detailed error about XDP failures

Based on discussion[1], this patch set returns detailed error about XDP
failures. And update bonding document about XDP supports.

https://lore.kernel.org/8088f2a7-3ab1-4a1e-996d-c15703da13cc@blackwall.org
====================

Link: https://patch.msgid.link/20241021031211.814-1-liuhangbin@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

+15 -1
+11
Documentation/networking/bonding.rst
··· 2916 2916 then restore the MAC addresses that the slaves had before they were 2917 2917 enslaved. 2918 2918 2919 + 9. What bonding modes support native XDP? 2920 + ------------------------------------------ 2921 + 2922 + * balance-rr (0) 2923 + * active-backup (1) 2924 + * balance-xor (2) 2925 + * 802.3ad (4) 2926 + 2927 + Note that the vlan+srcmac hash policy does not support native XDP. 2928 + For other bonding modes, the XDP program must be loaded with generic mode. 2929 + 2919 2930 16. Resources and Links 2920 2931 ======================= 2921 2932
+4 -1
drivers/net/bonding/bond_main.c
··· 5676 5676 5677 5677 ASSERT_RTNL(); 5678 5678 5679 - if (!bond_xdp_check(bond)) 5679 + if (!bond_xdp_check(bond)) { 5680 + BOND_NL_ERR(dev, extack, 5681 + "No native XDP support for the current bonding mode"); 5680 5682 return -EOPNOTSUPP; 5683 + } 5681 5684 5682 5685 old_prog = bond->xdp_prog; 5683 5686 bond->xdp_prog = prog;