[ovs-dev] [PATCH ovs V1 2/9] dpif-hw-acc: Add tc interface

2016-11-01 Thread Paul Blakey
Add tc interface in order to send/recv data from/to the HW. The kerenl side of tc will pass the tc messages to the driver and back. Signed-off-by: Paul Blakey Signed-off-by: Shahar Klein --- lib/automake.mk | 2 + lib/tc.c| 906

[ovs-dev] [PATCH ovs V1 7/9] dpif-hw-acc: operate implementation

2016-11-01 Thread Paul Blakey
added operate implemenation using tc for flow offload, supporting flow get, flow put, and flow del. Signed-off-by: Paul Blakey Signed-off-by: Shahar Klein --- lib/dpif-hw-acc.c | 821 +- lib/dpif-hw-acc.h | 10 + 2 files changed, 829

[ovs-dev] [PATCH ovs V1 4/9] dpif-hw-acc: add a user offload policy framework

2016-11-01 Thread Paul Blakey
Added a new framework so user can specify which flows to try and offload. A new map was added to save each flow's policy. Signed-off-by: Paul Blakey Signed-off-by: Shahar Klein --- lib/automake.mk | 2 ++ lib/dpif-hw-acc.c | 2 ++ lib/dpif-hw-acc.h | 1 - lib/hw-of

[ovs-dev] [PATCH ovs V1 8/9] dpif-hw-acc: support for flow dump from tc

2016-11-01 Thread Paul Blakey
added support dump flows from tc. Signed-off-by: Paul Blakey Signed-off-by: Shahar Klein --- lib/dpif-hw-acc.c | 248 ++ lib/dpif-hw-acc.h | 2 + 2 files changed, 232 insertions(+), 18 deletions(-) diff --git a/lib/dpif-hw-acc.c b/lib/dpif

[ovs-dev] [PATCH ovs V1 9/9] dpif-hw-acc: flow flush

2016-11-01 Thread Paul Blakey
added support to flush all offloaded flows from tc. Signed-off-by: Paul Blakey Signed-off-by: Shahar Klein --- lib/dpif-hw-acc.c | 12 1 file changed, 12 insertions(+) diff --git a/lib/dpif-hw-acc.c b/lib/dpif-hw-acc.c index 0087e9c..98a99de 100644 --- a/lib/dpif-hw-acc.c +++ b

[ovs-dev] [PATCH ovs V1 1/9] dpif-hw-acc: New dpif provider

2016-11-01 Thread Paul Blakey
Added infrastructure for a new provider that will be able to send some flows to supporting HW for offloading. Signed-off-by: Paul Blakey Signed-off-by: Shahar Klein --- lib/automake.mk | 2 + lib/dpif-hw-acc.c | 444 lib/dpif-hw

[ovs-dev] [PATCH ovs V1 6/9] dpif-hw-acc: using port maps on init and changes

2016-11-01 Thread Paul Blakey
updating the port maps on dpif init and when add/removing a port. Signed-off-by: Paul Blakey Signed-off-by: Shahar Klein --- lib/dpif-hw-acc.c | 49 + 1 file changed, 45 insertions(+), 4 deletions(-) diff --git a/lib/dpif-hw-acc.c b/lib/dpif-hw

[ovs-dev] [PATCH ovs V1 5/9] dpif-hw-acc: converting a tc flow back to ovs flow

2016-11-01 Thread Paul Blakey
converts a dumped tc flow back to dpif-flow, for use in dumping/getting flows. Signed-off-by: Paul Blakey Signed-off-by: Shahar Klein --- lib/dpif-hw-acc.c | 200 ++ 1 file changed, 200 insertions(+) diff --git a/lib/dpif-hw-acc.c b/lib/dpif

[ovs-dev] [PATCH ovs V1 0/9] Introducing HW offload support for openvswitch

2016-11-01 Thread Paul Blakey
=53d94892e27409bb2b48140207c0273b2ba65f61 Paul Blakey (9): dpif-hw-acc: New dpif provider dpif-hw-acc: Add tc interface dpif-hw-acc: Add new hash maps ufid <-> tc flow and ovs port <-> netdev dpif-hw-acc: add a user offload policy framework dpif-hw-acc: converting a tc flow

[ovs-dev] [PATCH ovs V1 3/9] dpif-hw-acc: Add new hash maps ufid <-> tc flow and ovs port <-> netdev

2016-11-01 Thread Paul Blakey
d when offloading/dumping a flow. Signed-off-by: Paul Blakey Signed-off-by: Shahar Klein --- lib/dpif-hw-acc.c | 292 ++ lib/dpif-hw-acc.h | 21 2 files changed, 313 insertions(+) diff --git a/lib/dpif-hw-acc.c b/lib/dpif-hw-acc.c

Re: [ovs-dev] [PATCH ovs RFC 0/9] Introducing HW offload support for openvswitch

