Re: [ovs-dev] [PATCH/RFC 00/12] Programming Open vSwitch (-like) flows into hardware using SwitchDev

2016-09-30 Thread pravin shelar
On Thu, Sep 29, 2016 at 1:09 AM, Simon Horman wrote: > Hi Or, > > On Wed, Sep 28, 2016 at 04:54:40PM +0300, Or Gerlitz wrote: >> On Wed, Sep 28, 2016 at 3:42 PM, Simon Horman >> wrote: >> >> > A different approach, not implemented by this patch-set, is for user-space >> > to program flows into ha

[ovs-dev] [PATCH] tests/bundle: test bundle action with ports up and down

2016-09-30 Thread Thadeu Lima de Souza Cascardo
Also, add the keyword bundle_action to all the tests in bundle.at, distinguishing it from OF bundles. It came to my attention recently that bundle_load will load 0x in case all the slaves are down, as bundle_execute will return OFPP_NONE. As I noticed this was not explicitly tested, not even

Re: [ovs-dev] [PATCH] Change some old references to nicira-ext.h.

2016-09-30 Thread Ben Pfaff
On Fri, Sep 30, 2016 at 03:31:03PM -0300, Thadeu Lima de Souza Cascardo wrote: > Some of these references are not valid anymore, as things were moved to > either meta-flow.h or ofp-actions.c. > > Signed-off-by: Thadeu Lima de Souza Cascardo Thanks, applied to master.

Re: [ovs-dev] [PATCH] ovn: update docs for l2gateway port vlan tag

2016-09-30 Thread Russell Bryant
On Fri, Sep 30, 2016 at 1:29 AM, Ben Pfaff wrote: > What a nice introduction! > Agreed! > Russell, do you want to review this? Yes. The patch looks good. I trimmed the introduction from the commit message, added Gabe to the AUTHORS file, and applied this to master and branch-2.6. Thanks!

[ovs-dev] [PATCH] Change some old references to nicira-ext.h.

2016-09-30 Thread Thadeu Lima de Souza Cascardo
Some of these references are not valid anymore, as things were moved to either meta-flow.h or ofp-actions.c. Signed-off-by: Thadeu Lima de Souza Cascardo --- lib/bundle.h | 2 +- lib/learn.h | 2 +- lib/meta-flow.c | 2 +- tests/learn.at | 2 +- tutorial/Tutorial.md |

Re: [ovs-dev] [PATCH v3] netdev-dpdk: Configure flow control only when necessary.

2016-09-30 Thread Daniele Di Proietto
Applied to master, thanks 2016-09-30 0:48 GMT-07:00 Ilya Maximets : > It is not necessary to touch the physical device each time, if the > configuration has not been changed. Also, few style issues fixed. > > Thread-safety annotation added to 'dpdk_set_rxq_config()'. It was > missed while previou

Re: [ovs-dev] [PATCH v6] netdev-dpdk: Allow configurable queue sizes for 'dpdk' ports

2016-09-30 Thread Daniele Di Proietto
Applied to master, thanks 2016-09-30 6:50 GMT-07:00 Ciara Loftus : > The 'options:n_rxq_desc' and 'n_txq_desc' fields allow the number of rx > and tx descriptors for dpdk ports to be modified. By default the values > are set to 2048, but can be modified to an integer between 1 and 4096 > that is

Re: [ovs-dev] [PATCH] Destroy rules before destroying meters

2016-09-30 Thread Jarno Rajahalme
Petr, While deleting all the rules before deleting al the meters is more efficient, I think we should make the code more future proof by making sure we never delete a meter without deleting the rules referring to it. Would you try the following patch to see if it fixes the problem you face:

[ovs-dev] [PATCH] ofproto: Always delete rules before deleting a meter.

2016-09-30 Thread Jarno Rajahalme
When deleting a bridge it is currently possible to delete a mater without deleting the rules using the meter first. Fix this by moving the meter's rule deletion to meter_delete(). Signed-off-by: Jarno Rajahalme Reported-by: Petr Machata --- ofproto/ofproto.c | 35 +++---

