All of lore.kernel.org
 help / color / mirror / Atom feed
From: Maciej Fijalkowski <maciejromanfijalkowski@gmail.com>
To: "Björn Töpel" <bjorn.topel@gmail.com>
Cc: "Július Milan" <Julius.Milan@pantheon.tech>,
	Xdp <xdp-newbies@vger.kernel.org>,
	"Magnus Karlsson" <magnus.karlsson@gmail.com>,
	"Marek Závodský" <marek.zavodsky@pantheon.tech>,
	"Jesper Dangaard Brouer" <brouer@redhat.com>,
	"William Tu" <u9012063@gmail.com>,
	"Eelco Chaudron" <echaudro@redhat.com>
Subject: Re: xdpsock problem testing multiple queues
Date: Wed, 2 Oct 2019 18:28:57 +0200	[thread overview]
Message-ID: <20191002182755.00000657@gmail.com> (raw)
In-Reply-To: <CAJ+HfNh58fN=BU5ADzTs=vbCD1j5fs0i1EKhAQQdByjiVHz4BQ@mail.gmail.com>

On Wed, 2 Oct 2019 15:52:04 +0200
Björn Töpel <bjorn.topel@gmail.com> wrote:

> On Wed, 2 Oct 2019 at 14:11, Július Milan <Julius.Milan@pantheon.tech> wrote:
> >
> > Hi all
> >
> > We are trying to test multiple RX queues with sample program xdpsock from kernel on vmware virtual machine with 2 queues.
> > The driver on the NIC is:
> > # ethtool -i ens192
> > driver: vmxnet3
> > version: 1.4.16.0-k-NAPI
> >
> > NIC has 2 queues, I can check it by ethtool -S.
> >
> > But when I try to use queue 1, I am getting following:
> > # ./xdpsock -i ens192 -q 1
> > /home/jmilan/ws/pt-xdp/linux/samples/bpf/xdpsock_user.c:xsk_configure_socket:315: errno: 1/"Operation not permitted"
> >
> > Any ideas what the problem could be? Maybe vmxnet3 driver does not support some necessary operations related to queues?
> >  
> 
> XDP support is missing for that driver, but the XDP_SKB/generic mode
> is available, and should work.
> 
> Can you run the xdp1 application in the samples directory, to rule out
> that you can run XDP.

xdp1 should work fine but I think the reason for a reported failure is because
vmxnet3 driver doesn't expose the {set,get}_channels ethtool API (at least I
don't see it?) which is used by libbpf's xsk part for querying the underlying
driver how many queues does it has and use that info for creating that many
entries in XSKMAP.

So in that case you're limited to use queue 0 because the XSKMAP map has
only single entry.

Maciej

> 
> 
> Björn
> 
> > Best Regards
> > Július  

  reply	other threads:[~2019-10-02 16:29 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-02 10:45 xdpsock problem testing multiple queues Július Milan
2019-10-02 12:25 ` Pavel Popa
2019-10-02 13:52 ` Björn Töpel
2019-10-02 16:28   ` Maciej Fijalkowski [this message]
2019-10-03  6:17     ` Július Milan
2019-10-04 13:35     ` Maciej Fijalkowski

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=20191002182755.00000657@gmail.com \
    --to=maciejromanfijalkowski@gmail.com \
    --cc=Julius.Milan@pantheon.tech \
    --cc=bjorn.topel@gmail.com \
    --cc=brouer@redhat.com \
    --cc=echaudro@redhat.com \
    --cc=magnus.karlsson@gmail.com \
    --cc=marek.zavodsky@pantheon.tech \
    --cc=u9012063@gmail.com \
    --cc=xdp-newbies@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.