netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: idosch@mellanox.com
Cc: netdev@vger.kernel.org, jiri@mellanox.com, petrm@mellanox.com,
	mlxsw@mellanox.com, john.fastabend@gmail.com
Subject: Re: [PATCH net-next 0/8] mlxsw: Support DSCP prioritization and rewrite
Date: Fri, 27 Jul 2018 13:18:18 -0700 (PDT)	[thread overview]
Message-ID: <20180727.131818.1528635320435833585.davem@davemloft.net> (raw)
In-Reply-To: <20180727122702.17995-1-idosch@mellanox.com>

From: Ido Schimmel <idosch@mellanox.com>
Date: Fri, 27 Jul 2018 15:26:54 +0300

> Petr says:
> 
> On ingress, a network device such as a switch assigns to packets
> priority based on various criteria. Common options include interpreting
> PCP and DSCP fields according to user configuration. When a packet
> egresses the switch, a reverse process may rewrite PCP and/or DSCP
> headers according to packet priority.
> 
> So far, mlxsw has supported prioritization based on PCP (802.1p priority
> tag). This patch set introduces support for prioritization based on
> DSCP, and DSCP rewrite.
> 
> To configure the DSCP-to-priority maps, the user is expected to invoke
> ieee_setapp and ieee_delapp DCBNL ops, e.g. by using lldptool:
 ...
> With this patch set, mlxsw uses these values to configure priority for
> DSCP values not explicitly specified in DSCP APP map. In the future we
> expect to also use this to configure default port priority for untagged
> packets.
> 
> Access to DSCP-to-priority map, priority-to-DSCP map, and default
> priority for a port is exposed through three new DCB helpers. Like the
> already-existing dcb_ieee_getapp_mask() helper, these helpers operate in
> terms of bitmaps, to support the arbitrary M:N mapping that the APP
> rules allow. Such interface presents all the relevant information from
> the APP database without necessitating exposition of iterators, locking
> or other complex primitives. It is up to the driver to then digest the
> mapping in a way that the device supports. In this patch set, mlxsw
> resolves conflicts by favoring higher-numbered DSCP values and
> priorities.

Series applied, thank you!

      parent reply	other threads:[~2018-07-27 21:41 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-27 12:26 [PATCH net-next 0/8] mlxsw: Support DSCP prioritization and rewrite Ido Schimmel
2018-07-27 12:26 ` [PATCH net-next 1/8] net: dcb: For wild-card lookups, use priority -1, not 0 Ido Schimmel
2018-07-27 12:26 ` [PATCH net-next 2/8] net: dcb: Add priority-to-DSCP map getters Ido Schimmel
2018-07-27 12:26 ` [PATCH net-next 3/8] mlxsw: reg: Add QoS Port DSCP to Priority Mapping Register Ido Schimmel
2018-07-27 12:26 ` [PATCH net-next 4/8] mlxsw: reg: Add QoS Priority Trust State Register Ido Schimmel
2018-07-27 12:26 ` [PATCH net-next 5/8] mlxsw: reg: Add QoS ReWrite Enable Register Ido Schimmel
2018-07-27 12:27 ` [PATCH net-next 6/8] mlxsw: reg: Add QoS Priority to DSCP Mapping Register Ido Schimmel
2018-07-27 12:27 ` [PATCH net-next 7/8] mlxsw: spectrum: Support ieee_setapp, ieee_delapp Ido Schimmel
2018-07-27 12:27 ` [PATCH net-next 8/8] selftests: mlxsw: Add test for trust-DSCP Ido Schimmel
2018-07-27 20:11 ` [PATCH net-next] net: dcb: add DSCP to comment about priority selector types Jakub Kicinski
2018-07-27 21:14   ` Petr Machata
2018-07-29 19:54   ` David Miller
2018-07-27 20:18 ` David Miller [this message]

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=20180727.131818.1528635320435833585.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=idosch@mellanox.com \
    --cc=jiri@mellanox.com \
    --cc=john.fastabend@gmail.com \
    --cc=mlxsw@mellanox.com \
    --cc=netdev@vger.kernel.org \
    --cc=petrm@mellanox.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).