lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20191214131809.1f606978@cakuba.netronome.com>
Date:   Sat, 14 Dec 2019 13:18:09 -0800
From:   Jakub Kicinski <jakub.kicinski@...ronome.com>
To:     Andy Roulin <aroulin@...ulusnetworks.com>
Cc:     netdev@...r.kernel.org, dsahern@...il.com,
        nikolay@...ulusnetworks.com, roopa@...ulusnetworks.com,
        j.vosburgh@...il.com, vfalico@...il.com, andy@...yhouse.net,
        stephen@...workplumber.org
Subject: Re: [PATCH net-next v2] bonding: move 802.3ad port state flags to
 uapi

On Wed, 11 Dec 2019 14:30:58 -0800, Andy Roulin wrote:
> The bond slave actor/partner operating state is exported as
> bitfield to userspace, which lacks a way to interpret it, e.g.,
> iproute2 only prints the state as a number:
> 
> ad_actor_oper_port_state 15
> 
> For userspace to interpret the bitfield, the bitfield definitions
> should be part of the uapi. The bitfield itself is defined in the
> 802.3ad standard.
> 
> This commit moves the 802.3ad bitfield definitions to uapi.
> 
> Related iproute2 patches, soon to be posted upstream, use the new uapi
> headers to pretty-print bond slave state, e.g., with ip -d link show
> 
> ad_actor_oper_port_state_str <active,short_timeout,aggregating,in_sync>
> 
> Signed-off-by: Andy Roulin <aroulin@...ulusnetworks.com>
> Acked-by: Roopa Prabhu <roopa@...ulusnetworks.com>

Applied, I wonder if it wouldn't be better to rename those
s/AD_/BOND_3AD_/ like the prefix the stats have. 
But I guess it's unlikely user space has those exact defines 
set to a different value so can't cause a clash..

Thanks!

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