[ovs-dev] [ovs-dpdk-tests] where is ovs-dpdk test case?

2017-08-17 Thread Sam
Hi all, I'm working with ovs-dpdk, I want to run ovs-dpdk test case. But I found there is no test case for 'netdev' type bridge and no test case for ovs-dpdk datapath(which is pmd_thread_main). So my question is where could I find these test cases? Also I change some code in dpdk-vhost client

[ovs-dev] how to get packet information in ovs-dpdk?

2017-07-12 Thread Sam
hi all, I'm running ovs-dpdk(ovs-2.4.9), I found the counter of bond port of br_t is increasing, but I want to know what's these packets, how could I do this? first, I use `ovs-ofctl snoop br_t`, but it quit quickly as below: > [root@yf-mos-test-net07 ~]# /usr/local/bin/ovs-ofctl snoop >

Re: [ovs-dev] When did vlan tag add into packet in ovs and ovs-dpdk?

2017-07-13 Thread Sam
For hardware switch, a port with vlan 1020, it's behavior is: 1. packet come into port will set vlan tag 1020 in switch, and then send it. 2. only packet with vlan 1020 will come out from this port. So I don't know if ovs works like this? 2017-07-14 9:46 GMT+08:00 Sam <batmanu...@gmail.

[ovs-dev] When did vlan tag add into packet in ovs and ovs-dpdk?

2017-07-13 Thread Sam
Hi all, I'm testing vlan in both ovs and ovs-dpdk. My topology is: vm(121) vm(120) vm(220) | | | ----- br_t07| b2

Re: [ovs-dev] When did vlan tag add into packet in ovs and ovs-dpdk?

2017-07-13 Thread Sam
. Why no thing when I ping unknown host? 2017-07-14 9:46 GMT+08:00 Sam <batmanu...@gmail.com>: > Hi all, > > I'm testing vlan in both ovs and ovs-dpdk. My topology is: > > vm(121) vm(120)

Re: [ovs-dev] how to get packet information in ovs-dpdk?

2017-07-13 Thread Sam
Yes it is. I'm also confused, as when I use normal kernel based ovs-2.3.0, `ovs-ofctl snoop br0` works good and will not quit. 2017-07-12 23:24 GMT+08:00 Ben Pfaff <b...@ovn.org>: > On Wed, Jul 12, 2017 at 04:21:04PM +0800, Sam wrote: > > hi all, > > > > I'm running o

Re: [ovs-dev] [ovs-tests] Questions about ovs tests

2017-08-07 Thread Sam
st=2 -- \ >add-port br1 p8 -- set interface p8 ofport_request=8 type=dummy --]) if no vswitchd started, `add-port` will failed. 2017-08-08 10:03 GMT+08:00 Sam <batmanu...@gmail.com>: > Hi all, > > I'm working on ovs tests, and I want to add my test, so I have few > qu

[ovs-dev] [ovs-tests] Questions about ovs tests

2017-08-07 Thread Sam
Hi all, I'm working on ovs tests, and I want to add my test, so I have few questions: 1. what testing frame work does ovs-tests use, as I have seen lots of *.at file, lots of AT_*() macro. 2. Will ovs-tests start ovs-vswitchd or ovsdb-server when running test by `make check` command? As if no

[ovs-dev] Why my AT_CHECK() can't work?

2017-08-09 Thread Sam
Hi all, I'm using autotest to test ovs, and I write a new *.at file using only one AT_CHECK sentence like this: AT_CHECK([ovs-appctl dpdk/bond-show dpdkb2], [0], [stdout]) > AT_CHECK([[sed '/ACTIVE/p' stdout | head -4]], [0], [[LACP actor_state > ACTIVE AGGREGATION SYNC COLLECTING DISTRIBUTING >

Re: [ovs-dev] Why my AT_CHECK() can't work?

