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

2015-06-28 Thread Jiri Pirko
Mon, Jun 29, 2015 at 07:44:38AM CEST, neelugad...@gmail.com wrote: >Hi All, > >Shall we expect these changes to be available in the upcoming 2.4 release? >or is it still in development? Still in devel. > > > > > > >On Tue, Sep 16, 2014 at 9:28 PM, Jiri Pirko wr

Re: [ovs-dev] [patch net-next v2 8/9] switchdev: introduce Netlink API

2014-09-22 Thread Jiri Pirko
Sat, Sep 20, 2014 at 01:32:30PM CEST, j...@mojatatu.com wrote: >On 09/20/14 07:01, Thomas Graf wrote: > >>Nothing speaks against having such a tc classifier. In fact, having >>the interface consist of only an embedded Netlink attribute structure >>would allow for such a classifier in a very straigh

Re: [ovs-dev] [patch net-next v2 8/9] switchdev: introduce Netlink API

2014-09-20 Thread Jiri Pirko
Sat, Sep 20, 2014 at 07:21:10PM CEST, sfel...@cumulusnetworks.com wrote: > >On Sep 20, 2014, at 5:51 AM, Roopa Prabhu wrote: > >> On 9/20/14, 1:10 AM, Scott Feldman wrote: >>> On Sep 19, 2014, at 8:41 PM, Roopa Prabhu >>> wrote: >>> >&

Re: [ovs-dev] [patch net-next v2 8/9] switchdev: introduce Netlink API

2014-09-20 Thread Jiri Pirko
Sat, Sep 20, 2014 at 07:39:51AM CEST, f.faine...@gmail.com wrote: >On 09/19/14 15:18, Jamal Hadi Salim wrote: >>On 09/19/14 18:12, John Fastabend wrote: >>>On 09/19/2014 10:57 AM, Jamal Hadi Salim wrote: >>>>On 09/19/14 11:49, Jiri Pirko wrote: >>>&g

Re: [ovs-dev] [patch net-next v2 8/9] switchdev: introduce Netlink API

2014-09-20 Thread Jiri Pirko
Sat, Sep 20, 2014 at 12:18:02AM CEST, j...@mojatatu.com wrote: >On 09/19/14 18:12, John Fastabend wrote: >>On 09/19/2014 10:57 AM, Jamal Hadi Salim wrote: >>>On 09/19/14 11:49, Jiri Pirko wrote: >>>>Fri, Sep 19, 2014 at 05:25:48PM CEST, j...@mojatatu.com wrote: >

Re: [ovs-dev] [patch net-next v2 8/9] switchdev: introduce Netlink API

2014-09-20 Thread Jiri Pirko
Sat, Sep 20, 2014 at 12:12:12AM CEST, john.r.fastab...@intel.com wrote: >On 09/19/2014 10:57 AM, Jamal Hadi Salim wrote: >> On 09/19/14 11:49, Jiri Pirko wrote: >>> Fri, Sep 19, 2014 at 05:25:48PM CEST, j...@mojatatu.com wrote: >> >>>> Is this just a tempo

Re: [ovs-dev] [patch net-next v2 8/9] switchdev: introduce Netlink API

2014-09-20 Thread Jiri Pirko
Sat, Sep 20, 2014 at 05:41:16AM CEST, ro...@cumulusnetworks.com wrote: >On 9/19/14, 8:49 AM, Jiri Pirko wrote: >>Fri, Sep 19, 2014 at 05:25:48PM CEST, j...@mojatatu.com wrote: >>>On 09/19/14 09:49, Jiri Pirko wrote: >>>>This patch exposes switchdev API using generic

Re: [ovs-dev] [patch net-next v2 5/9] net: introduce dummy switch

2014-09-20 Thread Jiri Pirko
Sat, Sep 20, 2014 at 07:21:00AM CEST, f.faine...@gmail.com wrote: >On 09/19/14 06:49, Jiri Pirko wrote: >>Dummy switch implementation using switchdev interface > >This really looks like a DSA driver that has 0 ports, and is not attached to >an useful network interface, and which

Re: [ovs-dev] [patch net-next v2 6/9] switchdev: add basic support for flow matching and actions

