Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1647092

Re: [PATCH net v2] bonding: fix accounting of active ports in 3ad

From David Miller <davem@davemloft.net>
Newsgroups linux.kernel
Subject Re: [PATCH net v2] bonding: fix accounting of active ports in 3ad
Date 2017-05-22 18:10 +0200
Message-ID <tJY4a-7To-19@gated-at.bofh.it> (permalink)
References <tI8U1-4JW-1@gated-at.bofh.it> <tIZOG-16K-15@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: Jarod Wilson <jarod@redhat.com>
Date: Fri, 19 May 2017 19:43:45 -0400

> As of 7bb11dc9f59d and 0622cab0341c, bond slaves in a 3ad bond are not
> removed from the aggregator when they are down, and the active slave count
> is NOT equal to number of ports in the aggregator, but rather the number
> of ports in the aggregator that are still enabled. The sysfs spew for
> bonding_show_ad_num_ports() has a comment that says "Show number of active
> 802.3ad ports.", but it's currently showing total number of ports, both
> active and inactive. Remedy it by using the same logic introduced in
> 0622cab0341c in __bond_3ad_get_active_agg_info(), so sysfs, procfs and
> netlink all report the number of active ports. Note that this means that
> IFLA_BOND_AD_INFO_NUM_PORTS really means NUM_ACTIVE_PORTS instead of
> NUM_PORTS, and thus perhaps should be renamed for clarity.
> 
> Lightly tested on a dual i40e lacp bond, simulating link downs with an ip
> link set dev <slave2> down, was able to produce the state where I could
> see both in the same aggregator, but a number of ports count of 1.
 ...
> Signed-off-by: Jarod Wilson <jarod@redhat.com>
> ---
> v2: fix incorrect git sha reference, add more testing data

Applied and queued up for -stable, thanks Jarod!

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH net] bonding: fix accounting of active ports in 3ad Jarod Wilson <jarod@redhat.com> - 2017-05-17 17:20 +0200
  Re: [PATCH net] bonding: fix accounting of active ports in 3ad David Miller <davem@davemloft.net> - 2017-05-19 23:20 +0200
    Re: [PATCH net] bonding: fix accounting of active ports in 3ad Jarod Wilson <jarod@redhat.com> - 2017-05-20 00:20 +0200
      Re: [PATCH net] bonding: fix accounting of active ports in 3ad David Miller <davem@davemloft.net> - 2017-05-20 01:20 +0200
  [PATCH net v2] bonding: fix accounting of active ports in 3ad Jarod Wilson <jarod@redhat.com> - 2017-05-20 01:50 +0200
    Re: [PATCH net v2] bonding: fix accounting of active ports in 3ad David Miller <davem@davemloft.net> - 2017-05-22 18:10 +0200

csiph-web