* Reg: Link Bonding of VFs and PF admin down
@ 2023-03-29 6:57 bharath paulraj
2023-03-29 15:31 ` Stephen Hemminger
0 siblings, 1 reply; 2+ messages in thread
From: bharath paulraj @ 2023-03-29 6:57 UTC (permalink / raw)
To: dev; +Cc: Paulraj, Bharath
[-- Attachment #1: Type: text/plain, Size: 1595 bytes --]
Hello Team,
I have two X710 NICs in the hypervisor and created the VFs on those NICs.
PF is managed by the Linux kernel, while the VF is managed by DPDK. I am
using the "test-pmd" application to test the bonding functionality,
especially ACTIVE-BACKUP mode.
I have created the bond interface and added the slaves in such a way that
the one VFs from each of the PF is added to the bond interface. The goal is
to achieve uninterrupted traffic flow even when one of the PF is down.
As part of my testing, I made one of the PF admin down using the command
"ip link set <interface> down". Even after waiting for a few minutes, the
link status is not propagated to the VF, and the link bonding still takes
the PF which is down as the primary slave and tries to send the packet out
of that interface.
While debugging I found out that the link status of VF is still up. Is this
the expected behaviour? As per the link:
https://www.intel.in/content/www/in/en/support/articles/000036776/ethernet-products.html
it is the expected behaviour. It may work well if the use case is VF-to-VF
communication. But if the use case is to communicate to the other system -
(Switch/Routers), then this behaviour will break the link bonding
functionality, as the peer's interface would be operationally down, once
the PF is made admin down.
My use case: PF is managed by Linux kernel is connected to the external
Router, VF is added to the VM, and the DPDK application is supposed to
send/read the packet from the VF.
DPDK version used: DPDK-22.11.1
OS: centos-7
Let me know your thoughts.
--
Regards,
Bharath
[-- Attachment #2: Type: text/html, Size: 2232 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Reg: Link Bonding of VFs and PF admin down
2023-03-29 6:57 Reg: Link Bonding of VFs and PF admin down bharath paulraj
@ 2023-03-29 15:31 ` Stephen Hemminger
0 siblings, 0 replies; 2+ messages in thread
From: Stephen Hemminger @ 2023-03-29 15:31 UTC (permalink / raw)
To: bharath paulraj; +Cc: dev, Paulraj, Bharath
On Wed, 29 Mar 2023 12:27:16 +0530
bharath paulraj <bharathpaul@gmail.com> wrote:
> Hello Team,
>
> I have two X710 NICs in the hypervisor and created the VFs on those NICs.
> PF is managed by the Linux kernel, while the VF is managed by DPDK. I am
> using the "test-pmd" application to test the bonding functionality,
> especially ACTIVE-BACKUP mode.
> I have created the bond interface and added the slaves in such a way that
> the one VFs from each of the PF is added to the bond interface. The goal is
> to achieve uninterrupted traffic flow even when one of the PF is down.
> As part of my testing, I made one of the PF admin down using the command
> "ip link set <interface> down". Even after waiting for a few minutes, the
> link status is not propagated to the VF, and the link bonding still takes
> the PF which is down as the primary slave and tries to send the packet out
> of that interface.
>
> While debugging I found out that the link status of VF is still up. Is this
> the expected behaviour? As per the link:
> https://www.intel.in/content/www/in/en/support/articles/000036776/ethernet-products.html
> it is the expected behaviour. It may work well if the use case is VF-to-VF
> communication. But if the use case is to communicate to the other system -
> (Switch/Routers), then this behaviour will break the link bonding
> functionality, as the peer's interface would be operationally down, once
> the PF is made admin down.
>
>
> My use case: PF is managed by Linux kernel is connected to the external
> Router, VF is added to the VM, and the DPDK application is supposed to
> send/read the packet from the VF.
Link state is controlled by Linux kernel driver, the DPDK driver
is just reflecting information from the kernel. Talk to the kernel
maintainers and/or Redhat.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-03-29 15:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-29 6:57 Reg: Link Bonding of VFs and PF admin down bharath paulraj
2023-03-29 15:31 ` Stephen Hemminger
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).