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
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
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:
>>>
>&
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
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:
>
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
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
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
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.
>>
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
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
.
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
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
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
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
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
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
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
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
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
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
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
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
>>>>
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
>>
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
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 +-
&
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
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
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
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:
>
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
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
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
.
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
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
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
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
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
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
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
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
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
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
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
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
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
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])
>[..
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
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
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,
>>
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
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
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
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
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 :
>>
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
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
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
.
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
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
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
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
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
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
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
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
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
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
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
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
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
>>
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
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
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
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
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"
+
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
>&
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,
>>
>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
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
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
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
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
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
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
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 - 100 of 115 matches
Mail list logo