2014-09-20 Thread Jiri Pirko
Sat, Sep 20, 2014 at 07:32:08AM CEST, f.faine...@gmail.com wrote: >On 09/19/14 06:49, Jiri Pirko wrote: >>This patch adds basic support for flows. The infrastructure is prepared >>to easily add another flow matching types. So far, only the key one is >>implemented. >>

Re: [ovs-dev] [patch net-next v2 8/9] switchdev: introduce Netlink API

2014-09-19 Thread Jiri Pirko
Fri, Sep 19, 2014 at 05:25:48PM CEST, j...@mojatatu.com wrote: >On 09/19/14 09:49, Jiri Pirko wrote: >>This patch exposes switchdev API using generic Netlink. >>Example userspace utility is here: >>https://github.com/jpirko/switchdev >> > >Is this just a temporar

Re: [ovs-dev] [patch net-next v2 0/9] introduce rocker switch driver with hardware accelerated datapath api

2014-09-19 Thread Jiri Pirko
Fri, Sep 19, 2014 at 04:15:32PM CEST, david.lai...@aculab.com wrote: >From: Jiri Pirko >> This patchset can be divided into 3 main sections: >> - introduce switchdev api for implementing switch drivers >> - introduce switchdev generic netlink api for userspace manipulation

[ovs-dev] [patch net-next v2 9/9] rocker: introduce rocker switch driver

2014-09-19 Thread Jiri Pirko
. Signed-off-by: Scott Feldman Signed-off-by: Jiri Pirko --- MAINTAINERS |6 + drivers/net/ethernet/Kconfig |1 + drivers/net/ethernet/Makefile|1 + drivers/net/ethernet/rocker/Kconfig | 29 + drivers/net/ethernet/rocker/Makefile |5 + drivers

[ovs-dev] [patch net-next v2 8/9] switchdev: introduce Netlink API

2014-09-19 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| 113 ++ net/switchdev/Kconfig | 11

[ovs-dev] [patch net-next v2 7/9] switchdev: add swdev features

2014-09-19 Thread Jiri Pirko
Driver should define ndo_swdev_festures_get and indicate which switch features it supports. Signed-off-by: Jiri Pirko --- include/linux/netdevice.h | 5 + include/net/switchdev.h | 18 ++ net/switchdev/switchdev.c | 33 + 3 files changed

[ovs-dev] [patch net-next v2 4/9] net-sysfs: expose physical switch id for particular device

2014-09-19 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..87b97bc 100644 --- a/net/core/net-sysfs.c +++ b/net/core/net-sysfs.c @@ -12,6 +12,7 @@ #include #include

[ovs-dev] [patch net-next v2 5/9] net: introduce dummy switch

2014-09-19 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

[ovs-dev] [patch net-next v2 6/9] switchdev: add basic support for flow matching and actions

2014-09-19 Thread Jiri Pirko
This patch adds basic support for flows. The infrastructure is prepared to easily add another flow matching types. So far, only the key one is implemented. Signed-off-by: Jiri Pirko --- include/linux/netdevice.h | 16 ++ include/net/switchdev.h | 113

[ovs-dev] [patch net-next v2 3/9] rtnl: expose physical switch id for particular device

2014-09-19 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

[ovs-dev] [patch net-next v2 2/9] net: introduce generic switch devices support