2016-10-19 Thread Paul Blakey
RFC 0/9] Introducing HW offload support for openvswitch On 27 September 2016 at 21:45, Paul Blakey wrote: Openvswitch currently configures the kerenel datapath via netlink over an internal ovs protocol. This patch series offers a new provider: dpif-netlink-tc that uses the tc flower protocol to

[ovs-dev] [PATCH ovs RFC 8/9] dpif-hw-netlink: support for flow dump from tc

2016-09-27 Thread Paul Blakey
added support dump flows from tc. Signed-off-by: Paul Blakey Signed-off-by: Shahar Klein --- lib/dpif-hw-netlink.c | 215 ++ 1 file changed, 199 insertions(+), 16 deletions(-) diff --git a/lib/dpif-hw-netlink.c b/lib/dpif-hw-netlink.c index

[ovs-dev] [PATCH ovs RFC 7/9] dpif-hw-netlink: operate implementation

2016-09-27 Thread Paul Blakey
added flow offload with tc, supporting flow get, flow put, and flow del. Signed-off-by: Paul Blakey Signed-off-by: Shahar Klein --- lib/dpif-hw-netlink.c | 687 +- 1 file changed, 682 insertions(+), 5 deletions(-) diff --git a/lib/dpif-hw

[ovs-dev] [PATCH ovs RFC 2/9] dpif-hw-netlink: Add tc interface

2016-09-27 Thread Paul Blakey
Add tc interface in order to send/recv data from/to the HW. The kerenl side of tc will pass the tc messages to the driver and back. Signed-off-by: Shahar Klein Signed-off-by: Paul Blakey --- lib/automake.mk | 2 + lib/tc.c| 796

[ovs-dev] [PATCH ovs RFC 0/9] Introducing HW offload support for openvswitch

2016-09-27 Thread Paul Blakey
/kernel/git/davem/net.git/commit/?id=53d94892e27409bb2b48140207c0273b2ba65f61 Paul Blakey (9): dpif-hw-netlink: New dpif provider dpif-hw-netlink: Add tc interface dpif-hw-netlink: Added new maps dpif-hw-netlink: added new user offload policy dpif-hw-netlink: converting a tc flow back to

[ovs-dev] [PATCH ovs RFC 3/9] dpif-hw-netlink: Added new maps

2016-09-27 Thread Paul Blakey
A flow in ovs can be accesses by ufid, and in tc by flow handle + priority. We use the protocol number as the priority so we save a map that maps from ovs flow id to/from tc flow handle + protocol. Also added a map to map ovs in_port to/from netdevice. Signed-off-by: Paul Blakey Signed-off-by

[ovs-dev] [PATCH ovs RFC 5/9] dpif-hw-netlink: converting a tc flow back to ovs flow

2016-09-27 Thread Paul Blakey
new function that converts a tc flow back to dpif-flow. Signed-off-by: Paul Blakey Signed-off-by: Shahar Klein --- lib/dpif-hw-netlink.c | 169 ++ 1 file changed, 169 insertions(+) diff --git a/lib/dpif-hw-netlink.c b/lib/dpif-hw-netlink.c index

[ovs-dev] [PATCH ovs RFC 1/9] dpif-hw-netlink: New dpif provider

2016-09-27 Thread Paul Blakey
Add infrastructure for a new provider that will be able to send some flows to the HW for offloading. Signed-off-by: Shahar Klein Signed-off-by: Paul Blakey --- lib/automake.mk | 2 + lib/dpif-hw-netlink.c | 463 ++ lib/dpif-hw-netlink.h

[ovs-dev] [PATCH ovs RFC 9/9] netdev-linux: add tc ingress qdisc support

2016-09-27 Thread Paul Blakey
Add tc ingress qdisc support so we can add qdisc as a qos on port or through config. usage: ovs-vsctl -- set port qos=@newq -- --id=@newq create \ qos type=linux-ingress where is a already added port using vsctl add-port. Signed-off-by: Paul Blakey Signed-off-by: Shahar Klein --- lib/netdev

[ovs-dev] [PATCH ovs RFC 6/9] dpif-hw-netlink: using port maps on init and changes

2016-09-27 Thread Paul Blakey
updating the port maps on dpif open (without create) and in port_add/port_del. Signed-off-by: Paul Blakey Signed-off-by: Shahar Klein --- lib/dpif-hw-netlink.c | 68 +-- 1 file changed, 60 insertions(+), 8 deletions(-) diff --git a/lib/dpif-hw

[ovs-dev] [PATCH ovs RFC 4/9] dpif-hw-netlink: added new user offload policy

2016-09-27 Thread Paul Blakey
Added a new framework so use can specify which flows to try and offload. A new map was added to save each flow's policy. Signed-off-by: Paul Blakey Signed-off-by: Shahar Klein --- lib/automake.mk | 2 ++ lib/dpif-hw-netlink.c