All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH iproute2-next v2 0/7] dcb: Support APP, DCBX objects
@ 2021-01-02  0:03 Petr Machata
  2021-01-02  0:03 ` [PATCH iproute2-next v2 1/7] lib: rt_names: Add rtnl_dsfield_get_name() Petr Machata
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Petr Machata @ 2021-01-02  0:03 UTC (permalink / raw)
  To: netdev, dsahern, stephen; +Cc: Petr Machata

Add support to the dcb tool for the following two DCB objects:

- APP, which allows configuration of traffic prioritization rules based on
  several possible packet headers.

- DCBX, which is a 1-byte bitfield of flags that configure whether the DCBX
  protocol is implemented in the device or in the host, and which version
  of the protocol should be used.

Patch #1 adds a new helper for finding a name of a given dsfield value.
This is useful for APP DSCP-to-priority rules, which can use human-readable
DSCP names.

Patches #2, #3 and #4 extend existing interfaces for, respectively, parsing
of the X:Y mappings, for setting a DCB object, and for getting a DCB
object.

In patch #5, support for the command line argument -N / --Numeric is
added. The APP tool later uses it to decide whether to format DSCP values
as human-readable strings or as plain numbers.

Patches #6 and #7 add the subtools themselves and their man pages.

v2:
- Two patches dropped and sent to iproute2 branch as "dcb: Fixes".
  This patch set now depends on that one.
- Patch #5:
    - Make it -N / --Numeric instead of -n / --no-nice-names
    - Rename the flag from no_nice_names to numeric as well
- Patch #6:
    - Adjust to s/no_nice_names/numeric/ from another patch.

Petr Machata (7):
  lib: rt_names: Add rtnl_dsfield_get_name()
  lib: Generalize parse_mapping()
  dcb: Generalize dcb_set_attribute()
  dcb: Generalize dcb_get_attribute()
  dcb: Support -N to suppress translation to human-readable names
  dcb: Add a subtool for the DCB APP object
  dcb: Add a subtool for the DCBX object

 dcb/Makefile        |   8 +-
 dcb/dcb.c           | 193 +++++++++--
 dcb/dcb.h           |  20 ++
 dcb/dcb_app.c       | 796 ++++++++++++++++++++++++++++++++++++++++++++
 dcb/dcb_dcbx.c      | 192 +++++++++++
 include/rt_names.h  |   1 +
 include/utils.h     |   5 +
 lib/rt_names.c      |  20 +-
 lib/utils.c         |  37 +-
 man/man8/dcb-app.8  | 237 +++++++++++++
 man/man8/dcb-dcbx.8 | 108 ++++++
 man/man8/dcb.8      |  12 +-
 12 files changed, 1591 insertions(+), 38 deletions(-)
 create mode 100644 dcb/dcb_app.c
 create mode 100644 dcb/dcb_dcbx.c
 create mode 100644 man/man8/dcb-app.8
 create mode 100644 man/man8/dcb-dcbx.8

-- 
2.26.2


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

end of thread, other threads:[~2021-01-18  4:14 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-02  0:03 [PATCH iproute2-next v2 0/7] dcb: Support APP, DCBX objects Petr Machata
2021-01-02  0:03 ` [PATCH iproute2-next v2 1/7] lib: rt_names: Add rtnl_dsfield_get_name() Petr Machata
2021-01-02  0:03 ` [PATCH iproute2-next v2 2/7] lib: Generalize parse_mapping() Petr Machata
2021-01-02  0:03 ` [PATCH iproute2-next v2 3/7] dcb: Generalize dcb_set_attribute() Petr Machata
2021-01-02  0:03 ` [PATCH iproute2-next v2 4/7] dcb: Generalize dcb_get_attribute() Petr Machata
2021-01-02  0:03 ` [PATCH iproute2-next v2 5/7] dcb: Support -N to suppress translation to human-readable names Petr Machata
2021-01-02  0:03 ` [PATCH iproute2-next v2 6/7] dcb: Add a subtool for the DCB APP object Petr Machata
2021-01-02  0:03 ` [PATCH iproute2-next v2 7/7] dcb: Add a subtool for the DCBX object Petr Machata
2021-01-18  4:13 ` [PATCH iproute2-next v2 0/7] dcb: Support APP, DCBX objects David Ahern

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.