DPDK patches and discussions
 help / color / mirror / Atom feed
From: Stephen Hemminger <stephen@networkplumber.org>
To: Alan Elder <alan.elder@microsoft.com>
Cc: Ferruh Yigit <ferruh.yigit@amd.com>,
	Long Li <longli@microsoft.com>,
	Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>,
	"dev@dpdk.org" <dev@dpdk.org>
Subject: Re: [PATCH v5] net/netvsc: fix parsing of VLAN metadata
Date: Thu, 15 Feb 2024 10:25:26 -0800	[thread overview]
Message-ID: <20240215102526.2740b40b@hermes.local> (raw)
In-Reply-To: <PA4PR83MB0526A094C53E5613C0A669A3974D2@PA4PR83MB0526.EURPRD83.prod.outlook.com>

On Thu, 15 Feb 2024 18:12:35 +0000
Alan Elder <alan.elder@microsoft.com> wrote:

> +/* VLAN header fields */
> +#define RTE_VLAN_DEI_SHIFT	12
> +#define RTE_VLAN_PRI_SHIFT	13
> +#define RTE_VLAN_PRI_MASK	0xe000 /* Priority Code Point */
> +#define RTE_VLAN_DEI_MASK	0x1000 /* Drop Eligible Indicator */
> +#define RTE_VLAN_ID_MASK	0x0fff /* VLAN Identifier */
> +
> +#define RTE_VLAN_TCI_ID(vlan_tci)	((vlan_tci) & RTE_VLAN_ID_MASK)
> +#define RTE_VLAN_TCI_PRI(vlan_tci)	(((vlan_tci) & RTE_VLAN_PRI_MASK) >>	\
> +					 RTE_VLAN_PRI_SHIFT)
> +#define RTE_VLAN_TCI_DEI(vlan_tci)	(((vlan_tci) & RTE_VLAN_DEI_MASK) >>	\
> +					 RTE_VLAN_DEI_SHIFT)
> +#define RTE_VLAN_TCI_MAKE(id, pri, dei)	((id) |					\
> +					 ((pri) << RTE_VLAN_PRI_SHIFT) |	\
> +					 ((dei) << RTE_VLAN_DEI_SHIFT))
> +

With current DPDK standard max line length 100, the lines may not need to be broken any more.

  reply	other threads:[~2024-02-15 18:25 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-08 15:09 [PATCH v3] " Alan Elder
2024-02-09  1:18 ` Long Li
2024-02-09 15:50   ` [PATCH v4] " Alan Elder
2024-02-14 22:17     ` Long Li
2024-02-15 11:46       ` Ferruh Yigit
2024-02-15 18:12         ` [PATCH v5] " Alan Elder
2024-02-15 18:25           ` Stephen Hemminger [this message]
2024-02-16  9:43           ` [PATCH v6] " Alan Elder
2024-02-16 11:39             ` Ferruh Yigit
2024-02-19  9:31               ` [PATCH v7 0/2] " Alan Elder
2024-02-19  9:31               ` [PATCH v7 1/2] lib/net: " Alan Elder
2024-02-19 11:12                 ` Ferruh Yigit
2024-02-19 11:14                   ` Ferruh Yigit
2024-02-19  9:31               ` [PATCH v7 2/2] net/netvsc: " Alan Elder
2024-02-19 11:12                 ` Ferruh Yigit
2024-02-19  9:34               ` [EXTERNAL] Re: [PATCH v6] " Alan Elder
2024-02-16 11:33           ` [PATCH v5] " Ferruh Yigit

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=20240215102526.2740b40b@hermes.local \
    --to=stephen@networkplumber.org \
    --cc=alan.elder@microsoft.com \
    --cc=andrew.rybchenko@oktetlabs.ru \
    --cc=dev@dpdk.org \
    --cc=ferruh.yigit@amd.com \
    --cc=longli@microsoft.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).