DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] About bond api lacp problem.
@ 2016-04-16  9:41 yangbo
  2016-04-18  8:08 ` Andriy Berestovskyy
  0 siblings, 1 reply; 2+ messages in thread
From: yangbo @ 2016-04-16  9:41 UTC (permalink / raw)
  To: dev

Hi,

How to understand bond api comments:

for LACP mode to work the rx/tx burst functions must be invoked at least once every 100ms, otherwise the out-of-band LACP messages will not be handled with the expected latency and this may cause the link status to be incorrectly marked as down or failure to correctly negotiate with peers.


can any one give me example or more detail info ?

I am extremely grateful for it.

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

* Re: [dpdk-dev] About bond api lacp problem.
  2016-04-16  9:41 [dpdk-dev] About bond api lacp problem yangbo
@ 2016-04-18  8:08 ` Andriy Berestovskyy
  0 siblings, 0 replies; 2+ messages in thread
From: Andriy Berestovskyy @ 2016-04-18  8:08 UTC (permalink / raw)
  To: yangbo; +Cc: dev

Hi,
Basically, you have to make sure you call rte_eth_tx_burst() every 100
ms in your forwarding loop. Here is such an example:

const uint64_t bond_tx_cycles = (rte_get_timer_hz() + MS_PER_S - 1) *
100 / MS_PER_S;
uint64_t cur_bond_cycles, diff_cycles;
uint64_t last_bond_tx_cycles = 0;

  /* Inside your forwarding loop: */
  cur_bond_cycles = rte_get_timer_cycles();

  diff_cycles = cur_bond_cycles - last_bond_tx_cycles;
  if (diff_cycles > bond_tx_cycles) {
      last_bond_tx_cycles = cur_bond_cycles;
      rte_eth_tx_burst(bond_port_id, 0, NULL, 0);
  }

There is a user@dpdk.org mailing list, please address such questions there.

Regards,
Andriy

On Sat, Apr 16, 2016 at 11:41 AM, yangbo <yangbo_588@outlook.com> wrote:
> Hi,
>
> How to understand bond api comments:
>
> for LACP mode to work the rx/tx burst functions must be invoked at least once every 100ms, otherwise the out-of-band LACP messages will not be handled with the expected latency and this may cause the link status to be incorrectly marked as down or failure to correctly negotiate with peers.
>
>
> can any one give me example or more detail info ?
>
> I am extremely grateful for it.



-- 
Andriy Berestovskyy

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

end of thread, other threads:[~2016-04-18  8:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-16  9:41 [dpdk-dev] About bond api lacp problem yangbo
2016-04-18  8:08 ` Andriy Berestovskyy

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).