2014-09-19 Thread Jiri Pirko
on. diff --git a/MAINTAINERS b/MAINTAINERS index 5e3709e..f1f26db 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -8826,6 +8826,13 @@ F: lib/swiotlb.c F: arch/*/kernel/pci-swiotlb.c F: include/linux/swiotlb.h +SWITCHDEV +M: Jiri Pirko +L: net...@vger.kernel.org +S: Suppo

[ovs-dev] [patch net-next v2 0/9] introduce rocker switch driver with hardware accelerated datapath api

2014-09-19 Thread Jiri Pirko
hdev/ - moved drivers/net/rocker.* -> drivers/net/ethernet/rocker/ - fixed couple of little bugs and typos - in dsa the switch id is generated randomly - fixed rocker schedule in atomic context bug in rocker_port_set_rx_mode - added switchdev Netlink API Jiri Pirko (9): net: rename netdev_phys

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

2014-09-17 Thread Jiri Pirko
Thu, Sep 04, 2014 at 10:46:28PM CEST, pshe...@nicira.com wrote: >On Thu, Sep 4, 2014 at 5:33 AM, Jiri Pirko wrote: >> Wed, Sep 03, 2014 at 08:41:39PM CEST, pshe...@nicira.com wrote: >>>On Wed, Sep 3, 2014 at 2:24 AM, Jiri Pirko wrote: >>>> After this, flow related s

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

2014-09-16 Thread Jiri Pirko
Mon, Sep 08, 2014 at 03:54:13PM CEST, tg...@suug.ch wrote: >On 09/03/14 at 11:24am, Jiri Pirko wrote: >> This patchset can be divided into 3 main sections: >> - introduce switchdev api for implementing switch drivers >> - add hardware acceleration bits into openvswitc

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

2014-09-04 Thread Jiri Pirko
Fri, Sep 05, 2014 at 06:43:23AM CEST, n...@openwrt.org wrote: >On 2014-09-04 14:47, Jiri Pirko wrote: >> Thu, Sep 04, 2014 at 01:20:58AM CEST, f.faine...@gmail.com wrote: >>>On 09/03/2014 02:24 AM, Jiri Pirko wrote: >>>> Signed-off-by: Jiri Pirko >>>>

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

2014-09-04 Thread Jiri Pirko
Wed, Sep 03, 2014 at 06:37:08PM CEST, john.fastab...@gmail.com wrote: >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 >>

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

2014-09-04 Thread Jiri Pirko
Wed, Sep 03, 2014 at 05:46:23PM CEST, john.fastab...@gmail.com wrote: >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

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

2014-09-04 Thread Jiri Pirko
Thu, Sep 04, 2014 at 01:20:58AM CEST, f.faine...@gmail.com wrote: >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 +- &

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

2014-09-04 Thread Jiri Pirko
Wed, Sep 03, 2014 at 08:41:39PM CEST, pshe...@nicira.com wrote: >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 >> --- >> inc

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

2014-09-04 Thread Jiri Pirko
Wed, Sep 03, 2014 at 08:42:18PM CEST, pshe...@nicira.com wrote: >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. >>> >>> Sig

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

2014-09-04 Thread Jiri Pirko
Wed, Sep 03, 2014 at 05:20:25PM CEST, john.fastab...@gmail.com 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&#x

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

2014-09-04 Thread Jiri Pirko
Thu, Sep 04, 2014 at 11:23:35AM CEST, simon.hor...@netronome.com wrote: >On Thu, Sep 04, 2014 at 11:09:26AM +0200, Jiri Pirko wrote: >> Thu, Sep 04, 2014 at 11:03:46AM CEST, simon.hor...@netronome.com wrote: >> >On Sat, Aug 23, 2014 at 10:09:13AM -0700, John Fastabend wrote: >

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

2014-09-04 Thread Jiri Pirko
Thu, Sep 04, 2014 at 11:04:49AM CEST, simon.hor...@netronome.com wrote: >Hi Jiri, > >sorry for coming a little late to the party. >I'm very happy to see work in this area. > >On Thu, Aug 21, 2014 at 06:19:03PM +0200, Jiri Pirko wrote: >> Benefit from the possibility

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

2014-09-04 Thread Jiri Pirko
Thu, Sep 04, 2014 at 11:03:46AM CEST, simon.hor...@netronome.com wrote: >On Sat, Aug 23, 2014 at 10:09:13AM -0700, John Fastabend wrote: >>On 08/23/2014 07:51 AM, Thomas Graf wrote: >>>On 08/23/14 at 11:24am, Jiri Pirko wrote: >>>>Sat, Aug 23, 2014 at 12:53:34AM CES

[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

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

2014-09-03 Thread Jiri Pirko
. Signed-off-by: Scott Feldman Signed-off-by: Jiri Pirko --- MAINTAINERS |6 + drivers/net/ethernet/Kconfig |1 + drivers/net/ethernet/Makefile|1 + drivers/net/ethernet/rocker/Kconfig | 29 + drivers/net/ethernet/rocker/Makefile |5 + drivers

[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

[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

[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

[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

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

2014-09-03 Thread Jiri Pirko
drivers/net/ethernet/rocker/ - fixed couple of little bugs and typos - in dsa the switch id is generated randomly - fixed rocker schedule in atomic context bug in rocker_port_set_rx_mode - added switchdev Netlink API Jiri Pirko (13): openvswitch: split flow structures into ovs specific and generi

[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 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

[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

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

2014-09-03 Thread Jiri Pirko
switch. Signed-off-by: Jiri Pirko --- Documentation/networking/switchdev.txt | 53 ++ MAINTAINERS| 7 ++ include/linux/netdevice.h | 28 ++ include/net/sw_flow.h | 14 +++ include/net/switchdev.h| 44

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

2014-09-01 Thread Jiri Pirko
Mon, Sep 01, 2014 at 06:37:05PM CEST, j...@mojatatu.com wrote: >On 09/01/14 04:13, Simon Horman wrote: >>On Fri, Aug 29, 2014 at 10:20:55AM -0400, Jamal Hadi Salim wrote: > >>>I actually have no issues with whatever classifier someone decides >>>to use. To each their poison. But I do take issue man

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

2014-08-29 Thread Jiri Pirko
Sat, Aug 23, 2014 at 04:04:50PM CEST, tg...@suug.ch wrote: >On 08/21/14 at 06:19pm, Jiri Pirko wrote: >> 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 switc

Re: [ovs-dev] [patch net-next RFC 06/12] net: introduce dummy switch

2014-08-29 Thread Jiri Pirko
Tue, Aug 26, 2014 at 09:14:20PM CEST, go...@cumulusnetworks.com wrote: >On Thu, Aug 21, 2014 at 06:18:59PM +0200, Jiri Pirko wrote: >> Dummy switch implementation using switchdev interface >> >[...] >> +if (!data || !data[IFLA_DYMMYSWPORT_PHYS_SWITCH_ID]) >[..

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

2014-08-26 Thread Jiri Pirko
Tue, Aug 26, 2014 at 05:29:10PM CEST, j...@mojatatu.com wrote: >On 08/26/14 11:22, Jiri Pirko wrote: > >>I do not think that really matters. Phase one is flows. After that we >>can focus on l2/l3. If we would be able to fit in in flows (some drivers >>may), then ok. If not

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

2014-08-26 Thread Jiri Pirko
Tue, Aug 26, 2014 at 04:58:54PM CEST, j...@mojatatu.com wrote: >On 08/26/14 10:06, Jiri Pirko wrote: > >>Yes. Flows are phase one. The api will be extended in for whatever is >>needed for l2/l3 as you said. Also I see a possibility to implement the >>l2/l3 use case with fl

Re: [ovs-dev] [patch net-next RFC 02/12] net: rename netdev_phys_port_id to more generic name

2014-08-26 Thread Jiri Pirko
Tue, Aug 26, 2014 at 02:23:24PM CEST, ogerl...@mellanox.com wrote: >On 21/08/2014 19:18, Jiri Pirko wrote: >>--- a/net/core/rtnetlink.c >>+++ b/net/core/rtnetlink.c >>@@ -868,7 +868,7 @@ static noinline size_t if_nlmsg_size(const struct >>net_device *dev, >>

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

2014-08-26 Thread Jiri Pirko
Tue, Aug 26, 2014 at 03:50:21PM CEST, ro...@cumulusnetworks.com wrote: >On 8/25/14, 3:50 PM, Thomas Graf wrote: >>On 08/25/14 at 12:15pm, Jamal Hadi Salim wrote: >>>On 08/25/14 10:17, Thomas Graf wrote: On 08/25/14 at 09:53am, Jamal Hadi Salim wrote: fdb_add() *is* flow based. At least in m

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

2014-08-26 Thread Jiri Pirko
Sun, Aug 24, 2014 at 01:46:05PM CEST, tg...@suug.ch wrote: >On 08/21/14 at 06:18pm, Jiri Pirko wrote: >> diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h >> index 39294b9..8b5d14c 100644 >> --- a/include/linux/netdevice.h >> +++ b/include/linux/ne

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

2014-08-26 Thread Jiri Pirko
Fri, Aug 22, 2014 at 09:08:39PM CEST, john.fastab...@gmail.com wrote: >On 08/21/2014 09:18 AM, Jiri Pirko wrote: >>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 sw

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

2014-08-23 Thread Jiri Pirko
Sat, Aug 23, 2014 at 12:53:34AM CEST, sfel...@cumulusnetworks.com wrote: > >On Aug 22, 2014, at 12:39 PM, John Fastabend wrote: > >> On 08/21/2014 09:19 AM, Jiri Pirko wrote: >>> Benefit from the possibility to work with flows in switch devices and >>> use the s

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

2014-08-23 Thread Jiri Pirko
Sat, Aug 23, 2014 at 03:02:10AM CEST, f.faine...@gmail.com wrote: >2014-08-22 5:56 GMT-07:00 Jiri Pirko : >> Fri, Aug 22, 2014 at 02:42:04PM CEST, j...@mojatatu.com wrote: >>>On 08/21/14 13:05, Florian Fainelli wrote: >>>>2014-08-21 9:18 GMT-07:00 Jiri Pirko : >>

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

2014-08-22 Thread Jiri Pirko
Fri, Aug 22, 2014 at 02:42:04PM CEST, j...@mojatatu.com wrote: >On 08/21/14 13:05, Florian Fainelli wrote: >>2014-08-21 9:18 GMT-07:00 Jiri Pirko : >>>The goal of this is to provide a possibility to suport various switch >>>chips. Drivers should implement relevant nd

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

2014-08-21 Thread Jiri Pirko
Thu, Aug 21, 2014 at 06:56:13PM CEST, f.faine...@gmail.com wrote: >2014-08-21 9:19 GMT-07:00 Jiri Pirko : >> Signed-off-by: Jiri Pirko >> --- >> net/dsa/Kconfig | 2 +- >> net/dsa/slave.c | 16 >> 2 files changed, 17 insertions(+), 1 delet

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

2014-08-21 Thread Jiri Pirko
Thu, Aug 21, 2014 at 06:41:23PM CEST, b...@decadent.org.uk wrote: >On Thu, 2014-08-21 at 18:18 +0200, 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 >> c

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

2014-08-21 Thread Jiri Pirko
. Signed-off-by: Scott Feldman Signed-off-by: Jiri Pirko --- MAINTAINERS |6 + drivers/net/Kconfig |8 + drivers/net/Makefile |2 + drivers/net/rocker.c | 3446 ++ drivers/net/rocker.h | 465 +++ 5 files changed, 3927 insertions

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

2014-08-21 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 RFC 10/12] openvswitch: add support for datapath hardware offload

2014-08-21 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 --- include/linux/sw_flow.h| 14 +++ net/openvswitch/Makefile | 3 +- net/openvswitch/datapath.c | 33 ++ net/openvswitch

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

2014-08-21 Thread Jiri Pirko
Signed-off-by: Jiri Pirko --- include/linux/sw_flow.h | 3 +++ net/core/switchdev.c | 10 ++ net/openvswitch/hw_offload.c | 23 +++ 3 files changed, 36 insertions(+) diff --git a/include/linux/sw_flow.h b/include/linux/sw_flow.h index 079d065..e2ee54a

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

2014-08-21 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 8b5d14c..b48028d 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h

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

2014-08-21 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| 131 +++ include/uapi/linux/if_link.h | 9 +++ 4 files

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

2014-08-21 Thread Jiri Pirko
Signed-off-by: Jiri Pirko --- net/dsa/Kconfig | 2 +- net/dsa/slave.c | 16 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/net/dsa/Kconfig b/net/dsa/Kconfig index f5eede1..66c445a 100644 --- a/net/dsa/Kconfig +++ b/net/dsa/Kconfig @@ -1,6 +1,6 @@ config

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

2014-08-21 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..69e3d64 100644 --- a/net/core/net-sysfs.c +++ b/net/core/net-sysfs.c @@ -12,6 +12,7 @@ #include #include

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

2014-08-21 Thread Jiri Pirko
separate patches. So now there is possible out of the box to create ovs bridge over rocker switch ports and the flows will be offloaded into hardware. Jiri Pirko (12): openvswitch: split flow structures into ovs specific and generic ones net: rename netdev_phys_port_id to more generic name net

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

2014-08-21 Thread Jiri Pirko
After this, flow related structures can be used in other code. Signed-off-by: Jiri Pirko --- include/linux/sw_flow.h| 98 ++ net/openvswitch/actions.c | 3 +- net/openvswitch/datapath.c | 74 +- net/openvswitch

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

2014-08-21 Thread Jiri Pirko
switch. Signed-off-by: Jiri Pirko --- Documentation/networking/switchdev.txt | 53 +++ include/linux/netdevice.h | 28 ++ include/linux/switchdev.h | 44 + net/Kconfig| 6 ++ net/core/Makefile | 1

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

2014-08-21 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

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

2014-04-24 Thread Jiri Pirko
Thu, Apr 24, 2014 at 04:54:19PM CEST, john.fastab...@gmail.com wrote: >On 04/17/2014 05:15 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 >>

Re: [ovs-dev] [patch net-next RFC v3 02/10] net: rename netdev_phys_port_id to more generic name

2014-04-17 Thread Jiri Pirko
Thu, Apr 17, 2014 at 05:01:10PM CEST, step...@networkplumber.org wrote: >On Thu, 17 Apr 2014 14:14:29 +0200 >Jiri Pirko wrote: > >> So this can be reused for identification of other "items" as well. >> >> Signed-off-by: Jiri Pirko >> --- >> driv

[ovs-dev] [patch iproute2 RFC v3 5/5] iproute2: ipa: show port id

2014-04-17 Thread Jiri Pirko
Signed-off-by: Jiri Pirko --- ip/ipaddress.c | 8 1 file changed, 8 insertions(+) diff --git a/ip/ipaddress.c b/ip/ipaddress.c index 43f7296..f794d02 100644 --- a/ip/ipaddress.c +++ b/ip/ipaddress.c @@ -470,6 +470,14 @@ int print_linkinfo(const struct sockaddr_nl *who

[ovs-dev] [patch iproute2 RFC v3 4/5] iproute2: add support for dummyswport

2014-04-17 Thread Jiri Pirko
Signed-off-by: Jiri Pirko --- include/linux/if_link.h | 9 ip/Makefile | 3 ++- ip/iplink_dummyswport.c | 56 + 3 files changed, 67 insertions(+), 1 deletion(-) create mode 100644 ip/iplink_dummyswport.c diff --git a

[ovs-dev] [patch iproute2 RFC v3 2/5] iproute2: utils: change hexstring_n2a and hexstring_a2n to do not work with ":"

2014-04-17 Thread Jiri Pirko
Signed-off-by: Jiri Pirko --- lib/utils.c | 46 +- 1 file changed, 13 insertions(+), 33 deletions(-) diff --git a/lib/utils.c b/lib/utils.c index 4e9c719..e9e1040 100644 --- a/lib/utils.c +++ b/lib/utils.c @@ -743,10 +743,6 @@ char *hexstring_n2a

[ovs-dev] [patch iproute2 RFC v3 1/5] iproute2: arpd: use ll_addr_a2n and ll_addr_n2a

2014-04-17 Thread Jiri Pirko
Signed-off-by: Jiri Pirko --- misc/arpd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/misc/arpd.c b/misc/arpd.c index bfe7de9..0839e3f 100644 --- a/misc/arpd.c +++ b/misc/arpd.c @@ -36,6 +36,7 @@ #include "libnetlink.h" #include "utils.h" +

[ovs-dev] [patch iproute2 RFC v3 3/5] iproute2: ipa: show switch id

2014-04-17 Thread Jiri Pirko
Signed-off-by: Jiri Pirko --- include/linux/if_link.h | 2 ++ ip/ipaddress.c | 8 2 files changed, 10 insertions(+) diff --git a/include/linux/if_link.h b/include/linux/if_link.h index f08505c..2932453 100644 --- a/include/linux/if_link.h +++ b/include/linux/if_link.h

[ovs-dev] [patch net-next RFC v3 0/5] iproute2: support switch chip infrastructure

2014-04-17 Thread Jiri Pirko
Jiri Pirko (5): iproute2: arpd: use ll_addr_a2n and ll_addr_n2a iproute2: utils: change hexstring_n2a and hexstring_a2n to do not work with ":" iproute2: ipa: show switch id iproute2: add support for dummyswport iproute2: ipa: show port id include/linux/if_l

[ovs-dev] [patch net-next RFC v3 06/10] net: introduce dummy switch

2014-04-17 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| 126 +++ include/uapi/linux/if_link.h | 9 4 files

[ovs-dev] [patch net-next RFC v3 09/10] openvswitch: introduce vport_op get_netdev

2014-04-17 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 | 53

[ovs-dev] [patch net-next RFC v3 08/10] net: add netdev_for_each_all_lower_dev_rcu helper

2014-04-17 Thread Jiri Pirko
Signed-off-by: Jiri Pirko --- include/linux/netdevice.h | 18 +- net/core/dev.c| 26 ++ 2 files changed, 27 insertions(+), 17 deletions(-) diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 14bd8b3..bee9673 100644 --- a

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

2014-04-17 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 --- include/linux/sw_flow.h | 16 +++- net/openvswitch/Makefile | 3 +- net/openvswitch/datapath.c | 16 +++- net/openvswitch/hw_offload.c

[ovs-dev] [patch net-next RFC v3 05/10] switchdev: introduce basic support for flows

2014-04-17 Thread Jiri Pirko
This patch adds a couple of ndos which can be used to work with flows. Note that user can use random port netdevice to access the switch. Signed-off-by: Jiri Pirko --- include/linux/netdevice.h | 30 include/linux/switchdev.h | 25 net/core

[ovs-dev] [patch net-next RFC v3 07/10] dsa: implement ndo_swdev_get_id

2014-04-17 Thread Jiri Pirko
Signed-off-by: Jiri Pirko --- net/dsa/slave.c | 16 1 file changed, 16 insertions(+) diff --git a/net/dsa/slave.c b/net/dsa/slave.c index 02c0e17..22855f3 100644 --- a/net/dsa/slave.c +++ b/net/dsa/slave.c @@ -171,6 +171,19 @@ static int dsa_slave_ioctl(struct net_device *dev

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

2014-04-17 Thread Jiri Pirko
The the netdevice represents a port in a switch, it will expose IFLA_PHYS_SWITCH_ID value via rtnl. Two netdevices with a 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

[ovs-dev] [patch net-next RFC v3 00/10] introduce infrastructure for support of switch chip datapath

2014-04-17 Thread Jiri Pirko
which would call sw*dev_ndos to setup the switch according to what the user wants. This would allow a usecase then a user configures bridges, bonds, etc and the switch chip underneath gets configured by that. Any suggestions, feedbacks welcome. Jiri Pirko (10): openvswitch: split flow structures

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

2014-04-17 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. So far, only one ndo for getting physical switch id is in place. Signed-off-by: Jiri Pirko --- Documentation/networking/switchdev.txt | 53

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

2014-04-17 Thread Jiri Pirko
After this, flow related structures can be used in other code. Signed-off-by: Jiri Pirko --- include/linux/sw_flow.h| 108 net/openvswitch/datapath.c | 45 +++ net/openvswitch/datapath.h | 4 +- net/openvswitch/flow.c

Re: [ovs-dev] [patch net-next RFC v2 0/6] introduce infrastructure for support of switch chip datapath

2014-03-27 Thread Jiri Pirko
Thu, Mar 27, 2014 at 06:20:48PM CET, tg...@suug.ch wrote: >On 03/27/14 at 09:27am, Florian Fainelli wrote: >> 2014-03-27 4:02 GMT-07:00 Thomas Graf : >> > There is definitely need beyond an ndo that is capable of >> > adding flows. You mention routes. Another example would be >> > devices capable o

Re: [ovs-dev] [patch net-next RFC v2 0/6] introduce infrastructure for support of switch chip datapath

2014-03-27 Thread Jiri Pirko
Thu, Mar 27, 2014 at 01:32:35PM CET, j...@mojatatu.com wrote: >On 03/27/14 08:00, Thomas Graf wrote: > >>It seems like we reached pretty good consensus on the model. What >>remaining issues do you see with the port model proposed in v2? >> > >Are we really following the same thread? >I dont see any

Re: [ovs-dev] [patch net-next RFC v2 4/6] net: introduce switchdev API

2014-03-27 Thread Jiri Pirko
Thu, Mar 27, 2014 at 12:23:39PM CET, tg...@suug.ch wrote: >On 03/26/14 at 05:31pm, Jiri Pirko wrote: >> switchdev API is designed to allow kernel support for various switch >> chips. >> >> It is the responsibility of a driver to create netdevice instances which >&

Re: [ovs-dev] [patch net-next RFC v2 2/6] skbuff: add "missed_flow" flag

2014-03-27 Thread Jiri Pirko
Thu, Mar 27, 2014 at 11:31:42AM CET, nicolas.dich...@6wind.com wrote: >Le 26/03/2014 17:31, Jiri Pirko a écrit : >>This flag sets incoming switch device in order to let know that the flow >>which the skb is part of is missed. Listener may react to it >>appropriately, >>

Re: [ovs-dev] [patch net-next RFC v2 0/6] introduce infrastructure for support of switch chip datapath

2014-03-27 Thread Jiri Pirko
>The missing bits are roughly: > >- adding IFF_SWITCH_PORT flags to the slave net_device created >- creating the switch master net_device: sw1 >- creating the Switch CPU port net_device: sw1p Yep. DSA should be fairly easy to modify to use switchdev api. > >> >> chee

Re: [ovs-dev] [patch net-next RFC v2 0/6] introduce infrastructure for support of switch chip datapath

2014-03-27 Thread Jiri Pirko
should create and register the switch and switch ports itself. > >cheers, >jamal > > >On 03/26/14 12:31, Jiri Pirko wrote: >>This is second version of RFC. Here are the main differences from the first >>one: >>-There is no special swdev of swport structure. The sw

Re: [ovs-dev] [patch net-next RFC v2 2/6] skbuff: add "missed_flow" flag

2014-03-26 Thread Jiri Pirko
Wed, Mar 26, 2014 at 05:59:12PM CET, alexei.starovoi...@gmail.com wrote: >On Wed, Mar 26, 2014 at 9:31 AM, Jiri Pirko wrote: >> This flag sets incoming switch device in order to let know that the flow >> which the skb is part of is missed. Listener may react to it >> approp

[ovs-dev] [patch net-next RFC v2 3/6] openvswitch: split flow structures into ovs specific and generic ones

2014-03-26 Thread Jiri Pirko
After this, flow related structures can be used in other code. Signed-off-by: Jiri Pirko --- include/linux/sw_flow.h| 105 +++ net/openvswitch/datapath.c | 45 +++ net/openvswitch/datapath.h | 4 +- net/openvswitch/flow.c

[ovs-dev] [patch net-next RFC v2 5/6] openvswitch: Introduce support for switchdev based datapath

2014-03-26 Thread Jiri Pirko
Signed-off-by: Jiri Pirko --- include/uapi/linux/openvswitch.h | 4 + net/openvswitch/Makefile | 4 + net/openvswitch/datapath.c | 45 ++- net/openvswitch/datapath.h | 8 ++ net/openvswitch/dp_notify.c| 3

[ovs-dev] [patch net-next RFC v2 2/6] skbuff: add "missed_flow" flag

2014-03-26 Thread Jiri Pirko
This flag sets incoming switch device in order to let know that the flow which the skb is part of is missed. Listener may react to it appropriately, Signed-off-by: Jiri Pirko --- include/linux/filter.h | 1 + include/linux/skbuff.h | 13 + net/core/filter.c | 3 +++ 3 files

[ovs-dev] [patch net-next RFC v2 6/6] net: introduce dummy switch

2014-03-26 Thread Jiri Pirko
Dummy switch implementation using switchdev API Signed-off-by: Jiri Pirko --- drivers/net/Kconfig | 7 ++ drivers/net/Makefile | 1 + drivers/net/dummyswitch.c| 235 +++ include/uapi/linux/if_link.h | 9 ++ 4 files changed, 252

[ovs-dev] [patch net-next RFC v2 4/6] net: introduce switchdev API

2014-03-26 Thread Jiri Pirko
fact these netdevices are representing switch and switch ports. Signed-off-by: Jiri Pirko --- include/linux/netdevice.h | 24 +++ include/linux/switchdev.h | 30 net/Kconfig | 10 +++ net/core/Makefile | 1 + net/core/switchdev.c | 172

  1   2   >