From: Prashant Upadhyaya <praupadhyaya@gmail.com>
To: Stephen Hemminger <stephen@networkplumber.org>
Cc: dev@dpdk.org
Subject: Re: Regarding Mellanox bifurcated driver on Azure
Date: Wed, 30 Apr 2025 22:00:29 +0530 [thread overview]
Message-ID: <CAPBAu3WPaMMErEfbVtKBsd7n-D5GGLGYARex_dURxWtrMmTtXQ@mail.gmail.com> (raw)
In-Reply-To: <20250430072825.13ceae3e@hermes.local>
[-- Attachment #1: Type: text/plain, Size: 2607 bytes --]
On Wed, 30 Apr 2025 at 19:58, Stephen Hemminger <stephen@networkplumber.org>
wrote:
> On Wed, 30 Apr 2025 13:00:53 +0530
> Prashant Upadhyaya <praupadhyaya@gmail.com> wrote:
>
> > > With DPDK on Azure, an application should never use the VF directly.
> > > It needs to use either netvsc PMD which handles both the vmbus (slow
> path)
> > > and VF (fast path) combined. Or use the older vdev_netvsc/failsafe/tap
> > > combination.
> > > The latter uses a virtual device to make a failsafe PMD which then does
> > > a combination of TAP (via kernel slow path) and MLX5 VF. The failsafe
> PMD
> > > is what is exposed for application usage.
> > >
> > > The limitations are not explicitly mentioned in the documentation but:
> > > - don't use VF directly in application
> > > - there is no support for bifurcation where some packets go to kernel
> > > and some to DPDK
> > > - there is only very limited support for rte_flow; that is with
> failsafe
> > > PMD
> > > (not netvsc PMD) and the limitations are that the emulation of
> rte_flow
> > > in the TAP device only supports a few things.
> > >
> >
> > Thanks Stephen, the above information was very instructive.
> > If I do use the Netvsc PMD with the latest DPDK, will my DPDK app get the
> > non IP packets like ARP, please confirm.
> > I quickly tried the Netvsc PMD but don't seem to be getting the ARP
> packets
> > in still.
> > When you mention "The failsafe PMD is what is exposed for application
> > usage", what is the meaning of this, are the apps expected to use
> failsafe
> > PMD, please suggest.
> >
> > Regards
> > -Prashant
>
> ARP handled differently in virtual network environments. The ARP packets
> sent
> get consumed and replied to by the network infrastructure (in all virtual
> networks
> not just Azure). Non-IP packets always show up on the synthetic VMBus
> device.
>
> Current docs are here:
>
> https://learn.microsoft.com/en-us/azure/virtual-network/setup-dpdk?tabs=redhat
>
> See vdev_netvsc for picture.
> https://doc.dpdk.org/guides/nics/vdev_netvsc.html
>
>
> Thanks again Stephen. I finally was able to run the netvsc pmd and it is
detecting the ports.
However, for every accelerated networking interface of Azure, it detects
'two' ports. This is presumably for controlling both the slow and fast path
?
This poses an issue for my app as it wanted to see only 'one' interface in
its control as a lot of business logic is kind of tied to it.
So a question -- am I observing correctly that DPDK, in case of netvsc,
will enumerate two ports for each accelerated networking interface ?
Regards
-Prashant
[-- Attachment #2: Type: text/html, Size: 3621 bytes --]
next prev parent reply other threads:[~2025-04-30 16:30 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-25 17:47 Prashant Upadhyaya
2025-04-25 23:01 ` Stephen Hemminger
2025-04-26 15:28 ` Stephen Hemminger
2025-04-28 6:01 ` Prashant Upadhyaya
2025-04-28 15:37 ` Stephen Hemminger
2025-04-29 16:15 ` Prashant Upadhyaya
2025-04-29 16:24 ` Stephen Hemminger
2025-04-30 7:30 ` Prashant Upadhyaya
2025-04-30 14:28 ` Stephen Hemminger
2025-04-30 16:30 ` Prashant Upadhyaya [this message]
2025-04-30 16:51 ` Stephen Hemminger
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=CAPBAu3WPaMMErEfbVtKBsd7n-D5GGLGYARex_dURxWtrMmTtXQ@mail.gmail.com \
--to=praupadhyaya@gmail.com \
--cc=dev@dpdk.org \
--cc=stephen@networkplumber.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).