Re: [ovs-discuss] how many CPU cannot allocate for PMD thread?

2017-09-18 Thread Sun Paul
Hi

below is the output. currently, I am only able to set to use two CPU for PMD.

# ovs-vsctl show
ea7f2b40-b7b3-4f11-a81f-cf25a56f8172
Bridge "gtp1"
Port "dpdk0"
Interface "dpdk0"
type: dpdk
options: {dpdk-devargs=":04:00.2", n_rxq="4"}
Port "gtp1"
Interface "gtp1"
type: internal
Port "dpdk1"
Interface "dpdk1"
type: dpdk
options: {dpdk-devargs=":04:00.3", n_rxq="4"}



On Tue, Sep 19, 2017 at 4:09 AM, Flavio Leitner  wrote:
> On Mon, 18 Sep 2017 16:51:33 +0800
> Sun Paul  wrote:
>
>> Hi
>>
>> I have two interfaces mapped to DPDK, and run the OVS on top of it. I
>> tried to set the cpu mask, but I cannot only allocate more than 2 CPU
>> for pmd thread. any idea?
>>
>> # /usr/local/bin/ovs-appctl dpif-netdev/pmd-rxq-show
>> pmd thread numa_id 0 core_id 1:
>> isolated : false
>> port: dpdk0 queue-id: 0
>> pmd thread numa_id 0 core_id 2:
>> isolated : false
>> port: dpdk1 queue-id: 0
>
> Could you post the DPDK configuration and what do you want?
>
> Thanks,
> --
> Flavio
>
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


Re: [ovs-discuss] Troubleshooting network issues with ovn without network namespaces

2017-09-18 Thread Vikrant Aggarwal
Thanks for your reply Russell.

I installed devstack with latest development releases but I don't see the
namespace created with latest version also.

~~~

[stack@devstack-centos-controller devstack]$ grep -i ovn local.conf  | grep
-v "#"
enable_plugin networking-ovn
https://git.openstack.org/openstack/networking-ovn
enable_service ovn-northd
enable_service ovn-controller
enable_service networking-ovn-metadata-agent

[stack@devstack-centos-controller devstack]$ neutron net-list
neutron CLI is deprecated and will be removed in the future. Use openstack
CLI instead.
+--+---+--+
| id   | name  |
subnets  |
+--+---+--+
| 786530e0-775b-482c-8149-c6e751c188da | internal1 |
dc4961f7-0be3-46be-a545-da7e3a9add8c 10.10.10.0/24   |
| 823cab04-68ea-4d02-843d-ab420e2b0709 | private   |
00893897-44b3-42e6-9b2d-568568fae221 fde5:d829:f076::/64 |
|  |   |
10b1f798-729c-4329-ae0a-65946fee80e4 10.0.0.0/26 |
| e1ddda3d-eab5-46a9-a880-15f4eab0360c | public|
b785fc74-ee29-4d0d-bd1f-234337528024 |
|  |   |
d49dc742-9709-4e3b-8a45-68333b7af8b1 |
+--+---+--+

[stack@devstack-centos-controller devstack]$ ip netns list
[stack@devstack-centos-controller devstack]$
~~~

Can you please share the steps if you have them handy.

Thanks & Regards,
Vikrant Aggarwal


On Tue, Sep 19, 2017 at 1:51 AM, Russell Bryant  wrote:

> On Fri, Sep 15, 2017 at 12:45 AM, Vikrant Aggarwal
>  wrote:
> > Hi Folks,
> >
> > With ovs as mechanism driver in neutron, I used network namespaces often
> to
> > troubleshoot the network related issue especially with instances which
> are
> > not having floating ip attached to them. It's easy to take ssh session to
> > instances without floating ip from network namespace and then take the
> > tcpdump at various hops to troubleshoot the issue.
> >
> > With ovn, hops are reduced as all decisions are made using openflows but
> > it's difficult to troubleshoot the issue.
> >
> > Do we have any mechanism to take the ssh session to instance with only
> > private ip in case of ovn and take tcpdump on logical switches and ports?
>
> If you're using the latest Neutron integration (networking-ovn), we
> now create namespaces for OpenStack metadata API integration.  You can
> use those namespaces like you did before.
>
> The other option would be to manually create a Neutron port, and then
> manually create an interface in a namespace for that Neutron port.  I
> can send instructions if needed ...
>
> --
> Russell Bryant
>
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


