From: Stephen Hemminger <stephen@networkplumber.org>
To: Patrick Mahan <mahan@mahan.org>
Cc: Oleksandr Nahnybida <oleksandrn@interfacemasters.com>, users@dpdk.org
Subject: Re: Expectations of an RX mbuf when using virtio PMD
Date: Tue, 10 Dec 2024 08:57:58 -0800 [thread overview]
Message-ID: <20241210085758.40fa0050@hermes.local> (raw)
In-Reply-To: <256fdd95-68a1-4fb8-972b-f3d08935ed0e@mahan.org>
On Sat, 7 Dec 2024 21:10:39 -0800
Patrick Mahan <mahan@mahan.org> wrote:
> On 12/7/24 3:58 PM, Oleksandr Nahnybida wrote:
> > Hello Patrick,
> >
> > You can use rte_net_get_ptype function directly if packet_type is RTE_PTYPE_UNKNOWN.
> > Whether the packet_type value is set is PMD/NIC dependent.
> > i40e does this at the hardware level, virtio does this in software with
> > rte_net_get_ptype and only in the specific case.
> >
>
> Thanks for the suggestion, I guess I was spoiled by the PMD setting it for me
> that I expected it was a basic function of the PMD.
Most code doesn't use ptype, and reading the packet data to determine the
type would slow down tests like basic forwarding
prev parent reply other threads:[~2024-12-10 16:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-07 22:49 Patrick Mahan
2024-12-07 23:58 ` Oleksandr Nahnybida
2024-12-08 5:10 ` Patrick Mahan
2024-12-10 16:57 ` Stephen Hemminger [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=20241210085758.40fa0050@hermes.local \
--to=stephen@networkplumber.org \
--cc=mahan@mahan.org \
--cc=oleksandrn@interfacemasters.com \
--cc=users@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).