Re: [PATCH net v2] bonding: reject a non-Ethernet 802.3ad slave even when the type matches

From: Hangbin Liu

Date: Thu Nov 19 2026 - 05:02:19 EST


On Wed, Nov 18, 2026 at 07:31:10PM -0800, Kyuwon Cho wrote:
> Commit c84fcb79e5db ("bonding: limit BOND_MODE_8023AD to Ethernet
> devices") rejects a non-Ethernet first slave in 802.3ad mode, but only
> when enslaving it changes the bond's type. A bond keeps the type of its
> last slave after that slave is released, so a bond that once had an
> ARPHRD_TUNNEL6 slave can be set to 802.3ad and take another TUNNEL6

Hmm, should we also check and set the bond device type back to Ethernet
when set mode to 8023AD?

Thanks
Hangbin