Re: [ovs-discuss] Troubleshooting network issues with ovn without network namespaces

2017-09-18 Thread Russell Bryant
On Fri, Sep 15, 2017 at 12:45 AM, Vikrant Aggarwal
 wrote:
> Hi Folks,
>
> With ovs as mechanism driver in neutron, I used network namespaces often to
> troubleshoot the network related issue especially with instances which are
> not having floating ip attached to them. It's easy to take ssh session to
> instances without floating ip from network namespace and then take the
> tcpdump at various hops to troubleshoot the issue.
>
> With ovn, hops are reduced as all decisions are made using openflows but
> it's difficult to troubleshoot the issue.
>
> Do we have any mechanism to take the ssh session to instance with only
> private ip in case of ovn and take tcpdump on logical switches and ports?

If you're using the latest Neutron integration (networking-ovn), we
now create namespaces for OpenStack metadata API integration.  You can
use those namespaces like you did before.

The other option would be to manually create a Neutron port, and then
manually create an interface in a namespace for that Neutron port.  I
can send instructions if needed ...

-- 
Russell Bryant
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


Re: [ovs-discuss] how many CPU cannot allocate for PMD thread?

2017-09-18 Thread Flavio Leitner
On Mon, 18 Sep 2017 16:51:33 +0800
Sun Paul  wrote:

> Hi
> 
> I have two interfaces mapped to DPDK, and run the OVS on top of it. I
> tried to set the cpu mask, but I cannot only allocate more than 2 CPU
> for pmd thread. any idea?
> 
> # /usr/local/bin/ovs-appctl dpif-netdev/pmd-rxq-show
> pmd thread numa_id 0 core_id 1:
> isolated : false
> port: dpdk0 queue-id: 0
> pmd thread numa_id 0 core_id 2:
> isolated : false
> port: dpdk1 queue-id: 0

Could you post the DPDK configuration and what do you want?

Thanks,
-- 
Flavio

___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


[ovs-discuss] DHCP for multiple subnets/VLANs across GRE tunnel using openvswitch patch ports

2017-09-18 Thread Gilbert Standen
Hi thanks I need help with a problem detailed at my blog here:  
https://sites.google.com/site/nandydandyoracle/openvswitch-ovs/networking-problem-1
 How to configure or propose alternative solutions thanks!!
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


[ovs-discuss] Updating Flow Counters with every packet (Help with the source code)

2017-09-18 Thread Rahul Sharma
Hello,

I have noticed that when there are a lot of packets in the network, OVS
doesn't update the flow counters with every packet, rather it updates the
counter in batches.

Changing the values of  UPCALL_MAX_BATCH and REVALIDATE_MAX_BATCH  in
ofproto/ofproto-dpif-upcall.c  seems to affect it a bit but I still get the
instances where it happens.

Can someone help me regarding how I could achieve this?

The following are the stack-traces when it happens:

#0  rule_dpif_credit_stats (rule=0x98a900, stats=0x75aa2970) at
ofproto/ofproto-dpif.c:4024
#1  0x0044bbe9 in xlate_push_stats_entry
(entry=entry@entry=0x700029f8,
stats=stats@entry=0x75aa2970) at ofproto/ofproto-dpif-xlate-cache.c:106
#2  0x0044be0f in xlate_push_stats (xcache=,
stats=stats@entry=0x75aa2970) at ofproto/ofproto-dpif-xlate-cache.c:187
#3  0x0043af90 in push_dp_ops (udpif=udpif@entry=0x873a20,
ops=ops@entry=0x75aa32f0, n_ops=n_ops@entry=1) at
ofproto/ofproto-dpif-upcall.c:2257
#4  0x0043b0c5 in push_ukey_ops (udpif=udpif@entry=0x873a20,
umap=umap@entry=0x84d600, ops=ops@entry=0x75aa32f0, n_ops=n_ops@entry=1)
at ofproto/ofproto-dpif-upcall.c:2290
#5  0x0043c616 in revalidator_sweep__
(revalidator=revalidator@entry=0x936690,
purge=true) at ofproto/ofproto-dpif-upcall.c:2545
#6  0x0043e4cb in revalidator_sweep (revalidator=0x936690) at
ofproto/ofproto-dpif-upcall.c:2556
#7  udpif_revalidator (arg=0x936690) at ofproto/ofproto-dpif-upcall.c:913
#8  0x004e15e4 in ovsthread_wrapper (aux_=) at
lib/ovs-thread.c:348
#9  0x7758b184 in start_thread (arg=0x75aa5700) at
pthread_create.c:312
#10 0x76da9ffd in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:111




