Message ID | 20241016031649.880-4-liuhangbin@gmail.com (mailing list archive) |
---|---|
State | Changes Requested |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | Bonding: return detailed error about XDP failures | expand |
On 16/10/2024 06:16, Hangbin Liu wrote: > Add document about which modes have native XDP support. > > Signed-off-by: Hangbin Liu <liuhangbin@gmail.com> > --- > Documentation/networking/bonding.rst | 12 ++++++++++++ > 1 file changed, 12 insertions(+) > > diff --git a/Documentation/networking/bonding.rst b/Documentation/networking/bonding.rst > index e774b48de9f5..6a1a6293dd3a 100644 > --- a/Documentation/networking/bonding.rst > +++ b/Documentation/networking/bonding.rst > @@ -2916,6 +2916,18 @@ from the bond (``ifenslave -d bond0 eth0``). The bonding driver will > then restore the MAC addresses that the slaves had before they were > enslaved. > > +9. What modes does bonding have native XDP support? TBH this sounds strange and to be correct it probably needs to end with "for" (What modes does bonding have native XDP support for), but how about something straight-forward like: What bonding modes have native XDP support? or What bonding modes support native XDP? > +---------------------------------------------------- > + > +Currently, native XDP is supported only in the following bonding modes: > + * balance-rr (0) > + * active-backup (1) > + * balance-xor (2) > + * 802.3ad (4) > + > +Note that the vlan+srcmac hash policy is not supported with native XDP. > +For other bonding modes, the XDP program must be loaded in generic mode. > + > 16. Resources and Links > ======================= >
On Wed, Oct 16, 2024 at 10:38:05AM +0300, Nikolay Aleksandrov wrote: > > +9. What modes does bonding have native XDP support? > TBH this sounds strange and to be correct it probably needs > to end with "for" (What modes does bonding have native XDP support for), but > how about something straight-forward like: > > What bonding modes have native XDP support? > > or > > What bonding modes support native XDP? Thanks, I will use this one. Hangbin
diff --git a/Documentation/networking/bonding.rst b/Documentation/networking/bonding.rst index e774b48de9f5..6a1a6293dd3a 100644 --- a/Documentation/networking/bonding.rst +++ b/Documentation/networking/bonding.rst @@ -2916,6 +2916,18 @@ from the bond (``ifenslave -d bond0 eth0``). The bonding driver will then restore the MAC addresses that the slaves had before they were enslaved. +9. What modes does bonding have native XDP support? +---------------------------------------------------- + +Currently, native XDP is supported only in the following bonding modes: + * balance-rr (0) + * active-backup (1) + * balance-xor (2) + * 802.3ad (4) + +Note that the vlan+srcmac hash policy is not supported with native XDP. +For other bonding modes, the XDP program must be loaded in generic mode. + 16. Resources and Links =======================
Add document about which modes have native XDP support. Signed-off-by: Hangbin Liu <liuhangbin@gmail.com> --- Documentation/networking/bonding.rst | 12 ++++++++++++ 1 file changed, 12 insertions(+)