2017-08-09 Thread Sam
BUTING > 789. netdev-dpdk.at:23: 789. netdev-dpdk - dpdk/bond-show ( > netdev-dpdk.at:23): FAILED (netdev-dpdk.at:28) I don't know where is the difference 2017-08-09 17:15 GMT+08:00 Sam <batmanu...@gmail.com>: > Hi all, > > I'm using autotest to test ovs, and I writ

Re: [ovs-dev] How to refresh test cases in tests folder?

2017-08-17 Thread Sam
I have to ./boot.sh, then the test case will refresh 2017-08-18 9:17 GMT+08:00 Sam <batmanu...@gmail.com>: > Hi all, > > I'm running my test cases, I define a new macro in ofproto-macro.at like > this; > > m4_define([_OVS_VSWITCHD_START], >> [OVS_RUNDIR=/usr/loc

[ovs-dev] Why 'OVS_VSWITCHD_STOP' do not run?

2017-08-17 Thread Sam
Hi all, I'm running my ovs test case(my-test.at) like this, but when 'OVS_VSWITCHD_START' or other AT_CHECK failed, 'OVS_VSWITCHD_STOP' will not run, why and how to fix this to let 'OVS_VSWITCHD_STOP' run anyway. Thank you~ ___ dev mailing list

[ovs-dev] How to refresh test cases in tests folder?

2017-08-17 Thread Sam
Hi all, I'm running my test cases, I define a new macro in ofproto-macro.at like this; m4_define([_OVS_VSWITCHD_START], > [OVS_RUNDIR=/usr/local/var/run/openvswitch; export OVS_RUNDIR >OVS_LOGDIR=/usr/local/var/log/openvswitch; export OVS_LOGDIR >

[ovs-dev] how to run script in *.at file in tests folder?

2017-08-23 Thread Sam
Hi all, I'm testing, I add a new at file, and in that file, I run another shell script like this: AT_SETUP([vhost - run prepare-env.sh]) > #OVS_VSWITCHD_START > # No need to create, as bond1 has been created. > echo "@" > /root/gangyewei/mvs/mvs/tests/prepare-env.sh >

[ovs-dev] Does ovs-dpdk support QoS on dpdkvhostuser port and other port?

2017-06-11 Thread Sam
Hi, all Does ovs-dpdk support QoS on dpdkvhostuser port and other port, just like 'HTB' for kernel based ovs port? Or will ovs-dpdk support this? ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] Can I use dummy-type bridge together with netdev-type bridge for test?

2017-08-21 Thread Sam
So if I want to debug netdev-type bridge(which is ovs-dpdk bridge), is there some commands like `ovs-appctl dummy/receive ...` on internal port? Or can I code a command like this on internal port? 2017-08-22 1:12 GMT+08:00 Ben Pfaff <b...@ovn.org>: > On Mon, Aug 21, 2017 at 04:20:42PM +

[ovs-dev] Restore flows is slow using "ovs-save", is there someone who use RPC to speed up flow restore?

2017-11-23 Thread Sam
Hi all, I'm working on speed up ovs restart, I found that restore flows is slow when there are lots of flows, so I want to use RPC to store flows in another process, and then restore from it. Is there someone who have worked on this? could you share how faster after this change? Thank you~ Or

Re: [ovs-dev] Restore flows is slow using "ovs-save", is there someone who use RPC to speed up flow restore?

2017-11-23 Thread Sam
ovs-save is a shell script, using `ovs-ofctl dump-flows br` to write flows into a file, and then use `ovs-ofctl add-flows br FILE` to add them. 2017-11-24 11:07 GMT+08:00 Sam <batmanu...@gmail.com>: > Hi all, > > I'm working on speed up ovs restart, I found that restore flows

Re: [ovs-dev] In ovs-2.4 version, why can't stop dpdk-bond port by `ovs-ofctl mod br dpdkbond DOWN`?

2017-11-27 Thread Sam
The "dev->port_id" is bond port id, should I use slave port id instead ? 2017-11-27 18:07 GMT+08:00 Sam <batmanu...@gmail.com>: > Hi all, > > I'm working in ovs 2.4 version, and I use "dpdkb" type netdev. Then I > call `ovs-ofctl mod br dpdkbond DOWN

