Re: [ovs-discuss] Reg IPv6 Neighbor Advertisement Message fields

2018-04-08 Thread Justin Pettit

> On Apr 8, 2018, at 9:55 AM, Ben Pfaff  wrote:
> 
> On Sun, Apr 08, 2018 at 04:34:16PM +, Vishal Deep Ajmera wrote:
>> 
>> In the above message, fields R (Router flag), S (Solicited flag) and O
>> (Override flag) cannot be set. Is my understanding correct ?
> 
> Yes.
> 
> It would be reasonable to be able to match and set these, so I imagine
> that we would accept patches to enable that.

Zak is working on that feature; I expect patches will hit the mailing list in 
the next week or two.

--Justin


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


Re: [ovs-discuss] Reg IPv6 Neighbor Advertisement Message fields

2018-04-08 Thread Ben Pfaff
On Sun, Apr 08, 2018 at 04:34:16PM +, Vishal Deep Ajmera wrote:
> Hi,
> 
> We are trying to setup Neighbor Solicitation Responder using OpenFlow 
> pipeline in OVS however it seems some of the fields in Neighbor Advertisement 
> Message Format cannot be set using OpenFlow set actions. Following is the 
> frame format of NA message:
> 
> 0   1   2   3
>0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
>   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>   | Type  | Code  |  Checksum |
>   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>   |R|S|O| Reserved|
>   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>   |   |
>   +   +
>   |   |
>   +   Target Address  +
>   |   |
>   +   +
>   |   |
>   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>   |   Options ...
>   +-+-+-+-+-+-+-+-+-+-+-+-
> 
> In the above message, fields R (Router flag), S (Solicited flag) and O
> (Override flag) cannot be set. Is my understanding correct ?

Yes.

It would be reasonable to be able to match and set these, so I imagine
that we would accept patches to enable that.

> Also, is there a way to recalculate the checksum and write it to
> checksum field when we set the Target Address?

Whenever OVS changes any field, it updates the associated checksum.
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


[ovs-discuss] Reg IPv6 Neighbor Advertisement Message fields

2018-04-08 Thread Vishal Deep Ajmera
Hi,

We are trying to setup Neighbor Solicitation Responder using OpenFlow pipeline 
in OVS however it seems some of the fields in Neighbor Advertisement Message 
Format cannot be set using OpenFlow set actions. Following is the frame format 
of NA message:

0   1   2   3
   0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  | Type  | Code  |  Checksum |
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  |R|S|O| Reserved|
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  |   |
  +   +
  |   |
  +   Target Address  +
  |   |
  +   +
  |   |
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  |   Options ...
  +-+-+-+-+-+-+-+-+-+-+-+-

In the above message, fields R (Router flag), S (Solicited flag) and O 
(Override flag) cannot be set. Is my understanding correct ?

Also, is there a way to recalculate the checksum and write it to checksum field 
when we set the Target Address?

Warm Regards,
Vishal Ajmera

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


Re: [ovs-discuss] Write to arbitrary packet location in OVS

2018-04-08 Thread Vishal Deep Ajmera

On Wed, Apr 04, 2018 at 06:51:05AM +, Vishal Deep Ajmera wrote:
> Is there a way in OVS today, wherein we can set OpenFlow pipeline
> actions to write (copy) from a register to arbitrary location in the
> packet. The start offset for read (from register) & write (to packet)
> along with size of data can be set as part of action.

>> No.

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


[ovs-discuss] [openvswitch 2.9.0] run subsets of tests (to stop Travis timeouts)

2018-04-08 Thread Stuart Cardall
Hello,

Travis has a global timeout of 50 minutes per job & ovs takes just over
5 minutes to build + 52 minutes for unit tests:

https://github.com/alpinelinux/aports/pull/3928

Is there a way to run the tests in sections or perhaps run a smaller
subset suitable for Travis ?

Kind Regards,

Stuart Cardall.



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


Re: [ovs-discuss] ovs-vswitchd high CPU when there is no load

2018-04-08 Thread michael me
Hi Ben,

Thank you so much for your reply.
here below are some of the log from ovs-vswitchd.

