From: David Marchand <david.marchand@redhat.com>
To: dev@dpdk.org
Cc: olivier.matz@6wind.com, ferruh.yigit@intel.com, stable@dpdk.org
Subject: [dpdk-stable] [PATCH 2/3] net: add rte prefix to MPLS structure
Date: Wed, 23 Oct 2019 10:51:57 +0200 [thread overview]
Message-ID: <1571820718-7021-3-git-send-email-david.marchand@redhat.com> (raw)
In-Reply-To: <1571820718-7021-1-git-send-email-david.marchand@redhat.com>
Add 'rte_' prefix to structures:
- rename struct mpls_hdr as struct rte_mpls_hdr.
Cc: stable@dpdk.org
Signed-off-by: David Marchand <david.marchand@redhat.com>
---
lib/librte_net/rte_mpls.h | 2 +-
lib/librte_net/rte_net.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/librte_net/rte_mpls.h b/lib/librte_net/rte_mpls.h
index 11d26ba..32b6431 100644
--- a/lib/librte_net/rte_mpls.h
+++ b/lib/librte_net/rte_mpls.h
@@ -21,7 +21,7 @@ extern "C" {
/**
* MPLS header.
*/
-struct mpls_hdr {
+struct rte_mpls_hdr {
uint16_t tag_msb; /**< Label(msb). */
#if RTE_BYTE_ORDER == RTE_BIG_ENDIAN
uint8_t tag_lsb:4; /**< Label(lsb). */
diff --git a/lib/librte_net/rte_net.c b/lib/librte_net/rte_net.c
index dfccbbf..6f45b13 100644
--- a/lib/librte_net/rte_net.c
+++ b/lib/librte_net/rte_net.c
@@ -278,8 +278,8 @@ uint32_t rte_net_get_ptype(const struct rte_mbuf *m,
} else if ((proto == rte_cpu_to_be_16(RTE_ETHER_TYPE_MPLS)) ||
(proto == rte_cpu_to_be_16(RTE_ETHER_TYPE_MPLSM))) {
unsigned int i;
- const struct mpls_hdr *mh;
- struct mpls_hdr mh_copy;
+ const struct rte_mpls_hdr *mh;
+ struct rte_mpls_hdr mh_copy;
#define MAX_MPLS_HDR 5
for (i = 0; i < MAX_MPLS_HDR; i++) {
--
1.8.3.1
next prev parent reply other threads:[~2019-10-23 8:52 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1571820718-7021-1-git-send-email-david.marchand@redhat.com>
2019-10-23 8:51 ` [dpdk-stable] [PATCH 1/3] net: add missing rte prefix on PPPoE defines David Marchand
2019-10-23 8:51 ` David Marchand [this message]
[not found] ` <1571838001-591-1-git-send-email-david.marchand@redhat.com>
2019-10-23 13:39 ` [dpdk-stable] [PATCH v2 2/4] " David Marchand
2019-10-23 13:40 ` [dpdk-stable] [PATCH v2 3/4] net: add rte prefix to MPLS structure David Marchand
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=1571820718-7021-3-git-send-email-david.marchand@redhat.com \
--to=david.marchand@redhat.com \
--cc=dev@dpdk.org \
--cc=ferruh.yigit@intel.com \
--cc=olivier.matz@6wind.com \
--cc=stable@dpdk.org \
/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).