[ovs-dev] In ovs-2.4 version, why can't stop dpdk-bond port by `ovs-ofctl mod br dpdkbond DOWN`?

2017-11-27 Thread Sam
Hi all, I'm working in ovs 2.4 version, and I use "dpdkb" type netdev. Then I call `ovs-ofctl mod br dpdkbond DOWN` to down this device, at last, my code call "rte_eth_dev_stop(dev->port_id);". But counter shows the port is still rx/tx, why? ___ dev

[ovs-dev] Please help me to debug memory mis-unmap in ovs-dpdk.

2017-11-01 Thread Sam
Hi all, I'm debugging a mis-unmap bug in ovs-dpdk, process is this: 1. start ovs-dpdk with 10G socket memory, then use `top`, ovs-vswitchd take 10G memory. command is bellow. 2. start qemu vm1 with vhost device as server to connect port on ovs-dpdk, command is bellow. qemu share 40G memory with

[ovs-dev] Why I can't get max line speed using ovs-dpdk and vhost-user port?

2017-11-09 Thread Sam
Hi all, I'm using ovs-dpdk with vhost-user port and 10 VM started by qemu, topology is: VM1 ~ VM10 | | -OVS | dpdk-bond the start command of ovs-dpdk is: root 8969 200 0.1 107748696 231284 ?S ovs-vswitchd --dpdk -c 0x40004 -n 4 --socket-mem 10240

[ovs-dev] [ovs-dpdk bug] Failing to release memory when QEMU exits?

2017-10-30 Thread Sam
Hi all, I found in ovs-dpdk it is failing to release memory when QEMU exits. Is this a clear bug in ovs-dpdk? If it is, when did this bug fixed? Detail is bellow: For qemu-2.6.0 and ovs-dpdk, in huge page (1G) environment, after kill the qemu process, memory which is alloc for the vm could not

Re: [ovs-dev] [ovs-dpdk bug] Failing to release memory when QEMU exits?

2017-10-30 Thread Sam
add dpdk 2017-10-31 10:43 GMT+08:00 Sam <batmanu...@gmail.com>: > Hi all, > > I found in ovs-dpdk it is failing to release memory when QEMU exits. Is > this a clear bug in ovs-dpdk? If it is, when did this bug fixed? Detail is > bellow: > > > For qemu-2.6.0

[ovs-dev] Bug in OVS2.8.0+DPDK17.05+Intel_82599_IXGBE sriov?

2018-05-17 Thread Sam
Hi all, I'm using OVS2.8.0+DPDK17.05+Intel_82599_IXGBE for test, the vf driver is ixgbevf-4.0.3. I use sriov follow like this: echo 1 > /sys/bus/pci/devices/:01:00.0/max_vfs Then test l3fwd-vf demo, it is OK. Then test OVS2.8.0, and assign pf for ovs like this: ovs-vsctl add-port br_t

Re: [ovs-dev] Bug in OVS2.8.0+DPDK17.05+Intel_82599_IXGBE sriov?

2018-05-18 Thread Sam
I have test dpdk testpmd, it is OK in the same enviroment. Why ovs-dpdk could not work? I think that must be some bug in ovs? 2018-05-18 11:42 GMT+08:00 Sam <batmanu...@gmail.com>: > Hi all, > > I'm using OVS2.8.0+DPDK17.05+Intel_82599_IXGBE for test, the vf driver is > ixgbev

Re: [ovs-dev] How to dump DPDK log?

2018-05-16 Thread Sam
I want DPDK VHOST module DEBUG level log 2018-05-16 16:27 GMT+08:00 Sam <batmanu...@gmail.com>: > Hi all, > > I'm debugging OVS2.9.0 and DPDK18.02, I found I could not dump DPDK log > like vhost module. > > How can I dump DPDK l

Re: [ovs-dev] How to dump DPDK log?

