From: Kevin Traynor <ktraynor@redhat.com>
To: "Morten Brørup" <mb@smartsharesystems.com>,
"Ben Magistro" <koncept1@gmail.com>,
dev@dpdk.org
Cc: ben.magistro@trinitycyber.com, stefan.baranoff@trinitycyber.com,
stable@dpdk.org, Luca Boccassi <bluca@debian.org>,
Christian Ehrhardt <christian.ehrhardt@canonical.com>,
"Xueming(Steven) Li" <xuemingl@nvidia.com>
Subject: Re: [PATCH] mbuf: expose outer vlan in mbuf dump
Date: Mon, 4 Apr 2022 11:33:09 +0100 [thread overview]
Message-ID: <95d923da-0216-9a66-2713-17f0a6442a0c@redhat.com> (raw)
In-Reply-To: <98CBD80474FA8B44BF855DF32C47DC35D86F9B@smartserver.smartshare.dk>
On 04/04/2022 07:15, Morten Brørup wrote:
>> From: Ben Magistro [mailto:koncept1@gmail.com]
>> Sent: Monday, 4 April 2022 02.57
>>
>> Enable printing of the outer vlan if flags indicate it is present.
>>
>> Signed-off-by: Ben Magistro <koncept1@gmail.com>
>>
>> ---
>>
>> While troubleshooting some QinQ offloads with various Intel i40e
>> firmware[1], it was
>> helpful to expose the outer vlan in the dump mbuf calls. This should
>> be straightforward
>> to backport and happy to do the work if accepted. I understand that
>> this may not be a
>> widely supported capability at this time, so we are okay if this is not
>> accepted and
>> we just maintain a local patch.
>
> Features are usually not backported, only bug fixes.
>
> However, since this patch proved helpful finding a bug, and it is very simple, it could be considered by the LTS maintainers.
>
Suggest to tag the patch with 'Cc: stable@dpdk.org' to indicate it is
requested for stable branches. It will be caught by stable maintainer
filters when it is time for backports and can be discussed further then.
(Note, it would need small rebase for older than 21.11 LTS to account
for the namespaces that were added)
Kevin.
>>
>> ---
>> lib/mbuf/rte_mbuf.c | 3 +++
>> 1 file changed, 3 insertions(+)
>>
>> diff --git a/lib/mbuf/rte_mbuf.c b/lib/mbuf/rte_mbuf.c
>> index 87592faccb..a2307cebe6 100644
>> --- a/lib/mbuf/rte_mbuf.c
>> +++ b/lib/mbuf/rte_mbuf.c
>> @@ -674,6 +674,9 @@ rte_pktmbuf_dump(FILE *f, const struct rte_mbuf *m,
>> unsigned dump_len)
>> fprintf(f, " pkt_len=%u, ol_flags=%#"PRIx64", nb_segs=%u,
>> port=%u",
>> m->pkt_len, m->ol_flags, m->nb_segs, m->port);
>>
>> + if (m->ol_flags & (RTE_MBUF_F_RX_QINQ | RTE_MBUF_F_TX_QINQ))
>> + fprintf(f, ", vlan_tci_outer=%u", m->vlan_tci_outer);
>> +
>> if (m->ol_flags & (RTE_MBUF_F_RX_VLAN | RTE_MBUF_F_TX_VLAN))
>> fprintf(f, ", vlan_tci=%u", m->vlan_tci);
>>
>> --
>> 2.27.0
>>
>
> Reviewed-by: Morten Brørup <mb@smartsharesystems.com>
>
next prev parent reply other threads:[~2022-04-04 10:33 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-04 0:56 Ben Magistro
2022-04-04 6:15 ` Morten Brørup
2022-04-04 10:33 ` Kevin Traynor [this message]
2022-04-05 15:51 ` Thomas Monjalon
2022-04-06 7:33 ` Olivier Matz
2022-04-12 16:11 ` Ben Magistro
2022-04-13 12:02 ` Thomas Monjalon
2022-04-13 12:59 ` Morten Brørup
2022-06-01 9:18 ` Thomas Monjalon
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=95d923da-0216-9a66-2713-17f0a6442a0c@redhat.com \
--to=ktraynor@redhat.com \
--cc=ben.magistro@trinitycyber.com \
--cc=bluca@debian.org \
--cc=christian.ehrhardt@canonical.com \
--cc=dev@dpdk.org \
--cc=koncept1@gmail.com \
--cc=mb@smartsharesystems.com \
--cc=stable@dpdk.org \
--cc=stefan.baranoff@trinitycyber.com \
--cc=xuemingl@nvidia.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).