#0  rule_dpif_credit_stats (rule=0x922f20, stats=0x75aa0f10) at
ofproto/ofproto-dpif.c:4024
#1  0x0044bbe9 in xlate_push_stats_entry
(entry=entry@entry=0x700025f8,
stats=stats@entry=0x75aa0f10) at ofproto/ofproto-dpif-xlate-cache.c:106
#2  0x0044be0f in xlate_push_stats (xcache=,
stats=stats@entry=0x75aa0f10) at ofproto/ofproto-dpif-xlate-cache.c:187
#3  0x0043b5c4 in revalidate_ukey (udpif=udpif@entry=0x873a20,
ukey=ukey@entry=0x7fffec00d350, stats=stats@entry=0x75aa1e38,
odp_actions=odp_actions@entry=0x75aa1020, reval_seq=reval_seq@entry=80317,
recircs=recircs@entry=0x75aa1010) at ofproto/ofproto-dpif-upcall.c:2149
#4  0x0043e3b3 in revalidate (revalidator=0x936690) at
ofproto/ofproto-dpif-upcall.c:2437
#5  0x0043e4bb in udpif_revalidator (arg=0x936690) at
ofproto/ofproto-dpif-upcall.c:909
#6  0x004e15e4 in ovsthread_wrapper (aux_=) at
lib/ovs-thread.c:348
#7  0x7758b184 in start_thread (arg=0x75aa5700) at
pthread_create.c:312
#8  0x76da9ffd in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:111



Thanks,



-- 
Regards,
*Rahul Sharma*
5th YearMaster of Science (Hons), PhysicsBachelor of Engineering (Hons),
Computer Science
**

*Birla Institute of Technology & Science,* *Pilani*

Pilani Campus, Vidhya Vihar, Pilani, Rajasthan - 333 031, INDIA.
ᐧ
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


Re: [ovs-discuss] Tenant multicast traffic on OpenStack with OVN

2017-09-18 Thread Russell Bryant
On Fri, Sep 8, 2017 at 10:09 AM, Tom Verdaat  wrote:
> Hi Numan,
>
> Good to know. So OVN would not fix this automatically. At least, given the
> info in Darragh's gist not when used in combination with GRE/VxLAN/Geneve.
>
> Is this on the roadmap? Somebody working on it? Is there a ticket that we
> can track?

Nobody is currently working on it.

-- 
Russell Bryant
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


[ovs-discuss] OFPT_QUEUE_GET_CONFIG_REQUEST in OVS

2017-09-18 Thread Jannis Ohms

Hi


I am currently running OVS 2.6.1 I want to use the 
OFPT_QUEUE_GET_CONFIG_REQUEST as specified in OF_13


my Controller generates the folowing packet


100    12.059266393    127.0.0.1    127.0.0.1 OpenFlow    82    Type: 
OFPT_QUEUE_GET_CONFIG_REQUEST


   00 00 00 00 00 00 00 00 00 00 00 00 08 00 45 00  ..E.
