DPDK usage discussions
 help / color / mirror / Atom feed
From: gaurav maheshwari <gmaheshwari24.6@gmail.com>
To: users@dpdk.org
Subject: [dpdk-users] facing issue with testpmd with ovs in dpdk17.0.2, link is always down with 2m hugepage
Date: Tue, 22 Dec 2020 04:50:14 +0530	[thread overview]
Message-ID: <CAJ+HfNbfd7s+vF0Foat2BsgzOLufsR5B2tFO==b0H3EReD2tRA@mail.gmail.com> (raw)

Hi,

We are running testpmd with 150MB(2M huge pages) with OVS DPDK (17.0.2) but
ran into issues as pmd interfaces are shown as link down.


./testpmd -c 0x3 -n 4 *--socket-mem 150* --no-pci
--file-prefix=virtio_user-testpmd
--vdev=virtio_user0,mac=00:01:02:03:04:03,path=/var/run/openvswitch/l3_h_ge_1_0_0
--vdev=virtio_user1,mac=00:01:02:03:04:05,path=/var/run/openvswitch/l3_h_ge_1_0_1
-- -i --txqflags=0xf00 --disable-hw-vlan --mbuf-size=16000
--total-num-mbufs=2048

root@:~# ovs-ofctl dump-ports-desc ovs-sys-br
OFPST_PORT_DESC reply (xid=0x2):
 1(dpdk0): addr:94:f7:ad:a5:40:50
     config:     0
     state:      0
     current:    100MB-FD
     speed: 100 Mbps now, 0 Mbps max
 2(dpdk1): addr:94:f7:ad:a5:40:51
     config:     0
     state:      0
     current:    100MB-FD
     speed: 100 Mbps now, 0 Mbps max
 3(dpdk2): addr:94:f7:ad:a5:40:52
     config:     0
     state:      0
     current:    100MB-FD
     speed: 100 Mbps now, 0 Mbps max
 4(dpdk3): addr:94:f7:ad:a5:40:53
     config:     0
     state:      0
     current:    100MB-FD
     speed: 100 Mbps now, 0 Mbps max
 5(xdsl_eth0): addr:2a:27:23:b4:2d:f6
     config:     0
     state:      0
     current:    10GB-FD COPPER
     speed: 10000 Mbps now, 0 Mbps max
 *6(l3_h_ge_1_0_0): addr:00:00:00:00:00:00*
*     config:     0*
*     state:      LINK_DOWN*
*     speed: 0 Mbps now, 0 Mbps max*
* 7(l3_h_ge_1_0_1): addr:00:00:00:00:00:00*
*     config:     0*
*     state:      LINK_DOWN*
*     speed: 0 Mbps now, 0 Mbps max*
* LOCAL(ovs-sys-br): addr:94:f7:ad:a5:40:50*
     config:     PORT_DOWN
     state:      LINK_DOWN
     current:    10MB-FD COPPER
     speed: 10 Mbps now, 0 Mbps max

Same thing works fine with 1024m ( 1G hugepage). Our mbuf doesn't change,
it is around 35m in both cases.
/testpmd -c 0x3 -n 4 *--socket-mem 1024* --no-pci
--file-prefix=virtio_user-testpmd
--vdev=virtio_user0,mac=00:01:02:03:04:03,path=/var/run/openvswitch/l3_h_ge_1_0_0
--vdev=virtio_user1,mac=00:01:02:03:04:05,path=/var/run/openvswitch/l3_h_ge_1_0_1
-- -i --txqflags=0xf00 --disable-hw-vlan --mbuf-size=16000
--total-num-mbufs=2048    --rxq=1 --txq=1

root@####:~# ovs-ofctl dump-ports-desc ovs-sys-br
OFPST_PORT_DESC reply (xid=0x2):
 1(dpdk0): addr:94:f7:ad:a5:40:50
     config:     0
     state:      0
     current:    100MB-FD
     speed: 100 Mbps now, 0 Mbps max
 2(dpdk1): addr:94:f7:ad:a5:40:51
     config:     0
     state:      0
     current:    100MB-FD
     speed: 100 Mbps now, 0 Mbps max
 3(dpdk2): addr:94:f7:ad:a5:40:52
     config:     0
     state:      0
     current:    100MB-FD
     speed: 100 Mbps now, 0 Mbps max
 4(dpdk3): addr:94:f7:ad:a5:40:53
     config:     0
     state:      0
     current:    100MB-FD
     speed: 100 Mbps now, 0 Mbps max
 5(xdsl_eth0): addr:2a:27:23:b4:2d:f6
     config:     0
     state:      0
     current:    10GB-FD COPPER
     speed: 10000 Mbps now, 0 Mbps max
 6(l3_h_ge_1_0_0): addr:00:00:00:00:00:00
     config:     0
     state:      0
     speed: 0 Mbps now, 0 Mbps max
 7(l3_h_ge_1_0_1): addr:00:00:00:00:00:00
     config:     0
     state:      0
     speed: 0 Mbps now, 0 Mbps max
 LOCAL(ovs-sys-br): addr:94:f7:ad:a5:40:50
     config:     PORT_DOWN
     state:      LINK_DOWN
     current:    10MB-FD COPPER
     speed: 10 Mbps now, 0 Mbps max


Is there some argument missing in testpmd, as in the non working case queue
is getting disabled.

Regards,
Gaurav

                 reply	other threads:[~2020-12-21 23:20 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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='CAJ+HfNbfd7s+vF0Foat2BsgzOLufsR5B2tFO==b0H3EReD2tRA@mail.gmail.com' \
    --to=gmaheshwari24.6@gmail.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).