DPDK usage discussions
 help / color / Atom feed
* [dpdk-users] bonding - slave mac address is not updated
@ 2019-10-07 18:17 Eugene Iskra
  2019-10-10  8:34 ` Eugene Iskra
  0 siblings, 1 reply; 2+ messages in thread
From: Eugene Iskra @ 2019-10-07 18:17 UTC (permalink / raw)
  To: users

Hello,

I am using DPDK 18.11.2 with bonding in BONDING_MODE_ACTIVE_BACKUP mode.
When both slaves are connected to the switch, the primary slave receives 
/ sends traffic
and everything work well.
When the primary port is disconnected, and the secondary slave becomes 
primary,
no packets are received, except for broadcast packets.

Looking at bond_ethdev_lsc_event_callback in rte_eth_bond_pmd.c, I see that
mac_address_slaves_update is called only when slave link is brought up, 
but if slave
goes down, mac addresses are not updated.

Also the mac_address_slaves_update function itself doesn't seem to 
update mac address
correctly for the new primary port, since it updates 
internals->primary_port instead
of internals->current_primary_port.

Is this an actual bug or am I misunderstanding something / something is 
not configured
right?


Regards,
Eugene

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dpdk-users] bonding - slave mac address is not updated
  2019-10-07 18:17 [dpdk-users] bonding - slave mac address is not updated Eugene Iskra
@ 2019-10-10  8:34 ` Eugene Iskra
  0 siblings, 0 replies; 2+ messages in thread
From: Eugene Iskra @ 2019-10-10  8:34 UTC (permalink / raw)
  To: users

I see there's an open bug on this issue.
https://bugs.dpdk.org/show_bug.cgi?id=256

On 10/7/19 21:17, Eugene Iskra wrote:
> Hello,
>
> I am using DPDK 18.11.2 with bonding in BONDING_MODE_ACTIVE_BACKUP mode.
> When both slaves are connected to the switch, the primary slave 
> receives / sends traffic
> and everything work well.
> When the primary port is disconnected, and the secondary slave becomes 
> primary,
> no packets are received, except for broadcast packets.
>
> Looking at bond_ethdev_lsc_event_callback in rte_eth_bond_pmd.c, I see 
> that
> mac_address_slaves_update is called only when slave link is brought 
> up, but if slave
> goes down, mac addresses are not updated.
>
> Also the mac_address_slaves_update function itself doesn't seem to 
> update mac address
> correctly for the new primary port, since it updates 
> internals->primary_port instead
> of internals->current_primary_port.
>
> Is this an actual bug or am I misunderstanding something / something 
> is not configured
> right?
>
>
> Regards,
> Eugene


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-07 18:17 [dpdk-users] bonding - slave mac address is not updated Eugene Iskra
2019-10-10  8:34 ` Eugene Iskra

DPDK usage discussions

Archives are clonable:
	git clone --mirror http://inbox.dpdk.org/users/0 users/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 users users/ http://inbox.dpdk.org/users \
		users@dpdk.org
	public-inbox-index users


Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.users


AGPL code for this site: git clone https://public-inbox.org/ public-inbox