DPDK usage discussions
 help / color / mirror / Atom feed
From: "jiangheng (G)" <jiangheng14@huawei.com>
To: "users@dpdk.org" <users@dpdk.org>,
	"grive@u256.net" <grive@u256.net>,
	Matan Azrad <matan@mellanox.com>
Subject: [net/failsafe] can a subdevice be a bonding?
Date: Sat, 2 Sep 2023 09:21:48 +0000	[thread overview]
Message-ID: <8e029e522c6f4168b36f1740dd437d17@huawei.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1063 bytes --]

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!

[-- Attachment #2: Type: text/html, Size: 4103 bytes --]

                 reply	other threads:[~2023-09-02  9:21 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8e029e522c6f4168b36f1740dd437d17@huawei.com \
    --to=jiangheng14@huawei.com \
    --cc=grive@u256.net \
    --cc=matan@mellanox.com \
    --cc=users@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).