dev.dpdk.org archive mirror
 help / color / mirror / Atom feed
From: Mats Liljegren <liljegren.mats2-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: "dev-VfR2kkLFssw@public.gmane.org" <dev-VfR2kkLFssw@public.gmane.org>
Subject: Re: How to debug packet sends to virtual functions
Date: Fri, 31 Jan 2014 19:30:38 +0100	[thread overview]
Message-ID: <CA+xJJ19NNcsyRx_N12SB9JyaBicFXOXcMqBhgoUbesaruJVQPA@mail.gmail.com> (raw)
In-Reply-To: <CA+xJJ1-74cZALNj4M8-P5FUVV8hNYbdB90Fk+i+v2sTQ6QqkSw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

I have a follow-up on this:

ixgbe version 3.13.10-k
ixgbevf version 2.7.12-k

(These are what was provided by Ubuntu 13.10)

I tried the following sequence on the host, before starting the guest:
1) sudo rmmod ixgbe
2) sudo modprobe ixgbe max_vfs=2
3) sudo ifconfig em1 up  # This is the physical function
4) sudo ifconfig em1_0 192.168.2.2  # This is the virtual function
5) ping 192.168.2.1

I can see that the ping request reaches its target, and a reply is
sent back. But this reply is not received by the ping shell command.

Why?

Regards,
Mats

On Wed, Jan 29, 2014 at 6:56 PM, Mats Liljegren
<liljegren.mats2-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> I'm trying to get a modified version of the l2fwd example running, and
> have problems with packets being silently thrown away. I can receive
> packets, and my printf's indicates that the packets are being sent to
> the correct port, using correct MAC address as source address. And
> still, the packets are lost.
>
> Since the port is a virtual function, it seems like I cannot use
> tcpdump on it to see the network traffic. There is nothing coming out
> of the cable (activity light not flashing, the receiving end running
> tcpdump does not see any traffic).
>
> I'm using two X540 with two virtual functions each. The application
> runs in a KVM/Qemu environmen.
>
> Any suggestions how to debug this?
>
> Regards,
> Mats

  parent reply	other threads:[~2014-01-31 18:30 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-29 17:56 How to debug packet sends to virtual functions Mats Liljegren
     [not found] ` <CA+xJJ1-74cZALNj4M8-P5FUVV8hNYbdB90Fk+i+v2sTQ6QqkSw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-01-31 18:30   ` Mats Liljegren [this message]
     [not found]     ` <CA+xJJ19NNcsyRx_N12SB9JyaBicFXOXcMqBhgoUbesaruJVQPA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-02-03 11:13       ` Mats Liljegren
     [not found]         ` <CA+xJJ18_XTNfwZ5Oij3B-sx_=W_kyJEzciYdP-xFDxabgrvGKQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-02-04 10:08           ` Mats Liljegren
     [not found]             ` <CA+xJJ18EqnJ3wz5-oe-ZCyFhRgVF53oP=0_sxAERFN-F07HVRA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-02-04 10:26               ` jigsaw
     [not found]                 ` <CAHVfvh4PYh+QtkR=SzE_B+S+Ni3RBAK3pBSPjxGAbkZQP0dPsg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-02-04 10:45                   ` Mats Liljegren
     [not found]                     ` <CA+xJJ19u6LZuNk111WyRqAv9OymHAb2EX8=ZH-B6Yk+6hAFaEA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-02-04 11:14                       ` jigsaw
     [not found]                         ` <CAHVfvh47q6jFyf2PkTZi0xr1KzV=WVwCXgwNaT0ny6pZhUKkZA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-02-04 11:31                           ` Mats Liljegren
     [not found]                             ` <CA+xJJ1-uBGOC0g5SY6hthx3EeBWgn6-zV_--kzgkGgU=NChTpQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-02-04 12:11                               ` jigsaw
2014-02-04 11:21                       ` Burakov, Anatoly
     [not found]                         ` <C6ECDF3AB251BE4894318F4E45123697591F4B96-kPTMFJFq+rF9qrmMLTLiibfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2014-02-04 11:47                           ` Mats Liljegren
     [not found]                             ` <CA+xJJ18C50dSRT1JfPH1X6ZBVX+mgMWmzawuZ_t9LmyugzjESQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-02-04 11:52                               ` Burakov, Anatoly
     [not found]                                 ` <C6ECDF3AB251BE4894318F4E45123697591F4C64-kPTMFJFq+rF9qrmMLTLiibfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2014-02-04 13:03                                   ` Mats Liljegren
     [not found]                                     ` <CA+xJJ1_X2Z1p8QuDvTnVVJE78vGm3jCEnOOhxRuy49WsCVJgRQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-02-04 13:40                                       ` Burakov, Anatoly
     [not found]                                         ` <C6ECDF3AB251BE4894318F4E45123697591F4D51-kPTMFJFq+rF9qrmMLTLiibfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2014-02-13 15:32                                           ` Mats Liljegren
     [not found]                                             ` <CA+xJJ18_bHXJz0f02wbezYEOvq+nbBcFij=zTc=n+gtkS_v=9g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-02-13 15:39                                               ` Burakov, Anatoly
     [not found]                                                 ` <C6ECDF3AB251BE4894318F4E45123697591F8AB9-kPTMFJFq+rF9qrmMLTLiibfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2014-02-17 11:05                                                   ` Mats Liljegren
     [not found]                                                     ` <CA+xJJ18OaBe4Sdjsv3oh4SBhFXA-DCpDX4m88esKX38DVxZDAg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-02-17 12:11                                                       ` Burakov, Anatoly
     [not found]                                                         ` <C6ECDF3AB251BE4894318F4E45123697591F915F-kPTMFJFq+rF9qrmMLTLiibfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2014-02-17 12:29                                                           ` Mats Liljegren
     [not found]                                                             ` <CA+xJJ1_QNi=XwTxvV3mxyjt02teR4ObtB00xE_PEDp9va4nf3g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-02-17 14:35                                                               ` Mats Liljegren
     [not found]                                                                 ` <CA+xJJ1-rHHfooy4Gjm5Cb8sLi3J0LEOaHhRf-zviXEzpLzjd1g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-02-17 14:36                                                                   ` Burakov, Anatoly

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=CA+xJJ19NNcsyRx_N12SB9JyaBicFXOXcMqBhgoUbesaruJVQPA@mail.gmail.com \
    --to=liljegren.mats2-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=dev-VfR2kkLFssw@public.gmane.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).