[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHn8xc=UeFzCybi199grR8To9yQjDyA1dMypFBMe1QCCD5S3vw@mail.gmail.com>
Date: Fri, 21 Mar 2025 09:22:14 +0100
From: Jussi Maki <joamaki@...il.com>
To: Wang Liang <wangliang74@...wei.com>
Cc: jv@...sburgh.net, andrew+netdev@...n.ch, davem@...emloft.net,
edumazet@...gle.com, kuba@...nel.org, pabeni@...hat.com, horms@...nel.org,
ast@...nel.org, daniel@...earbox.net, hawk@...nel.org,
john.fastabend@...il.com, yuehaibing@...wei.com, zhangchangzhong@...wei.com,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org, bpf@...r.kernel.org
Subject: Re: [PATCH net v2] bonding: check xdp prog when set bond mode
On Fri, Mar 21, 2025 at 5:38 AM Wang Liang <wangliang74@...wei.com> wrote:
>
> Following operations can trigger a warning[1]:
>
> ip netns add ns1
> ip netns exec ns1 ip link add bond0 type bond mode balance-rr
> ip netns exec ns1 ip link set dev bond0 xdp obj af_xdp_kern.o sec xdp
> ip netns exec ns1 ip link set bond0 type bond mode broadcast
> ip netns del ns1
>
> When delete the namespace, dev_xdp_uninstall() is called to remove xdp
> program on bond dev, and bond_xdp_set() will check the bond mode. If bond
> mode is changed after attaching xdp program, the warning may occur.
>
> Some bond modes (broadcast, etc.) do not support native xdp. Set bond mode
> with xdp program attached is not good. Add check for xdp program when set
> bond mode.
Looks reasonable to me. Thanks!
Acked-by: Jussi Maki <joamaki@...il.com>
Powered by blists - more mailing lists