[ovs-dev] [PATCH] ovn: Avoid using bash "+=" extension in tests.

2016-09-30 Thread Ben Pfaff
This fixes test failures when the tests are run under a shell like ash or dash. Signed-off-by: Ben Pfaff --- tests/ovn.at | 62 ++-- 1 file changed, 31 insertions(+), 31 deletions(-) diff --git a/tests/ovn.at b/tests/ovn.at index f40940f..

Re: [ovs-dev] [PATCH v9] ovn-nbctl: Add LB commands.

2016-09-30 Thread nickcooper-zhangtonghao
Thanks for your tips, I fixed the memory leak(via free(ips)). The patch follows the style of the original code. So the 'const' is not used with 'may_exist', 'add_duplicate' and 'must_exist'. You can find that in files, such as 'utilities/ovs-vsctl.c', 'ovn/utilities/ovn-sbctl.c' and 'ovn/utiliti

[ovs-dev] Problem with ovs python idl mutations

2016-09-30 Thread Richard Theis
As reported in [1], the ovs python idl mutations cause empty column data to be returned by getattr after a mutation is done the column. This can be recreated via the following steps: # Good column values column_values = getattr(row, column, []) # New value added via mutation row.addvalue(column, n

Re: [ovs-dev] [PATCH 1/3] tests: Use standard -q option to grep in place of GNU --quiet extension.

2016-09-30 Thread Ben Pfaff
On Thu, Sep 29, 2016 at 05:56:00PM -0400, Flavio Fernandes wrote: > > > On Sep 29, 2016, at 5:41 PM, Ben Pfaff wrote: > > > > Reported-by: Stuart Cardall > > Reported-at: > > http://openvswitch.org/pipermail/discuss/2016-September/022803.html > > Signed-off-by: Ben Pfaff > > > Acked-by: Fla

Re: [ovs-dev] [PATCH] ovn: Do not reply to ARP or ND NS for a VM's own IP address.

2016-09-30 Thread Ben Pfaff
On Fri, Sep 30, 2016 at 04:45:22PM +0500, Valentine Sinitsyn wrote: > Hi Ben, > > On 30.09.2016 02:55, Ben Pfaff wrote: > >On Thu, Sep 29, 2016 at 12:15:36PM -0700, Han Zhou wrote: > >>On Thu, Sep 29, 2016 at 11:31 AM, Ben Pfaff wrote: > >>> > >>>When a VM sends an ARP or an ND NS for its own IP

Re: [ovs-dev] OVN and IPFIX

2016-09-30 Thread Valentine Sinitsyn
Hi all, On 23.09.2016 17:59, Valentine Sinitsyn wrote: Hi, Suppose we want to collect per-port IPFIX statistics in an OVN-managed virtual network. Looks like the most straightforward way to do this is to add a Flow_Sample_Collector_Set entry and a flow with sample() action to match the given p

Re: [ovs-dev] [PATCH 1/2] CodingStyle.md: Clarify limit for line length.

2016-09-30 Thread Ben Pfaff
On Fri, Sep 30, 2016 at 10:00:34AM +0300, Ilya Maximets wrote: > People in OVS again and again tries to break log messages in parts. > This breaks ability to find this lines in code while debugging. > It's required to document this thing directly in CodingStyle.md to > avoid such situations in the

[ovs-dev] [PATCH v6] netdev-dpdk: Allow configurable queue sizes for 'dpdk' ports

2016-09-30 Thread Ciara Loftus
The 'options:n_rxq_desc' and 'n_txq_desc' fields allow the number of rx and tx descriptors for dpdk ports to be modified. By default the values are set to 2048, but can be modified to an integer between 1 and 4096 that is a power of two. The values can be modified at runtime, however require the NI

Re: [ovs-dev] [PATCH v3] netdev-dpdk: Configure flow control only when necessary.

2016-09-30 Thread Chandran, Sugesh
Regards _Sugesh > -Original Message- > From: Ilya Maximets [mailto:i.maxim...@samsung.com] > Sent: Friday, September 30, 2016 8:49 AM > To: dev@openvswitch.org; Daniele Di Proietto ; > Chandran, Sugesh > Cc: Dyasly Sergey ; Heetae Ahn > ; Bodireddy, Bhanuprakash > ; Loftus, Ciara > ; I

Re: [ovs-dev] [PATCH v5] netdev-dpdk: Allow configurable queue sizes for 'dpdk' ports

2016-09-30 Thread Ilya Maximets
> The 'options:n_rxq_desc' and 'n_txq_desc' fields allow the number of rx > and tx descriptors for dpdk ports to be modified. By default the values > are set to 2048, but can be modified to an integer between 1 and 4096 > that is a power of two. The values can be modified at runtime, however > requ

Re: [ovs-dev] [PATCH 2/2] netdev-dpdk: Fix issues introduced by recent style fix.

2016-09-30 Thread Ilya Maximets
On 30.09.2016 16:36, Aaron Conole wrote: > Ilya Maximets writes: > >> Double word removed. Error message rewritten to avoid breaking of the >> user-visible string. >> >> CC: Mark Kavanagh >> Fixes: 58be5c0eecf3 ("netdev-dpdk: Fix coding style") >> Signed-off-by: Ilya Maximets >> --- >> lib/net

Re: [ovs-dev] [PATCH 2/2] netdev-dpdk: Fix issues introduced by recent style fix.

2016-09-30 Thread Aaron Conole
Ilya Maximets writes: > Double word removed. Error message rewritten to avoid breaking of the > user-visible string. > > CC: Mark Kavanagh > Fixes: 58be5c0eecf3 ("netdev-dpdk: Fix coding style") > Signed-off-by: Ilya Maximets > --- > lib/netdev-dpdk.c | 7 --- > 1 file changed, 4 insertion

[ovs-dev] Können Sie mich unterstützen !!!

2016-09-30 Thread Ruth Williams
Ich brauche Ihre Unterstützung in Ihrem Land zu investieren, mit mir bitte für weitere Informationen zu kontaktieren !!! ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH] ovn: Do not reply to ARP or ND NS for a VM's own IP address.

2016-09-30 Thread Valentine Sinitsyn
Hi Ben, On 30.09.2016 02:55, Ben Pfaff wrote: On Thu, Sep 29, 2016 at 12:15:36PM -0700, Han Zhou wrote: On Thu, Sep 29, 2016 at 11:31 AM, Ben Pfaff wrote: When a VM sends an ARP or an ND NS for its own IP address, it is trying to check for a duplicate address in the network. OVN needs to su

Re: [ovs-dev] [PATCH v4] netdev-dpdk: Allow configurable queue sizes for 'dpdk' ports

2016-09-30 Thread Loftus, Ciara
> > 2016-09-29 3:28 GMT-07:00 Loftus, Ciara : > > > > Hi Ciara, > > thanks for the patch, it looks good to me. > > I only have a minor comment: > > I'd like the requested values to depend only on the current database > > state.  With the current patch when a value is invalid (not pow2 or bigger >

[ovs-dev] [PATCH v5] netdev-dpdk: Allow configurable queue sizes for 'dpdk' ports

2016-09-30 Thread Ciara Loftus
The 'options:n_rxq_desc' and 'n_txq_desc' fields allow the number of rx and tx descriptors for dpdk ports to be modified. By default the values are set to 2048, but can be modified to an integer between 1 and 4096 that is a power of two. The values can be modified at runtime, however require the NI

[ovs-dev] RETURNED MAIL: SEE TRANSCRIPT FOR DETAILS

2016-09-30 Thread Post Office
___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH 1/2] CodingStyle.md: Clarify limit for line length.

2016-09-30 Thread Kavanagh, Mark B
> >On 30.09.2016 11:49, Kavanagh, Mark B wrote: >>> >>> People in OVS again and again tries to break log messages in parts. >>> This breaks ability to find this lines in code while debugging. >> >> should be 'these lines', or 'this line' > >Oh, I meant 'these lines'. Thanks for catching this typo

Re: [ovs-dev] [PATCH 1/2] CodingStyle.md: Clarify limit for line length.

2016-09-30 Thread Ilya Maximets
On 30.09.2016 11:49, Kavanagh, Mark B wrote: >> >> People in OVS again and again tries to break log messages in parts. >> This breaks ability to find this lines in code while debugging. > > should be 'these lines', or 'this line' Oh, I meant 'these lines'. Thanks for catching this typo. I thin

Re: [ovs-dev] [PATCH 1/2] CodingStyle.md: Clarify limit for line length.

2016-09-30 Thread Kavanagh, Mark B
> >People in OVS again and again tries to break log messages in parts. >This breaks ability to find this lines in code while debugging. should be 'these lines', or 'this line' Other than that, LGTM - thanks for making this explicit. Acked-by: Mark Kavanagh >It's required to document this t

Re: [ovs-dev] [PATCH 2/2] netdev-dpdk: Fix issues introduced by recent style fix.

2016-09-30 Thread Kavanagh, Mark B
> >Double word removed. Error message rewritten to avoid breaking of the >user-visible string. > >CC: Mark Kavanagh >Fixes: 58be5c0eecf3 ("netdev-dpdk: Fix coding style") >Signed-off-by: Ilya Maximets >--- > lib/netdev-dpdk.c | 7 --- > 1 file changed, 4 insertions(+), 3 deletions(-) > >diff -

[ovs-dev] [PATCH v3] netdev-dpdk: Configure flow control only when necessary.

2016-09-30 Thread Ilya Maximets
It is not necessary to touch the physical device each time, if the configuration has not been changed. Also, few style issues fixed. Thread-safety annotation added to 'dpdk_set_rxq_config()'. It was missed while previous refactoring of the flow control configuration. Signed-off-by: Ilya Maximets

[ovs-dev] EgressShaping on DPDK netdev interfaces

2016-09-30 Thread Farooq Basha
Hi, Currently ingress and egress policing was supported on dpdk ports. Is there a plan to support egress shaping by creating user-space queues ? Or currently is there a way to do egress shaping on dpdk netdev interfaces ? It seems egress shaping does not work on tap/internal-ports/patch port

Re: [ovs-dev] [PATCH v2] netdev-dpdk: Configure flow control only when necessary.

2016-09-30 Thread Ilya Maximets
On 29.09.2016 02:52, Daniele Di Proietto wrote: > Why are the variables uint8_t instead of bool? > > I think we shouldn't assume that converting to bool always returns 0 or 1, > but the return value of smap_get_bool() is always 0 or 1 (as we always go > through ! or !=). I would remove the ternar

[ovs-dev] [PATCH 2/2] netdev-dpdk: Fix issues introduced by recent style fix.

2016-09-30 Thread Ilya Maximets
Double word removed. Error message rewritten to avoid breaking of the user-visible string. CC: Mark Kavanagh Fixes: 58be5c0eecf3 ("netdev-dpdk: Fix coding style") Signed-off-by: Ilya Maximets --- lib/netdev-dpdk.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/ne

[ovs-dev] [PATCH 0/2] Coding style fix.

2016-09-30 Thread Ilya Maximets
Ilya Maximets (2): CodingStyle.md: Clarify limit for line length. netdev-dpdk: Fix issues introduced by recent style fix. CodingStyle.md| 6 +- lib/netdev-dpdk.c | 7 --- 2 files changed, 9 insertions(+), 4 deletions(-) -- 2.7.4 ___ d

[ovs-dev] [PATCH 1/2] CodingStyle.md: Clarify limit for line length.

2016-09-30 Thread Ilya Maximets
People in OVS again and again tries to break log messages in parts. This breaks ability to find this lines in code while debugging. It's required to document this thing directly in CodingStyle.md to avoid such situations in the future. Text actually ported from the Linux kernel coding style. Sign