DPDK patches and discussions
 help / color / mirror / Atom feed
From: Sam <batmanustc@gmail.com>
To: dev@dpdk.org, ovs-dev@openvswitch.org
Subject: [dpdk-dev] [sriov] [ixgbevf] We have to down PF and VF port to reconfig a port?
Date: Wed, 27 Dec 2017 10:42:20 +0800	[thread overview]
Message-ID: <CAOE=1Z1YS2ajBzYbt3FTUF+xb1gknJa1i_jkeDzvpmSLZ831Ag@mail.gmail.com> (raw)

Hi all,

I'm running OVS-DPDK on a two netdevice server(eth0 and eth1), and I use
sriov to make one VF and one PF on each netdevice, as bellow. Please omit
eth2 and eth3. Then two VF port(enp1s16 and enp1s16f1) combine into linux
bond1 port as management port, two PF port(0000:01:00.0 and 0000:01:00.1)
combine into OVS-DPDK bond port(mode 4) as dataplane port.

[root@yf-mos-test-net14 ~]#
> /usr/local/share/openvswitch/scripts/dpdk_nic_bind --status
> Network devices using DPDK-compatible driver
> ============================================
> 0000:01:00.0 'Ethernet Controller 10-Gigabit X540-AT2' drv=igb_uio
> unused=ixgbe
> 0000:01:00.1 'Ethernet Controller 10-Gigabit X540-AT2' drv=igb_uio
> unused=ixgbe
> Network devices using kernel driver
> ===================================
> 0000:01:10.0 'X540 Ethernet Controller Virtual Function' if=enp1s16
> drv=ixgbevf unused=igb_uio
> 0000:01:10.1 'X540 Ethernet Controller Virtual Function' if=enp1s16f1
> drv=ixgbevf unused=igb_uio
> 0000:08:00.0 'I350 Gigabit Network Connection' if=eth2 drv=igb
> unused=igb_uio
> 0000:08:00.1 'I350 Gigabit Network Connection' if=eth3 drv=igb
> unused=igb_uio
> Other network devices
> =====================
> <none>


I change OVS-DPDK code, and use command to stop  OVS-DPDK bond port and its
slaves, and then change its txconf and rxconf, and then start up them. But
the kernel report "Detected Tx Unit Hang ..." and no packets could go
through OVS-DPDK bond port and linux bond port, but use command to show
OVS-DPDK port and linux bond port, all status is OK.

But when I stop linux bond port first, and then do the same process as
above, no error report and packets could go through OVS-DPDK bond port and
linux bond port.

So what's this problem and how to fix it ? Thank you~

             reply	other threads:[~2017-12-27  2:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-27  2:42 Sam [this message]
2017-12-27  2:54 ` Sam
2018-01-05  3:27   ` Sam

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='CAOE=1Z1YS2ajBzYbt3FTUF+xb1gknJa1i_jkeDzvpmSLZ831Ag@mail.gmail.com' \
    --to=batmanustc@gmail.com \
    --cc=dev@dpdk.org \
    --cc=ovs-dev@openvswitch.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).