DPDK usage discussions
 help / color / mirror / Atom feed
From: David Christensen <drc@linux.vnet.ibm.com>
To: users@dpdk.org
Subject: Re: [dpdk-users] Fwd: use VF in promiscuous mode in dpdk to receive all traffic received by PF
Date: Thu, 14 Jan 2021 10:11:11 -0800
Message-ID: <29972d41-cb42-bdd2-46d8-2ee82cdc9c3a@linux.vnet.ibm.com> (raw)
In-Reply-To: <CAHygEmDCOG6v=09uRhe6H1Oitg4oxqegZVgbuXhQsNS-C+VNkA@mail.gmail.com>

On 1/13/21 9:59 PM, Myth Ren wrote:
> Hi, all
>      is it possible we are mirror traffic from switch/router to PF, then a
> program based on DPDK
> read packet from a VF related to the PF, presume we are mirror the traffic
> from PF to the VF (promiscuous),
> while the PF device still managed by the kernel driver(if it's possible),
> or managed by UIO driver.
> at least, restart the DPDK based program will not influence the PF device
> state.

You should be specific about the NIC/PMD you're using here.  One use 
case for PF/VF is that the PF will run in the host operating system and 
the VF will be passed-through to a virtual machine.  Because of this, 
NICs will often support a feature to actively prevent a VF from snooping 
on the traffic seen by the PF for security, limiting it to only 
broadcast/multicast traffic and unicast traffic with a matching MAC 
address.  The ability for a VF to enable promiscuous mode and see PF 
traffic, if it is supported on the NIC, is likely to be NIC/PMD specific 

And why the need for a VF in the first place? If the switch/router is 
external to the box and forwarding traffic into the PF, why not just 
catch the traffic from the PF?  You'll need a second PF anyway to send 
the traffic onward (like a bump-in-the-wire implementation), unless 
you're mangling the packets for some reason to change their address, 
adding a VLAN or other tag, etc.  A drawing of what you're trying to 
implement would be useful here.


      reply	other threads:[~2021-01-14 18:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-11 11:18 [dpdk-users] " Myth Ren
2021-01-14  5:59 ` [dpdk-users] Fwd: " Myth Ren
2021-01-14 18:11   ` David Christensen [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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=29972d41-cb42-bdd2-46d8-2ee82cdc9c3a@linux.vnet.ibm.com \
    --to=drc@linux.vnet.ibm.com \
    --cc=users@dpdk.org \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

DPDK usage discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.dpdk.org/users/0 users/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 users users/ https://inbox.dpdk.org/users \
	public-inbox-index users

Example config snippet for mirrors.
Newsgroup available over NNTP:

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git