2018-04-08T09:52:34.897Z|00333|dpdk|WARN|Failed to enable flow control on
device 0
2018-04-08T09:52:34.897Z|00334|dpdk|WARN|Failed to enable flow control on
device 1
2018-04-08T09:52:35.025Z|00335|dpdk|WARN|Failed to enable flow control on
device 0
2018-04-08T09:52:35.025Z|00336|dpdk|WARN|Failed to enable flow control on
device 1
2018-04-08T09:52:36.370Z|00337|rconn|INFO|br-int<->tcp:127.0.0.1:6633:
connected
2018-04-08T09:52:36.370Z|00338|rconn|INFO|br-eth1<->tcp:127.0.0.1:6633:
connected
2018-04-08T09:52:36.370Z|00339|rconn|INFO|br-eth2<->tcp:127.0.0.1:6633:
connected
2018-04-08T09:52:37.102Z|00340|dpdk|WARN|Failed to enable flow control on
device 0
2018-04-08T09:52:37.102Z|00341|dpdk|WARN|Failed to enable flow control on
device 1
2018-04-08T09:52:37.225Z|00342|dpdk|WARN|Failed to enable flow control on
device 0
2018-04-08T09:52:37.225Z|00343|dpdk|WARN|Failed to enable flow control on
device 1
2018-04-08T09:52:37.298Z|00344|dpdk|WARN|Failed to enable flow control on
device 0
2018-04-08T09:52:37.298Z|00345|dpdk|WARN|Failed to enable flow control on
device 1
2018-04-08T09:52:37.426Z|00346|dpdk|WARN|Failed to enable flow control on
device 0
2018-04-08T09:52:37.426Z|00347|dpdk|WARN|Failed to enable flow control on
device 1
2018-04-08T09:52:47.041Z|00348|connmgr|INFO|br-int<->tcp:127.0.0.1:6633: 7
flow_mods in the 7 s starting 10 s ago (7 adds)
2018-04-08T09:52:47.245Z|00349|connmgr|INFO|br-eth1<->tcp:127.0.0.1:6633: 3
flow_mods in the 7 s starting 10 s ago (3 adds)
2018-04-08T09:52:47.444Z|00350|connmgr|INFO|br-eth2<->tcp:127.0.0.1:6633: 3
flow_mods in the 7 s starting 10 s ago (3 adds)

is the  "Failed to enable flow control on device" related to my high CPU
load?
Just to be clear, i do get traffic through though performance is not great
so it does make sense that there is an issue with the flow, though i don't
know how to verify this.

Below are the flows that i could find:
root@dpdkApt:/# ovs-ofctl dump-flows br-int
NXST_FLOW reply (xid=0x4):
 cookie=0xb6de486b197e713c, duration=640.295s, table=0, n_packets=0,
n_bytes=0, idle_age=802, priority=3,in_port=3,vlan_tci=0x/0x1fff
actions=mod_vlan_vid:2,NORMAL
 cookie=0xb6de486b197e713c, duration=640.188s, table=0, n_packets=0,
n_bytes=0, idle_age=801, priority=3,in_port=4,vlan_tci=0x/0x1fff
actions=mod_vlan_vid:3,NORMAL
 cookie=0xb6de486b197e713c, duration=647.450s, table=0, n_packets=0,
n_bytes=0, idle_age=911, priority=2,in_port=3 actions=drop
 cookie=0xb6de486b197e713c, duration=647.251s, table=0, n_packets=0,
n_bytes=0, idle_age=910, priority=2,in_port=4 actions=drop
 cookie=0xb6de486b197e713c, duration=647.670s, table=0, n_packets=947,
n_bytes=39930, idle_age=0, priority=0 actions=NORMAL
 cookie=0xb6de486b197e713c, duration=647.675s, table=23, n_packets=0,
n_bytes=0, idle_age=911, priority=0 actions=drop
 cookie=0xb6de486b197e713c, duration=647.667s, table=24, n_packets=0,
n_bytes=0, idle_age=911, priority=0 actions=drop

root@dpdkApt:/# ovs-ofctl dump-flows br-eth1
NXST_FLOW reply (xid=0x4):
 cookie=0x990e120f393a065e, duration=645.802s, table=0, n_packets=4,
n_bytes=198, idle_age=776, priority=4,in_port=1,dl_vlan=2
actions=strip_vlan,NORMAL
 cookie=0x990e120f393a065e, duration=652.940s, table=0, n_packets=950,
n_bytes=40026, idle_age=0, priority=2,in_port=1 actions=drop
 cookie=0x990e120f393a065e, duration=652.967s, table=0, n_packets=0,
n_bytes=0, idle_age=916, priority=0 actions=NORMAL

root@dpdkApt:/# ovs-ofctl dump-flows br-eth2
NXST_FLOW reply (xid=0x4):
 cookie=0xb5b43b868c9fcb5f, duration=671.350s, table=0, n_packets=4,
n_bytes=198, idle_age=800, priority=4,in_port=2,dl_vlan=3
actions=strip_vlan,NORMAL
 cookie=0xb5b43b868c9fcb5f, duration=678.397s, table=0, n_packets=977,
n_bytes=41160, idle_age=2, priority=2,in_port=2 actions=drop
 cookie=0xb5b43b868c9fcb5f, duration=678.424s, table=0, n_packets=0,
n_bytes=0, idle_age=941, priority=0 actions=NORMAL

Do you see anything that is wrong with my setup?
I would greatly appreciate your input.

Thanks,
Michael



On Wed, Apr 4, 2018 at 7:51 PM, Ben Pfaff  wrote:

> On Wed, Apr 04, 2018 at 06:19:32PM +0300, michael me wrote:
> > The setup i am working with is ovs-dpdk and i have a the PMD mask on core
> > 1, but i see that the service of ovs-vswitchd is almost at 100% both on
> > core zero and one.
> > in the setup i have an openstack VM running and it is pinned to core two.
>
> OVS normally logs some helpful messages when it uses excessive CPU.  Can
> you check the log for those?
>
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss