[ovs-dev] [patch net-next 03/13] net: introduce generic switch devices support

2014-09-03 Thread Jiri Pirko
The goal of this is to provide a possibility to suport various switch chips. Drivers should implement relevant ndos to do so. Now there is a couple of ndos defines: - for getting physical switch id is in place. - for work with flows. Note that user can use random port netdevice to access the switc

[ovs-dev] [patch net-next 10/13] openvswitch: add support for datapath hardware offload

2014-09-03 Thread Jiri Pirko
Benefit from the possibility to work with flows in switch devices and use the swdev api to offload flow datapath. Signed-off-by: Jiri Pirko --- net/openvswitch/Makefile | 3 +- net/openvswitch/datapath.c | 33 ++ net/openvswitch/datapath.h | 3 + net/openvswitch/flow_table

[ovs-dev] [patch net-next 05/13] net-sysfs: expose physical switch id for particular device

2014-09-03 Thread Jiri Pirko
Signed-off-by: Jiri Pirko --- net/core/net-sysfs.c | 24 1 file changed, 24 insertions(+) diff --git a/net/core/net-sysfs.c b/net/core/net-sysfs.c index 55dc4da..51cd5ab 100644 --- a/net/core/net-sysfs.c +++ b/net/core/net-sysfs.c @@ -12,6 +12,7 @@ #include #include

[ovs-dev] [patch net-next 00/13] introduce rocker switch driver with openvswitch hardware accelerated datapath

2014-09-03 Thread Jiri Pirko
This patchset can be divided into 3 main sections: - introduce switchdev api for implementing switch drivers - add hardware acceleration bits into openvswitch datapath, This uses previously mentioned switchdev api - introduce rocker switch driver which implements switchdev api More info in separ

[ovs-dev] [patch net-next 06/13] net: introduce dummy switch

2014-09-03 Thread Jiri Pirko
Dummy switch implementation using switchdev interface Signed-off-by: Jiri Pirko --- drivers/net/Kconfig | 7 +++ drivers/net/Makefile | 1 + drivers/net/dummyswitch.c| 130 +++ include/uapi/linux/if_link.h | 9 +++ 4 files change

[ovs-dev] [patch net-next 04/13] rtnl: expose physical switch id for particular device

2014-09-03 Thread Jiri Pirko
The netdevice represents a port in a switch, it will expose IFLA_PHYS_SWITCH_ID value via rtnl. Two netdevices with the same value belong to one physical switch. Signed-off-by: Jiri Pirko --- include/uapi/linux/if_link.h | 1 + net/core/rtnetlink.c | 26 +- 2 fil

[ovs-dev] [patch net-next 09/13] openvswitch: introduce vport_op get_netdev

2014-09-03 Thread Jiri Pirko
This will allow to query easily if the vport has netdev. Also it allows to unexpose netdev_vport_priv and struct netdev_vport. Signed-off-by: Jiri Pirko --- net/openvswitch/datapath.c | 2 +- net/openvswitch/dp_notify.c | 7 ++--- net/openvswitch/vport-internal_dev.c | 56 ++

[ovs-dev] [patch net-next 11/13] sw_flow: add misc section to key with in_port_ifindex field

2014-09-03 Thread Jiri Pirko
Signed-off-by: Jiri Pirko --- include/net/sw_flow.h| 3 +++ net/openvswitch/hw_offload.c | 22 ++ net/switchdev/switchdev.c| 2 ++ 3 files changed, 27 insertions(+) diff --git a/include/net/sw_flow.h b/include/net/sw_flow.h index 3af7758..a144d8e 100644 --- a/in

[ovs-dev] [patch net-next 07/13] dsa: implement ndo_swdev_get_id

2014-09-03 Thread Jiri Pirko
Signed-off-by: Jiri Pirko --- include/linux/netdevice.h | 3 ++- include/net/dsa.h | 1 + net/dsa/Kconfig | 2 +- net/dsa/dsa.c | 3 +++ net/dsa/slave.c | 10 ++ 5 files changed, 17 insertions(+), 2 deletions(-) diff --git a/include/linux/netde

[ovs-dev] [patch net-next 08/13] net: introduce netdev_phys_item_ids_match helper

2014-09-03 Thread Jiri Pirko
Signed-off-by: Jiri Pirko Acked-by: Scott Feldman --- include/linux/netdevice.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 7ee070f..b2c3ff0 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -750,6

[ovs-dev] [patch net-next 12/13] rocker: introduce rocker switch driver

2014-09-03 Thread Jiri Pirko
This patch introduces the first driver to benefit from the switchdev infrastructure and to implement newly introduced switch ndos. This is a driver for emulated switch chip implemented in qemu: https://github.com/sfeldma/qemu-rocker/ This patch is a result of joint work with Scott Feldman. Signed

[ovs-dev] [patch net-next 13/13] switchdev: introduce Netlink API

2014-09-03 Thread Jiri Pirko
This patch exposes switchdev API using generic Netlink. Example userspace utility is here: https://github.com/jpirko/switchdev Signed-off-by: Jiri Pirko --- MAINTAINERS | 1 + include/uapi/linux/switchdev.h| 119 + net/switchdev/Kconfig | 11 + ne

Re: [ovs-dev] [PATCH 4/5] OvsTypes.h : Added support for BE16

2014-09-03 Thread Eitan Eliahu
Acked-by: Eitan Eliahu -Original Message- From: dev [mailto:dev-boun...@openvswitch.org] On Behalf Of Ankur Sharma Sent: Tuesday, September 02, 2014 6:05 PM To: dev@openvswitch.org Subject: [ovs-dev] [PATCH 4/5] OvsTypes.h : Added support for BE16 --- datapath-windows/ovsext/Types.h |

Re: [ovs-dev] [PATCH 2/5] NetlinkBuf.c: Netlink buffer mgmt apis.

2014-09-03 Thread Eitan Eliahu
Acked-by: Eitan Eliahu -Original Message- From: dev [mailto:dev-boun...@openvswitch.org] On Behalf Of Ankur Sharma Sent: Tuesday, September 02, 2014 6:05 PM To: dev@openvswitch.org Subject: [ovs-dev] [PATCH 2/5] NetlinkBuf.c: Netlink buffer mgmt apis. In this change we have introduced b

Re: [ovs-dev] [PATCH 1/5] datapath-windows/Netlink: Move netlink files to a new directory.

2014-09-03 Thread Eitan Eliahu
Acked-by: Eitan Eliahu -Original Message- From: dev [mailto:dev-boun...@openvswitch.org] On Behalf Of Ankur Sharma Sent: Tuesday, September 02, 2014 6:04 PM To: dev@openvswitch.org Subject: [ovs-dev] [PATCH 1/5] datapath-windows/Netlink: Move netlink files to a new directory. In this c

Re: [ovs-dev] [PATCH 3/5] NetlinkProto.h: Minor fix for typos and new macro for padding.

2014-09-03 Thread Eitan Eliahu
Acked-by: Eitan Eliahu -Original Message- From: dev [mailto:dev-boun...@openvswitch.org] On Behalf Of Ankur Sharma Sent: Tuesday, September 02, 2014 6:05 PM To: dev@openvswitch.org Subject: [ovs-dev] [PATCH 3/5] NetlinkProto.h: Minor fix for typos and new macro for padding. Added a new

Re: [ovs-dev] [PATCH 5/5] Netlink.c: Added netlink put APIs.

2014-09-03 Thread Eitan Eliahu
In a later change we would like to have these functions inline. Acked-by: Eitan Eliahu -Original Message- From: dev [mailto:dev-boun...@openvswitch.org] On Behalf Of Ankur Sharma Sent: Tuesday, September 02, 2014 6:05 PM To: dev@openvswitch.org Subject: [ovs-dev] [PATCH 5/5] Netlink.c:

Re: [ovs-dev] [patch net-next 01/13] openvswitch: split flow structures into ovs specific and generic ones

2014-09-03 Thread John Fastabend
On 09/03/2014 02:24 AM, Jiri Pirko wrote: After this, flow related structures can be used in other code. Signed-off-by: Jiri Pirko --- Hi Jiri, As I indicated before I'm looking into integrating this with some hardware here. Progress is a bit slow but starting to look at it.The i40e/ixgbe dr

Re: [ovs-dev] [PATCH] vtep: additions to BFD configuration and status reporting

2014-09-03 Thread Gurucharan Shetty
On Tue, Sep 2, 2014 at 1:58 PM, wrote: > From: Ariel Tubaltsev > > This commit adds default values for some BFD configuration keys > (bfd_config_local:bfd_dst_mac and bfd_params:enable). It also adds new > BFD status keys (bfd_enabled and bfd_info). > > Signed-off-by: Ariel Tubaltsev > Signed-o

Re: [ovs-dev] [PATCH v6 00/18] Rapid Spanning Tree Protocol

2014-09-03 Thread Daniele Venturino
I looked and applied the patches. They’re good to me, I just have some notes on patch 13/18 and 16/18. @@ -108,9 +121,9 @@ process_received_bpdu(struct rstp_port *p, const void > *bpdu, size_t bpdu_size) > memcpy(&p->received_bpdu_buffer, bpdu, sizeof(struct rstp_bpdu)); > rstp

Re: [ovs-dev] [patch net-next 03/13] net: introduce generic switch devices support

2014-09-03 Thread John Fastabend
On 09/03/2014 02:24 AM, Jiri Pirko wrote: The goal of this is to provide a possibility to suport various switch chips. Drivers should implement relevant ndos to do so. Now there is a couple of ndos defines: - for getting physical switch id is in place. - for work with flows. Note that user can u

Re: [ovs-dev] [PATCH 1/5] datapath-windows/Netlink: Move netlink files to a new directory.

2014-09-03 Thread Alin Serdean
Hi Ankur, Just a small nit I you use "git format-patch" could you also add the -M option? Thank you, Alin. -Mesaj original- De la: dev [mailto:dev-boun...@openvswitch.org] În numele Ankur Sharma Trimis: Wednesday, September 3, 2014 4:04 AM Către: dev@openvswitch.org Subiect: [ovs-dev] [

Re: [ovs-dev] [Patch] Documentation for DPDK IVSHMEM VM Communications

2014-09-03 Thread Polehn, Mike A
The setup for packet transfer between the switch and VM by shared memory (IVSHMEM) is moderately complex and most details are not easily found. Also this is a different transfer method than user side vhost which copies between the separate memory spaces at a cost of slower packet rate or higher

Re: [ovs-dev] [PATCH 1/5] datapath-windows/Netlink: Move netlink files to a new directory.

2014-09-03 Thread Ankur Sharma
Hi Alin, Sure. Sorry i missed that. Do you want me to spin up a v2 with -M enabled in format-patch? Thanks. Regards, Ankur From: Alin Serdean Sent: Wednesday, September 3, 2014 9:29 AM To: Ankur Sharma; dev@openvswitch.org Subject: RE: [ovs-dev] [PATCH 1

Re: [ovs-dev] [patch net-next 10/13] openvswitch: add support for datapath hardware offload

2014-09-03 Thread John Fastabend
On 09/03/2014 02:24 AM, Jiri Pirko wrote: Benefit from the possibility to work with flows in switch devices and use the swdev api to offload flow datapath. Signed-off-by: Jiri Pirko --- net/openvswitch/Makefile | 3 +- net/openvswitch/datapath.c | 33 ++ net/openvswitch/dat

[ovs-dev] OVS-on-HyperV: Agenda for IRC meeting on 9/3

2014-09-03 Thread Eitan Eliahu
Hi, here are some items we would like to follow up on. Please feel free to add anything you would like to discuss. NetLink -- i) #Action-item: Alin to send out patches for dpif-linux.c soon. ii) Sam will be working on the vport commands - dump and add to start with, and the rest late

Re: [ovs-dev] [PATCH 1/5] datapath-windows/Netlink: Move netlink files to a new directory.

2014-09-03 Thread Alin Serdean
Please. I will look over the other patches after the meeting :). Alin. -Mesaj original- De la: Ankur Sharma [mailto:ankursha...@vmware.com] Trimis: Wednesday, September 3, 2014 7:34 PM Către: Alin Serdean; dev@openvswitch.org Subiect: RE: [ovs-dev] [PATCH 1/5] datapath-windows/Netlink:

Re: [ovs-dev] [Patch] Documentation for DPDK IVSHMEM VM Communications

2014-09-03 Thread Flavio Leitner
On Fri, Aug 29, 2014 at 03:54:08PM -0700, Pravin Shelar wrote: > On Fri, Aug 15, 2014 at 7:07 AM, Polehn, Mike A > wrote: > > Adds documentation on how to run IVSHMEM communication through VM. > > > I think INSTALL.DPDK is getting rather large and hard to understand > with all details. > so I dro

[ovs-dev] [PATCH] Makefiles: Add $(AM_V_GEN) annotations to clean up "make" output.

2014-09-03 Thread Ben Pfaff
The Open vSwitch "make" output was still pretty verbose even when configured with --enable-silent-rules. This cleans it up. Signed-off-by: Ben Pfaff --- I tested that this yields good output with the following travis build: https://travis-ci.org/openvswitch/ovs/builds/34310033 Have I men

Re: [ovs-dev] [patch net-next 01/13] openvswitch: split flow structures into ovs specific and generic ones

2014-09-03 Thread Pravin Shelar
On Wed, Sep 3, 2014 at 2:24 AM, Jiri Pirko wrote: > After this, flow related structures can be used in other code. > > Signed-off-by: Jiri Pirko > --- > include/net/sw_flow.h | 99 ++ > net/openvswitch/actions.c | 3 +- > net/openvswitch/datapath.

Re: [ovs-dev] [patch net-next 01/13] openvswitch: split flow structures into ovs specific and generic ones

2014-09-03 Thread Pravin Shelar
On Wed, Sep 3, 2014 at 8:20 AM, John Fastabend wrote: > On 09/03/2014 02:24 AM, Jiri Pirko wrote: >> >> After this, flow related structures can be used in other code. >> >> Signed-off-by: Jiri Pirko >> --- > > > Hi Jiri, > > As I indicated before I'm looking into integrating this with some > hard

[ovs-dev] [v5 1/2] datapath: Remove recirc stack depth limit check

2014-09-03 Thread Andy Zhou
Future patches will change the recirc action implementation to not using recursion. The stack depth detection is no longer necessary. Signed-off-by: Andy Zhou --- v4->v5: no change --- datapath/actions.c | 63 - datapath/datapath.c | 6 ++--

[ovs-dev] [v5 2/2] datapath: Implement recirc action without recursion

2014-09-03 Thread Andy Zhou
Since kernel stack is limited in size, it is not wise to using recursive function with large stack frames. This patch provides an alternative implementation of recirc action without using recursion. A per CPU fixed sized, 'deferred action FIFO', is used to store either recirc or sample actions en

Re: [ovs-dev] [PATCH 5/5] Netlink.c: Added netlink put APIs.

2014-09-03 Thread Alin Serdean
Acked-by: Alin Gabriel Serdean -Mesaj original- De la: dev [mailto:dev-boun...@openvswitch.org] În numele Ankur Sharma Trimis: Tuesday, September 2, 2014 6:05 PM Către: dev@openvswitch.org Subiect: [ovs-dev] [PATCH 5/5] Netlink.c: Added netlink put APIs. In this change we have added the

Re: [ovs-dev] [PATCH 4/5] OvsTypes.h : Added support for BE16

2014-09-03 Thread Alin Serdean
Acked-by: Alin Gabriel Serdean -Mesaj original- De la: dev [mailto:dev-boun...@openvswitch.org] În numele Ankur Sharma Trimis: Tuesday, September 2, 2014 6:05 PM Către: dev@openvswitch.org Subiect: [ovs-dev] [PATCH 4/5] OvsTypes.h : Added support for BE16 --- datapath-windows/ovsext/Typ

Re: [ovs-dev] [PATCH 3/5] NetlinkProto.h: Minor fix for typos and new macro for padding.

2014-09-03 Thread Alin Serdean
Acked-by: Alin Gabriel Serdean -Mesaj original- De la: dev [mailto:dev-boun...@openvswitch.org] În numele Ankur Sharma Trimis: Tuesday, September 2, 2014 6:05 PM Către: dev@openvswitch.org Subiect: [ovs-dev] [PATCH 3/5] NetlinkProto.h: Minor fix for typos and new macro for padding. Adde

Re: [ovs-dev] [PATCH 2/5] NetlinkBuf.c: Netlink buffer mgmt apis.

2014-09-03 Thread Alin Serdean
Maybe just rename NL_BUF with NL_BUFFER otherwise I am fine with the patch. Acked-by: Alin Gabriel Serdean -Mesaj original- De la: dev [mailto:dev-boun...@openvswitch.org] În numele Ankur Sharma Trimis: Tuesday, September 2, 2014 6:05 PM Către: dev@openvswitch.org Subiect: [ovs-dev] [PAT

Re: [ovs-dev] [PATCH 1/5] datapath-windows/Netlink: Move netlink files to a new directory.

2014-09-03 Thread Ankur Sharma
Hi Alin, Thanks for reviewing the patches. I'll spin up a v2 with following changes. a. Use format-patch with -M for 1/5 b. Rename NL_BUF to NL_BUFFER. Is it ok if i put your name along with Eitan's in Ack-By while submitting v2 or would like to review v2 then let me add your name to Ack-by? T

Re: [ovs-dev] [PATCH 1/5] datapath-windows/Netlink: Move netlink files to a new directory.

2014-09-03 Thread Alin Serdean
Sure be my guest :). -Mesaj original- De la: Ankur Sharma [mailto:ankursha...@vmware.com] Trimis: Wednesday, September 3, 2014 1:14 PM Către: Alin Serdean; dev@openvswitch.org Subiect: RE: [ovs-dev] [PATCH 1/5] datapath-windows/Netlink: Move netlink files to a new directory. Hi Alin, T

Re: [ovs-dev] [PATCH 2/2] dpif-netdev: Introduce port_try_ref() to prevent a race.

2014-09-03 Thread Alex Wang
After discussing with Pravin offline, it is good to use first get the reference and then access the 'port->netdev' for pmd check. So, use a nested if statement: @@ -1864,20 +1874,27 @@ pmd_load_queues(struct pmd_thread *f, index = 0; CMAP_FOR_EACH (port, node, &f->dp->ports) { -

Re: [ovs-dev] [PATCH] ovs-atomics: Add atomic support for Windows.

2014-09-03 Thread Gurucharan Shetty
On Thu, Aug 28, 2014 at 4:39 PM, Jarno Rajahalme wrote: > > On Aug 28, 2014, at 9:57 AM, Gurucharan Shetty wrote: >> diff --git a/lib/ovs-atomic-msvc.h b/lib/ovs-atomic-msvc.h >> new file mode 100644 >> index 000..f357545 >> --- /dev/null >> +++ b/lib/ovs-atomic-msvc.h >> @@ -0,0 +1,370 @@ >>

[ovs-dev] [PATCH v2] ovs-atomics: Add atomic support Windows.

2014-09-03 Thread Gurucharan Shetty
Before this change (i.e., with pthread locks for atomics on Windows), the benchmark for cmap and hmap was as follows: $ ./tests/ovstest.exe test-cmap benchmark 1000 3 1 Benchmarking with n=1000, 3 threads, 1.00% mutations: cmap insert: 61070 ms cmap iterate: 2750 ms cmap search: 14238 m

Re: [ovs-dev] [patch net-next 01/13] openvswitch: split flow structures into ovs specific and generic ones

2014-09-03 Thread Jamal Hadi Salim
On 09/03/14 11:20, John Fastabend wrote: Also I have some filters that can match on offset/length/mask tuples. As far as I can tell this is going to have to be yet another interface? Or would it be worth the effort to define the flow key more generically. My initial guess is I'll just write a se

Re: [ovs-dev] [patch net-next 01/13] openvswitch: split flow structures into ovs specific and generic ones

2014-09-03 Thread Jamal Hadi Salim
On 09/03/14 14:41, Pravin Shelar wrote: On Wed, Sep 3, 2014 at 2:24 AM, Jiri Pirko wrote: HW offload API should be separate from OVS module. The above part i agree with. Infact it is very odd that it seems hard to get this point across ;-> This has following advantages. 1. It can be manag

Re: [ovs-dev] [patch net-next 01/13] openvswitch: split flow structures into ovs specific and generic ones

2014-09-03 Thread Pravin Shelar
On Wed, Sep 3, 2014 at 2:22 PM, Jamal Hadi Salim wrote: > On 09/03/14 14:41, Pravin Shelar wrote: >> >> On Wed, Sep 3, 2014 at 2:24 AM, Jiri Pirko wrote: > > >> HW offload API should be separate from OVS module. > > > The above part i agree with. Infact it is very odd that it seems > hard to get

Re: [ovs-dev] [Patch] Documentation for DPDK IVSHMEM VM Communications

2014-09-03 Thread Pravin Shelar
On Wed, Sep 3, 2014 at 9:31 AM, Polehn, Mike A wrote: > The setup for packet transfer between the switch and VM by shared memory > (IVSHMEM) is moderately complex and most details are not easily found. Also > this is a different transfer method than user side vhost which copies between > the s

Re: [ovs-dev] [Patch] Documentation for DPDK IVSHMEM VM Communications

2014-09-03 Thread Pravin Shelar
On Wed, Sep 3, 2014 at 10:14 AM, Flavio Leitner wrote: > On Fri, Aug 29, 2014 at 03:54:08PM -0700, Pravin Shelar wrote: >> On Fri, Aug 15, 2014 at 7:07 AM, Polehn, Mike A >> wrote: >> > Adds documentation on how to run IVSHMEM communication through VM. >> > >> I think INSTALL.DPDK is getting rat

Re: [ovs-dev] [PATCH 2/2] dpif-netdev: Introduce port_try_ref() to prevent a race.

2014-09-03 Thread Pravin Shelar
On Wed, Sep 3, 2014 at 1:24 PM, Alex Wang wrote: > After discussing with Pravin offline, it is good to use first get the > reference > and then access the 'port->netdev' for pmd check. > > So, use a nested if statement: > > @@ -1864,20 +1874,27 @@ pmd_load_queues(struct pmd_thread *f, > index

Re: [ovs-dev] [v5 2/2] datapath: Implement recirc action without recursion

2014-09-03 Thread Pravin Shelar
On Wed, Sep 3, 2014 at 1:05 PM, Andy Zhou wrote: > Since kernel stack is limited in size, it is not wise to using > recursive function with large stack frames. > > This patch provides an alternative implementation of recirc action > without using recursion. > > A per CPU fixed sized, 'deferred act

Re: [ovs-dev] [patch net-next 07/13] dsa: implement ndo_swdev_get_id

2014-09-03 Thread Florian Fainelli
On 09/03/2014 02:24 AM, Jiri Pirko wrote: > Signed-off-by: Jiri Pirko > --- > include/linux/netdevice.h | 3 ++- > include/net/dsa.h | 1 + > net/dsa/Kconfig | 2 +- > net/dsa/dsa.c | 3 +++ > net/dsa/slave.c | 10 ++ > 5 files changed, 17 inser

[ovs-dev] [PATCH v2 0/6] datapath-windows: Netlink put apis.

2014-09-03 Thread Ankur Sharma
This series contains changes for providing Netlink PUT Apis in windows kernel. Ankur Sharma (6): datapath-windows/Netlink: Move netlink files to a new directory. NetlinkBuf.c: Netlink buffer mgmt apis. NetlinkProto.h: Minor fix for typos and new macro for padding. OvsTypes.h : Added suppor

[ovs-dev] [PATCH v2 1/6] datapath-windows/Netlink: Move netlink files to a new directory.

2014-09-03 Thread Ankur Sharma
In this change we have created a new directory named Netlink inside datapath-windows/ovsext/. This directory will be used to keep all the netlink related files. The reason we have created new directory is that for 'put' related APIs we will be adding netlink buffer mgmt files as well. These files

[ovs-dev] [PATCH v2 4/6] OvsTypes.h : Added support for BE16

2014-09-03 Thread Ankur Sharma
Signed-off-by: Ankur Sharma Tested-by: Ankur Sharma Reported-at: https://github.com/openvswitch/ovs-issues/issues/37 Acked-by: Eitan Eliahu Acked-by: Alin Gabriel Serdean --- datapath-windows/ovsext/Types.h | 1 + 1 file changed, 1 insertion(+) diff --git a/datapath-windows/ovsext/Types.h b/

[ovs-dev] [PATCH v2 3/6] NetlinkProto.h: Minor fix for typos and new macro for padding.

2014-09-03 Thread Ankur Sharma
Added a new macro for calculating the number of bytes required for padding. Fixed a minor typo. Signed-off-by: Ankur Sharma Tested-by: Ankur Sharma Reported-at: https://github.com/openvswitch/ovs-issues/issues/37 Acked-by: Eitan Eliahu Acked-by: Alin Gabriel Serdean --- datapath-windows/ovse

[ovs-dev] [PATCH v2 6/6] NetlinkBuf.c: Minor fix for lines exceeding 79 chars

2014-09-03 Thread Ankur Sharma
Signed-off-by: Ankur Sharma Tested-by: Ankur Sharma Reported-at: https://github.com/openvswitch/ovs-issues/issues/37 Acked-by: Eitan Eliahu Acked-by: Alin Gabriel Serdean --- datapath-windows/ovsext/Netlink/NetlinkBuf.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --gi

[ovs-dev] [PATCH v2 2/6] NetlinkBuf.c: Netlink buffer mgmt apis.

2014-09-03 Thread Ankur Sharma
In this change we have introduced buffer mgmt apis which will be used while creating netlink messages. The basic functionality provided by apis is on similar lines to ofpbuf in userspace with an exception that it will not do run time buffer reallocation. Signed-off-by: Ankur Sharma Tested-by: Ank

[ovs-dev] [PATCH v2 5/6] Netlink.c: Added netlink put APIs.

2014-09-03 Thread Ankur Sharma
In this change we have added the APIs for putting netlink headers, attributes in a buffer. The buffer is managed through NetlinkBuf.[c|h]. Signed-off-by: Ankur Sharma Tested-by: Ankur Sharma Reported-at: https://github.com/openvswitch/ovs-issues/issues/37 Acked-by: Eitan Eliahu Acked-by: Alin

[ovs-dev] [PATCH v2 2/6] NetlinkBuf.c: Netlink buffer mgmt apis.

2014-09-03 Thread Ankur Sharma
In this change we have introduced buffer mgmt apis which will be used while creating netlink messages. The basic functionality provided by apis is on similar lines to ofpbuf in userspace with an exception that it will not do run time buffer reallocation. Signed-off-by: Ankur Sharma Tested-by: Ank

[ovs-dev] [v5 2/2] datapath: Implement recirc action without recursion

2014-09-03 Thread Andy Zhou
Since kernel stack is limited in size, it is not wise to using recursive function with large stack frames. This patch provides an alternative implementation of recirc action without using recursion. A per CPU fixed sized, 'deferred action FIFO', is used to store either recirc or sample actions en

[ovs-dev] [v5 1/2] datapath: Remove recirc stack depth limit check

2014-09-03 Thread Andy Zhou
Future patches will change the recirc action implementation to not using recursion. The stack depth detection is no longer necessary. Signed-off-by: Andy Zhou Acked-by: Pravin B Shelar --- datapath/actions.c | 63 - datapath/datapath.c | 6 +

Re: [ovs-dev] [RFC] Proposal for enhanced select groups

2014-09-03 Thread Simon Horman
On Tue, Sep 02, 2014 at 06:55:14PM -0700, Jesse Gross wrote: > On Mon, Sep 1, 2014 at 1:10 AM, Simon Horman > wrote: > > On Thu, Aug 28, 2014 at 10:12:49AM +0900, Simon Horman wrote: > >> On Wed, Aug 27, 2014 at 03:03:53PM -0500, Jesse Gross wrote: > >> > On Wed, Aug 27, 2014 at 11:51 AM, Ben Pfa

Re: [ovs-dev] [patch net-next 01/13] openvswitch: split flow structures into ovs specific and generic ones

2014-09-03 Thread Jamal Hadi Salim
On 09/03/14 17:59, Pravin Shelar wrote: Both of us are saying same thing. What I meant was for OVS use-case, where OVS wants to use offload for switching flows, vswitchd userspace process can program HW offload using kernel HW offload APIs directly from userspace, rather than going through OVS k

[ovs-dev] [PATCH] Windows NetLink Socket - Support for asynchronous event notification

2014-09-03 Thread Eitan Eliahu
We keep an outstanding, out of band, I/O request in the driver at all time. Once an event generated the driver queues the event message, completes the pending I/O and unblocks the calling thread through setting the event in the overlapped structure n the NL socket. The thread will read all all eve

[ovs-dev] [PATCH v1] Windows NetLink Socket - Support for asynchronous event notification

2014-09-03 Thread Eitan Eliahu
We keep an outstanding, out of band, I/O request in the driver at all time. Once an event generated the driver queues the event message, completes the pending I/O and unblocks the calling thread through setting the event in the overlapped structure n the NL socket. The thread will read all all eve