0010   00 44 8c e7 40 00 40 06 af ca 7f 00 00 01 7f 00  .D..@.@.
0020   00 01 19 fd ae 32 78 33 58 b9 72 64 ff ad 80 18  .2x3X.rd
0030   03 5b fe 38 00 00 01 01 08 0a f6 b1 bf 8c f4 70  .[.8...p
0040   96 57 04 16 00 10 00 00 00 12 00 00 00 04 00 00  .W..
0050   00 00

But I do not get a response from the switch not even an error

Is this a bug ?

___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


Re: [ovs-discuss] [ovs-dev] adding dpdk ports sharing same pci address to ovs-dpdk bridge

2017-09-18 Thread devendra rawat
Hi Kevin,

On Fri, Sep 8, 2017 at 12:24 AM, Kevin Traynor  wrote:

> On 09/07/2017 06:47 PM, Darrell Ball wrote:
> > Adding disc...@openvswitch.org
> >
> > The related changes went into 2.7
> >
> >
> >
> > On 9/7/17, 3:51 AM, "ovs-dev-boun...@openvswitch.org on behalf of
> devendra rawat"  devendra.rawat.si...@gmail.com> wrote:
> >
> > Hi,
> >
> > I have compiled and built ovs-dpdk using DPDK v17.08 and OVS v2.8.0.
> The
> > NIC that I am using is Mellanox ConnectX-3 Pro, which is a dual port
> 10G
> > NIC. The problem with this NIC is that it provides only one PCI
> address for
> > both the 10G ports.
> >
> > So when I am trying to add the two DPDK ports to my br0 bridge
> >
> > # ovs-vsctl --no-wait add-port br0 dpdk0 -- set Interface dpdk0
> type=dpdk
> > options:dpdk-devargs=0002:01:00.0
> >
> > # ovs-vsctl --no-wait add-port br0 dpdk1 -- set Interface dpdk1
> type=dpdk
> > options:dpdk-devargs=0002:01:00.0
> >
>
> Were you able to confirm those addresses by running ./dpdk-devbind.py -s
> in your /tools dir?
>

On running dpdk-devbind.py --status , I can see the ConnectX-3 pro NIC,
having only one PCI address.

Network devices using DPDK-compatible driver



Network devices using kernel driver
===
0002:01:00.0 'MT27520 Family [ConnectX-3 Pro] 1007' if=enP4p1s0d1,enP4p1s0
drv=mlx4_core unused=
0006:01:00.0 'I210 Gigabit Network Connection 1533' if=enP6p1s0 drv=igb
unused= *Active*



> The port dpdk1 is added successfully and able to transfer data, but
adding
> dpdk0 to br0 fails:
>
> 2017-09-06T14:19:20Z|00045|netdev_dpdk|INFO|Port 0: e4:1d:2d:4f:78:60
> 2017-09-06T14:19:20Z|00046|bridge|INFO|bridge br0: added interface
dpdk1 on
> port 1
> 2017-09-06T14:19:20Z|00047|bridge|INFO|bridge br0: added interface
br0 on
> port 65534
> 2017-09-06T14:19:20Z|00048|dpif_netlink|WARN|Generic Netlink family
> 'ovs_datapath' does not exist. The Open vSwitch kernel module is
probably
> not loaded.
> 2017-09-06T14:19:20Z|00049|netdev_dpdk|WARN|'dpdk0' is trying to use
device
> '0002:01:00.0' which is already in use by 'dpdk1'
> 2017-09-06T14:19:20Z|00050|netdev|WARN|dpdk0: could not set
configuration
> (Address already in use)
> 2017-09-06T14:19:20Z|00051|bridge|INFO|bridge br0: using datapath ID
> e41d2d4f7860
>
>
> With OVS v2.6.1 I never had this problem as dpdk-devargs was not
mandatory
> and just specifying port name was enough to add that port to bridge.
>
> Is there a way to add port both ports to bridge ?
>
> Thanks,
> Devendra
> ___
> dev mailing list
> d...@openvswitch.org
> https://urldefense.proofpoint.com/v2/url?u=https-3A__mail.
openvswitch.org_mailman_listinfo_ovs-2Ddev=DwICAg=
uilaK90D4TOVoH58JNXRgQ=BVhFA09CGX7JQ5Ih-uZnsw=
qO7NdgrrorJhievOguQLmsfEFuBcPfz9NfQX7UME1-8=ZKHbYlaTjm8VFj6Rggmcb2gw6s3xW4
PxEtUy4YFG1VA=
>
>
> ___
> dev mailing list
> d...@openvswitch.org

> > https://mail.openvswitch.org/mailman/listinfo/ovs-dev
> >
>
>
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


[ovs-discuss] how many CPU cannot allocate for PMD thread?

2017-09-18 Thread Sun Paul
Hi

I have two interfaces mapped to DPDK, and run the OVS on top of it. I
tried to set the cpu mask, but I cannot only allocate more than 2 CPU
for pmd thread. any idea?

# /usr/local/bin/ovs-appctl dpif-netdev/pmd-rxq-show
pmd thread numa_id 0 core_id 1:
isolated : false
port: dpdk0 queue-id: 0
pmd thread numa_id 0 core_id 2:
isolated : false
port: dpdk1 queue-id: 0
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss