DPDK usage discussions
 help / color / mirror / Atom feed
From: Stephen Hemminger <stephen@networkplumber.org>
To: Nandini Rangaswamy <nandini.rangaswamy@broadcom.com>
Cc: Long Li <longli@microsoft.com>, users@dpdk.org
Subject: Re: Netvsc vs Failsafe Performance
Date: Wed, 4 Sep 2024 15:42:46 -0700	[thread overview]
Message-ID: <20240904154246.1c5bbb58@hermes.local> (raw)
In-Reply-To: <CAAkQrK-gvVUsdyK+EiuaWZk9U7-CRZaJXHAELbV5qjMzmMv82A@mail.gmail.com>

On Tue, 3 Sep 2024 17:21:48 -0700
Nandini Rangaswamy <nandini.rangaswamy@broadcom.com> wrote:

> Hi Stephen/Long,
> dpdk_netvsc_port_configure:1873 Configure port eth2/2. I am testing using
> TCP traffic (iperf3 tool) generated between pair of client and servers with
> DPDK app forward traffic between client and servers.
> These are the config being passed for configuring netvsc:
> lsc_intr=1
> rxq/txq=2/2,
> rss is enabled with rss_hf=0x0000000000000c30
> tx_ol=0x00000000000006
> rx_ol=0x00000000080007
> 
> Rsskey len is 64.
> struct rte_eth_conf conf = {
> .intr_conf = {
> .lsc = !dpdk.lsc_intr_disable && !dpdk_if->lsc_intr_disable &&
> !!(dev->data->dev_flags & RTE_ETH_DEV_INTR_LSC),
> },
> .rxmode = {
> .mq_mode = RTE_ETH_MQ_RX_RSS,
> .offloads = RTE_ETH_RX_OFFLOAD_VLAN_STRIP | RTE_ETH_RX_OFFLOAD_IPV4_CKSUM |
> RTE_ETH_RX_OFFLOAD_RSS_HASH | RTE_ETH_RX_OFFLOAD_UDP_CKSUM,
> },
> .rx_adv_conf.rss_conf = {
> .rss_hf = RTE_ETH_RSS_NONFRAG_IPV4_UDP | RTE_ETH_RSS_NONFRAG_IPV4_TCP |
> RTE_ETH_RSS_NONFRAG_IPV6_TCP,
> .rss_key = conf_rss_key,
> .rss_key_len = rss_key_len,
> },
> .txmode = {
> .offloads = RTE_ETH_TX_OFFLOAD_UDP_CKSUM | RTE_ETH_TX_OFFLOAD_IPV4_CKSUM,
> },
> 
> Regards,
> Nandini
> 
> On Tue, Sep 3, 2024 at 5:03 PM Stephen Hemminger <stephen@networkplumber.org>
> wrote:
> 
> > On Tue, 3 Sep 2024 14:43:28 -0700
> > Nandini Rangaswamy <nandini.rangaswamy@broadcom.com> wrote:
> >  
> > > Hi Stephen and Long,
> > > I was going through one of the netvsc patches
> > > https://mails.dpdk.org/archives/dev/2018-August/110559.html which  
> > mentioned  
> > > that netvsc and failsafe give the same performance in VF path whereas for
> > > some exception path  tests, about 22% performance gain in seen.
> > > I ran some tests locally with my dpdk app integrated with netvsc PMD and
> > > observed that netvsc does give nearly the same performance as failsafe in
> > > the VF path.
> > > Since the official document does not explicitly cite this, I would like  
> > to  
> > > confirm if this holds good.
> > > Regards,
> > > Nandini
> > >  
> >
> > Shouldn't be. What settings are you using.
> > Both failsafe and netvsc just pass packets to VF if present.
> > There is even more locks to go through with failsafe.
> >
> > Are you sure the test doesn't exercise something like checksumming which
> > maybe different.
> >  
> 

How many streams? RSS won't matter unless multiple streams.
The netvsc driver does not have RSS for UDP as a listed flag.
It turns out that for that version of NDIS, if you ask for TCP RSS, UDP RSS is implied.

RSS Key must be 40 bytes (Toeplitz) not 64 bytes.
Just use the default key (rss_key == NULL rss_key_len = 0) to be safe

Check that packets are going to the VF. One way to do that is to look at xstats on both netvsc and mlx5 device.



  reply	other threads:[~2024-09-04 22:42 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-03 21:43 Nandini Rangaswamy
2024-09-04  0:03 ` Stephen Hemminger
2024-09-04  0:21   ` Nandini Rangaswamy
2024-09-04 22:42     ` Stephen Hemminger [this message]
2024-09-05  2:30       ` Long Li
2024-09-12 20:47         ` Nandini Rangaswamy
2024-09-12 23:09           ` Stephen Hemminger
2024-09-13 17:56             ` Nandini Rangaswamy
2024-09-13 21:27               ` Long Li
2024-09-13 21:29                 ` Nandini Rangaswamy
2024-09-16 22:58                   ` Nandini Rangaswamy
2024-09-17 21:56                     ` Long Li
2024-09-19 16:45                       ` Nandini Rangaswamy
2024-09-12 22:02       ` Nandini Rangaswamy
2024-09-12 22:59         ` 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=20240904154246.1c5bbb58@hermes.local \
    --to=stephen@networkplumber.org \
    --cc=longli@microsoft.com \
    --cc=nandini.rangaswamy@broadcom.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).