[net/failsafe] can a subdevice be a bonding?

jiangheng (G) jiangheng14 at huawei.com
Sat Sep 2 11:21:48 CEST 2023


Hi grive:
I'm using the bond4 mode of the mlx5 NIC, I have two ports.
Now I want to implement the hotplug function based on the failsafe module.

I've verified that the sub-device is two ports and it works well:
--vdev, 'net_failsafe0,mac=04:e8:92:7d:dd:e5,dev(08:00.0),dev(08:00.1)', -b, '08:00.0', -b,' 08:00.1'

I wonder if subdevieces can be a bonding, and if so, how should I configure it?
So far, I've verified that the following configuration does not work:
"--vdev", "net_bonding0,mac=04:e8:92:7d:dd:e4,mode=4,slave=0000:08:00.0,slave=0000:08:00.1,xmit_policy=l34","--vdev", "net_failsafe0,mac=04:e8:92:7d:dd:e5,dev(08:00.0),dev(08:00.1)",  "-b", "08:00.0", "-b", "08:00.1"
"--vdev", "net_bonding0,mac=04:e8:92:7d:dd:e4,mode=4,slave=0000:08:00.0,slave=0000:08:00.1,xmit_policy=l34","--vdev", "net_failsafe0,mac=04:e8:92:7d:dd:e5,dev(net_bonding0)"
"--vdev", "net_bonding0,mac=04:e8:92:7d:dd:e4,mode=4,slave=0000:08:00.0,slave=0000:08:00.1,xmit_policy=l34","--vdev", "net_failsafe0,mac=04:e8:92:7d:dd:e5,dev(08:00.0),dev(08:00.1)"


Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mails.dpdk.org/archives/users/attachments/20230902/3044be34/attachment.htm>


More information about the users mailing list