From: Andy Roulin <aroulin@cumulusnetworks.com>
To: netdev@vger.kernel.org
Cc: dsahern@gmail.com, nikolay@cumulusnetworks.com,
roopa@cumulusnetworks.com, j.vosburgh@gmail.com,
vfalico@gmail.com, andy@greyhouse.net
Subject: [PATCH iproute2-net-next 0/3] pretty-print 802.3ad slave state
Date: Sat, 26 Oct 2019 16:29:51 -0700 [thread overview]
Message-ID: <1572132594-2006-1-git-send-email-aroulin@cumulusnetworks.com> (raw)
Print the bond slave 802.3ad state in a human-readable way in iproute2
The 802.3ad bond slave actor/partner state definitions are exported
to userspace in the kernel include/uapi
rtnetlink sends the bond slave state to userspace, see
- IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE; and
- IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE
These attributes only send the state value; the kernel does not export
the state field definitions to interpret the state's fields.
As the 802.3ad port states are defined in the 802.3ad standard, export
the 802.3ad bond slave state definitions to uapi/ and pretty print
them in iproute2.
net-next:
Andy Roulin (1):
bonding: move 802.3ad slave state defs to uapi
drivers/net/bonding/bond_3ad.c | 10 ----------
include/uapi/linux/if_bonding.h | 10 ++++++++++
2 files changed, 10 insertions(+), 10 deletions(-)
iproute2-next:
Andy Roulin (2):
include/uapi: update bonding kernel header
iplink: bond: print 3ad actor/partner oper states as strings
include/uapi/linux/if_bonding.h | 10 +++++++++
ip/iplink_bond_slave.c | 38 +++++++++++++++++++++++++++++----
2 files changed, 44 insertions(+), 4 deletions(-)
--
2.20.1
next reply other threads:[~2019-10-26 23:38 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-26 23:29 Andy Roulin [this message]
2019-10-26 23:29 ` [PATCH net-next 1/3] bonding: move 3ad port state defs to include/uapi Andy Roulin
2019-10-26 23:29 ` [PATCH iproute2-next 2/3] include/uapi: update bonding kernel header Andy Roulin
2019-10-26 23:29 ` [PATCH iproute2-next 3/3] iplink: bond: print 3ad actor/partner oper states as strings Andy Roulin
2019-10-27 9:41 ` Nikolay Aleksandrov
2019-10-28 16:58 ` Stephen Hemminger
2019-10-27 1:31 ` [PATCH iproute2-net-next 0/3] pretty-print 802.3ad slave state David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1572132594-2006-1-git-send-email-aroulin@cumulusnetworks.com \
--to=aroulin@cumulusnetworks.com \
--cc=andy@greyhouse.net \
--cc=dsahern@gmail.com \
--cc=j.vosburgh@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=nikolay@cumulusnetworks.com \
--cc=roopa@cumulusnetworks.com \
--cc=vfalico@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).