2018-05-16 Thread Sam
the > following will do it for sure: > >ovs-appctl vlog/set file:dpdk:dbg > > >ovs-appctl vlog/set file:netdev_dpdk:dbg > > //Eelco > > > On 16/05/18 14:11, Sam wrote: > > Is this to enable debug log in DPDK? > > diff --git a/config/common_base

Re: [ovs-dev] How to dump DPDK log?

2018-05-16 Thread Sam
+CONFIG_RTE_LIBRTE_VHOST=y CONFIG_RTE_LIBRTE_VHOST_NUMA=n -CONFIG_RTE_LIBRTE_VHOST_DEBUG=n +CONFIG_RTE_LIBRTE_VHOST_DEBUG=y 2018-05-16 20:04 GMT+08:00 Eelco Chaudron <echau...@redhat.com>: > On 16/05/18 10:30, Sam wrote: > >> I want DPDK VHOST module DEBUG level log >> > First make sur

[ovs-dev] How to dump DPDK log?

2018-05-16 Thread Sam
Hi all, I'm debugging OVS2.9.0 and DPDK18.02, I found I could not dump DPDK log like vhost module. How can I dump DPDK log into files? Thank you~ ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [dpdk-dev] How to dump DPDK log?

2018-05-16 Thread Sam
375Z|00012|dpdk|INFO|EAL: Detected 32 lcore(s) 2018-05-17T02:23:04.375Z|00013|dpdk|ERR|EAL: invalid parameters for --log-level 2018-05-16 21:29 GMT+08:00 Ferruh Yigit <ferruh.yi...@intel.com>: > On 5/16/2018 9:30 AM, Sam wrote: > > I want DPDK VHOST module DEBUG level log >

Re: [ovs-dev] [dpdk-dev] How to dump DPDK log?

2018-05-16 Thread Sam
Oh, it should be user1,8 in dpdk-17.05 OMG 2018-05-17 10:26 GMT+08:00 Sam <batmanu...@gmail.com>: > How to set this param... > > I use this, but report me bug: > > sudo /usr/local/bin/ovs-vsctl --no-wait set Open_vSwitch . > other_config:dpdk-extra="--log-leve

Re: [ovs-dev] [sriov] [ixgbevf] We have to down PF and VF port to reconfig a port?

2018-01-04 Thread Sam
-mos-test-net14 kernel: [103406.865705] [] x86_64_start_reservations+0x2a/0x2c Dec 27 20:23:22 yf-mos-test-net14 kernel: [103406.865708] [] x86_64_start_kernel+0x152/0x175 Dec 27 20:23:22 yf-mos-test-net14 kernel: [103406.865709] ---[ end trace 45a157a1f564e086 ]--- 2017-12-27 10:54 GMT+08:00 Sam

[ovs-dev] kernel crash bug caused by ixgbevf kernel module of centos-3.10.0-229.20.1.el7

2018-01-29 Thread Sam
I found a bug about ixgbevf kernel module in centos-3.10.0-229.20.1.el7. And this bug is also in 3.10.0-514.10.2.el7. How to produce this bug: use SRIOV first, then add lots of network traffic on vf port, and then ifdow/ifup vf port, after many times, this bug happens. BUG: [308026.586026]

[ovs-dev] [sriov] [ixgbevf] We have to down PF and VF port to reconfig a port?

2017-12-26 Thread Sam
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(:01:00.0 and

Re: [ovs-dev] [sriov] [ixgbevf] We have to down PF and VF port to reconfig a port?

2017-12-26 Thread Sam
2017-12-27 10:42 GMT+08:00 Sam <batmanu...@gmail.com>: > 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 enp1s16f

[ovs-dev] How about give a simplify kernel version OVS used in Docker network?

2018-11-13 Thread Sam
Hi all, When I'm using Docker network, I choose linux bridge, as OVS will take high CPU cost. I think most user will encounter this problem. But also I want to use openflow and SDN. So how about give a simplify kernel version OVS used in Docker network ? And why OVS take high CPU cost?