[ovs-dev] [RFC 1/4] netlink: Support for memory mapped Netlink sockets

2014-05-22 Thread Thomas Graf
Signed-off-by: Thomas Graf --- lib/dpif-linux.c | 3 +- lib/netlink-protocol.h | 39 ++ lib/netlink-socket.c | 345 - lib/netlink-socket.h | 10 +- 4 files changed, 361 insertions(+), 36 deletions(-) diff --git a/lib/dpif-linux.c

Re: [ovs-dev] [RFC 0/4] Status of mmap upcall work

2014-05-22 Thread Thomas Graf
On 05/23/14 at 01:15am, Thomas Graf wrote: > Test: * Avg pps as reported by pktgen for a single pktgen thread > * qemu, vcpu=2, mem=2GB, megaflows disabled > > Orig [0] ZC [1]mmap [2] shared-ofpbuf [3] > 64B (linear)624K 564K 962K

Re: [ovs-dev] [RFC 1/4] netlink: Support for memory mapped Netlink sockets

2014-05-23 Thread Thomas Graf
On 05/22/14 at 05:20pm, Ben Pfaff wrote: > On Fri, May 23, 2014 at 01:15:58AM +0200, Thomas Graf wrote: > > Signed-off-by: Thomas Graf > > Thanks for the patches. Thanks for the prompt review. > > Definitions in netlink-protocol.h have to be written from the > perspecti

Re: [ovs-dev] [RFC 1/4] netlink: Support for memory mapped Netlink sockets

2014-05-24 Thread Thomas Graf
On 05/23/14 at 08:47am, Ben Pfaff wrote: > On Fri, May 23, 2014 at 01:15:58AM +0200, Thomas Graf wrote: > > Signed-off-by: Thomas Graf > > nl_sock_recv__() compares its 'events' member against EPOLLERR with ==, > but EPOLL* are bitmasks so should it use & to test

Re: [ovs-dev] [RFC 1/4] netlink: Support for memory mapped Netlink sockets

2014-05-24 Thread Thomas Graf
On 05/23/14 at 08:51am, Ben Pfaff wrote: > On Fri, May 23, 2014 at 09:03:54AM +0100, Thomas Graf wrote: > > > Using nl_sock_send_linear() can cause messages to be reordered. Do we > > > need to wait for the tx ring to empty before calling it? > > > > Are y

Re: [ovs-dev] [RFC 4/4] netlink: COW mmap Netlink messages to avoid memcpy()

2014-05-24 Thread Thomas Graf
On 05/23/14 at 09:57am, Ben Pfaff wrote: > On Fri, May 23, 2014 at 01:16:01AM +0200, Thomas Graf wrote: > > If the message was received via a shared memory ring the frame > > is usable as ofpbuf base directly without copying the buffer > > unnecessarily. A new destructor() c

Re: [ovs-dev] [PATCH v4 net-next] MPLS: Use mpls_features to activate software MPLS GSO segmentation

2014-06-02 Thread Thomas Graf
On 06/02/14 at 01:43pm, Simon Horman wrote: > +#ifdef CONFIG_NET_MPLS_GSO > +static netdev_features_t net_mpls_features(struct sk_buff *skb, > +struct net_device *dev, > +netdev_features_t features) > +{ > + /* Ther

Re: [ovs-dev] [PATCH v5 net-next] MPLS: Use mpls_features to activate software MPLS GSO segmentation

2014-06-04 Thread Thomas Graf
for prompting me to investigate this. > > Signed-off-by: Simon Horman > Acked-by: YAMAMOTO Takashi LGTM Acked-by: Thomas Graf ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH 01/16] ofproto-dpif: Remove unused struct dpif_completion.

2014-06-06 Thread Thomas Graf
On 06/05/14 at 10:01pm, Ben Pfaff wrote: > Signed-off-by: Ben Pfaff Acked-by: Thomas Graf ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH 02/16] ovs-ofctl: Document 'cookie' argument to learn action.

2014-06-06 Thread Thomas Graf
On 06/05/14 at 10:01pm, Ben Pfaff wrote: > This has always been supported, but the documentation was missing. > > Signed-off-by: Ben Pfaff Acked-by: Thomas Graf ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH 03/16] ovs-ofctl: Support "send_flow_rem" in "learn" actions.

2014-06-06 Thread Thomas Graf
On 06/05/14 at 10:01pm, Ben Pfaff wrote: > This flag was overlooked when support for the "learn" action was added. > (It was always supported in the OpenFlow code, just not in the ovs-ofctl > interface.) > > Signed-off-by: Ben Pfaf

Re: [ovs-dev] [PATCH 04/16] ofp-actions: Store cookie in network byte order in struct ofpact_learn.

2014-06-06 Thread Thomas Graf
> Signed-off-by: Ben Pfaff Acked-by: Thomas Graf ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH 05/16] ofproto: Fix memory leak in ofproto_destroy().

2014-06-06 Thread Thomas Graf
On 06/05/14 at 10:01pm, Ben Pfaff wrote: > Found by valgrind. > > Signed-off-by: Ben Pfaff Acked-by: Thomas Graf ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH 06/16] ofproto-dpif-rid: Fix memory leak in recirc_id_pool_destroy().

2014-06-06 Thread Thomas Graf
On 06/05/14 at 10:02pm, Ben Pfaff wrote: > recirc_id_pool_create() allocates memory but recirc_id_pool_destroy() did > not destroy it. > > Found by valgrind. > > Signed-off-by: Ben Pfaff Acked-by: Thomas Graf ___ dev mailing list d

Re: [ovs-dev] [PATCH 07/16] ofproto: Merge do_add_flow() and oftable_insert_rule() into add_flow().

2014-06-06 Thread Thomas Graf
On 06/05/14 at 10:02pm, Ben Pfaff wrote: > Each of these functions had only a single caller, and breaking them out as > separate functions didn't seem to many the code clearer. > > I added a new function meter_insert_rule(): oftable_insert_rule() had used > members of struct meter directly, which

Re: [ovs-dev] [PATCH 08/16] ofproto: Only initiate flow table modifications if they will succeed.

2014-06-06 Thread Thomas Graf
ations anyway. It might > change behavior of some hardware implementation, but I don't actually know > of any. > > ONF-JIRA: EXT-362. > Signed-off-by: Ben Pfaff LGTM Acked-by: Thomas Graf ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH 09/16] ofproto: Make ofproto_rule_is_hidden() public, and rename.

2014-06-06 Thread Thomas Graf
On 06/05/14 at 10:02pm, Ben Pfaff wrote: > I'd like to use this from connmgr. > > Signed-off-by: Ben Pfaff Acked-by: Thomas Graf ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH 10/16] ofproto: Move logic for collecting read-only rules into rule_criteria.

2014-06-06 Thread Thomas Graf
On 06/05/14 at 10:02pm, Ben Pfaff wrote: > +/* By default, criteria initialized by rule_criteria_init() will match flows > + * that are read-only, on the assumption that the collected flows won't be > + * modified. This function to match only flows that are be modifiable.

Re: [ovs-dev] [PATCH 11/16] ofproto: Combine "struct ofconn *" and "const struct ofp_header *" args.

2014-06-06 Thread Thomas Graf
gned-off-by: Ben Pfaff Looks sane. Not verified line by line ;-) Acked-by: Thomas Graf ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [mask array v3 1/2] Datapath: Simplify ovs_flow_tbl_lookup_stats()

2014-06-06 Thread Thomas Graf
On 06/04/14 at 01:53pm, Andy Zhou wrote: > Signed-off-by: Andy Zhou I would personally value a commit message here since this looks like more than just a simplification ;-) ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo

Re: [ovs-dev] RFC: conntrack Initial Design

2014-06-06 Thread Thomas Graf
On 05/22/14 at 01:39pm, Justin Pettit wrote: > Below, is a first cut of the design document I wrote for integrating with the > connection tracker.  As I mentioned at my OpenStack presentation, I have a > prototype that (largely) implements this, but it's not ready to be shared > yet.  The goal i

Re: [ovs-dev] [mask array v3 1/2] Datapath: Simplify ovs_flow_tbl_lookup_stats()

2014-06-09 Thread Thomas Graf
On 06/06/14 at 01:59pm, Andy Zhou wrote: > On Fri, Jun 6, 2014 at 3:46 AM, Thomas Graf wrote: > > On 06/04/14 at 01:53pm, Andy Zhou wrote: > >> Signed-off-by: Andy Zhou > > > > I would personally value a commit message here since this looks like > > more tha

Re: [ovs-dev] [PATCH 07/16] ofproto: Merge do_add_flow() and oftable_insert_rule() into add_flow().

2014-06-09 Thread Thomas Graf
shall have to fix this. Also we ought to annotate 'rules' > with OVS_GUARDED_BY.) > > * The eviction groups are only used during flow_mods, which > hold ofproto_mutex anyway. > >

Re: [ovs-dev] [PATCH 10/16] ofproto: Move logic for collecting read-only rules into rule_criteria.

2014-06-09 Thread Thomas Graf
On 06/06/14 at 03:25pm, Ben Pfaff wrote: > On Fri, Jun 06, 2014 at 11:11:57AM +0100, Thomas Graf wrote: > > On 06/05/14 at 10:02pm, Ben Pfaff wrote: > > > +/* By default, criteria initialized by rule_criteria_init() will match > > > flows > > > + * that are r

Re: [ovs-dev] [mask array v4 2/2] datapath: keep mask array compact when deleting mask

2014-06-09 Thread Thomas Graf
On 06/06/14 at 02:37pm, Andy Zhou wrote: > +static void tbl_mask_array_delete_mask(struct mask_array *ma, > +const struct sw_flow_mask *mask) > +{ > + int i = 0; > + > + /* Delete a mask pointer from the valid section. > + * > + * Also move the

Re: [ovs-dev] [PATCH 12/16] ofproto: Do straightforward removal of asynchronous flow operations.

2014-06-09 Thread Thomas Graf
s removal into two > stages will make it easier to understand and review. If not, the commits > could be squashed. > > Signed-off-by: Ben Pfaff Looks straight forward Acked-by: Thomas Graf ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [mask array v4 2/2] datapath: keep mask array compact when deleting mask

2014-06-09 Thread Thomas Graf
On 06/09/14 at 03:26pm, Andy Zhou wrote: > On Mon, Jun 9, 2014 at 2:58 PM, Thomas Graf wrote: > > On 06/06/14 at 02:37pm, Andy Zhou wrote: > >> +static void tbl_mask_array_delete_mask(struct mask_array *ma, > >> +cons

Re: [ovs-dev] [PATCH 13/16] ofproto: Additional simplifications.

2014-06-09 Thread Thomas Graf
On 06/05/14 at 10:02pm, Ben Pfaff wrote: > This commit finishes the removal of asynchronous flow table operations > begun in the previous commit, by removing ofoperation and ofopgroup > entirely and all of the code that depended on them. Following this commit, > all the internal documentation and

Re: [ovs-dev] [PATCH 14/16] ofproto: Make hole in struct rule_actions by not caching provider_meter_id.

2014-06-09 Thread Thomas Graf
On 06/05/14 at 10:02pm, Ben Pfaff wrote: > Nothing actually used it. > > An upcoming commit will use part of the hole for a new member. > > Signed-off-by: Ben Pfaff LGTM in general The commit description is slightly misleading as 'hole' suggests that none of struct rule_action's member offsets

Re: [ovs-dev] [PATCH 15/16] ofproto: Reduce duplication in deletion logic.

2014-06-09 Thread Thomas Graf
r fail. > > Signed-off-by: Ben Pfaff Acked-by: Thomas Graf ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH 16/16] Implement learned flow deletion.

2014-06-09 Thread Thomas Graf
ut it. Code looks good aside from the race condition. Happy to provide my ACK for the code as-is Acked-by: Thomas Graf ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] Support for Provider VLANs

2014-06-10 Thread Thomas Graf
On 06/10/14 at 07:02pm, Avinash wrote: > Hello, As a general remark. It would be nice to have such a mail formatted as the cover letter of the patches series and all the patches as reply to it. That way all patches and are neatly bundled in a single email thread. git format-patch --cover and git s

Re: [ovs-dev] [PATCH 1/4] datapath: Kernel support for provider VLANs

2014-06-10 Thread Thomas Graf
On 06/10/14 at 07:03pm, Avinash wrote: > Kernel recognizes and accepts ethertype of provider VLANs (ETH_P_8021AD) > along with normal VLAN (ETH_P_8021Q). Also in flow key formation, > only the outermost VLAN is considered. Remaining stacked VLANs are skipped. > > Signed-off-by: Avinash Something

Re: [ovs-dev] [PATCH 1/7] lisp: Use IP addresses rather than flow on hash failure.

2014-06-11 Thread Thomas Graf
zeof(u32), 0); > + else > + hash = jhash2((const u32 *)&pkt_key->ipv6.addr, > +sizeof(pkt_key->ipv6.addr) / sizeof(u32), 0); Perhaps check for ETH_P_IPV6 and WARN() on the else branch? OTOH, unlikely that is ever to

Re: [ovs-dev] [PATCH 2/7] datapath: Eliminate memset() from flow_extract.

2014-06-11 Thread Thomas Graf
non-error situations. > > Removing the memset() reduces the profile of ovs_flow_extract() > from 0.64% to 0.56% when tested with large packets on a 10G link. > > Suggested-by: Pravin Shelar > Signed-off-by: Jesse Gross Nice! Acked-by: Thomas Graf __

Re: [ovs-dev] [PATCH 3/7] datapath: Wrap struct ovs_key_ipv4_tunnel in a new structure.

2014-06-11 Thread Thomas Graf
> Signed-off-by: Jesse Gross LGTM Acked-by: Thomas Graf ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH 4/7] tunnel: Add support for matching on OAM packets.

2014-06-11 Thread Thomas Graf
/* No argument, OAM frame. */ > __OVS_TUNNEL_KEY_ATTR_MAX > }; Depending on how long you want to keep this out of tree, it might be wise to push the above bits upstream as a placeholder to reserve the bit. LGTM otherwise Acked-by: Thomas Graf ___ dev mail

Re: [ovs-dev] [PATCH 5/7] netdev-vport: Truncate long names for tunnel backing ports.

2014-06-11 Thread Thomas Graf
On 06/10/14 at 04:47pm, Jesse Gross wrote: > In some cases, the names of tunnel protocols are longer than the > maximum allowed after concatenating port numbers. This truncates > names to the correct size rather than assert-failing on the assumption > that collisions between names of protocols are

Re: [ovs-dev] [PATCH 6/7] datapath: Factor out allocation and verification of actions.

2014-06-11 Thread Thomas Graf
rs it out to reduce stack pressure and improve readibility. > > Signed-off-by: Jesse Gross Acked-by: Thomas Graf ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH 7/7] datapath: Add support for Geneve tunneling.

2014-06-11 Thread Thomas Graf
On 06/10/14 at 04:47pm, Jesse Gross wrote: > diff --git a/datapath/flow.c b/datapath/flow.c > index f1bb95d..7b108ed 100644 > --- a/datapath/flow.c > +++ b/datapath/flow.c > @@ -455,6 +455,13 @@ int ovs_flow_extract(struct sk_buff *skb, u16 in_port, > struct sw_flow_key *key) > struc

Re: [ovs-dev] [PATCH 5/7] netdev-vport: Truncate long names for tunnel backing ports.

2014-06-11 Thread Thomas Graf
On 06/11/14 at 11:11am, Jesse Gross wrote: > On Wed, Jun 11, 2014 at 3:04 AM, Thomas Graf wrote: > > On 06/10/14 at 04:47pm, Jesse Gross wrote: > >> In some cases, the names of tunnel protocols are longer than the > >> maximum allowed after concatenating port numbers. T

Re: [ovs-dev] [PATCH 4/7] tunnel: Add support for matching on OAM packets.

2014-06-11 Thread Thomas Graf
On 06/11/14 at 11:10am, Jesse Gross wrote: > On Wed, Jun 11, 2014 at 3:00 AM, Thomas Graf wrote: > > On 06/10/14 at 04:47pm, Jesse Gross wrote: > >> diff --git a/include/linux/openvswitch.h b/include/linux/openvswitch.h > >> index 33423ad..57d40e3 100644 > >&g

Re: [ovs-dev] [PATCH 7/7] datapath: Add support for Geneve tunneling.

2014-06-11 Thread Thomas Graf
> I actually did look into breaking the flow key up but the result was > messy and arguably worse since it means that the optimizations that we > already have might not just work. Thanks for this excellent explanation. Acked-by: Thomas Graf _

Re: [ovs-dev] [PATCH 1/4] datapath: Kernel support for provider VLANs

2014-06-12 Thread Thomas Graf
On 06/12/14 at 09:04am, Jesse Gross wrote: > On Wed, Jun 11, 2014 at 11:06 PM, Avinash wrote: > > On 6/11/14, Jesse Gross wrote: > >> On Wed, Jun 11, 2014 at 7:26 AM, Avinash wrote: > >>> On 6/10/14, Thomas Graf wrote: > >>>> On 06/10/14 at 07:03

[ovs-dev] [PATCH] ovs-vsctl: Fix OF protocol name capitalization in manual page

2014-06-17 Thread Thomas Graf
Signed-off-by: Thomas Graf --- utilities/ovs-vsctl.8.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utilities/ovs-vsctl.8.in b/utilities/ovs-vsctl.8.in index 1701b48..50d8879 100644 --- a/utilities/ovs-vsctl.8.in +++ b/utilities/ovs-vsctl.8.in @@ -973,7 +973,7

[ovs-dev] [PATCH] AUTHORS: Update entry for Thomas Graf

2014-06-17 Thread Thomas Graf
Signed-off-by: Thomas Graf --- AUTHORS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AUTHORS b/AUTHORS index c03c705..33de7b1 100644 --- a/AUTHORS +++ b/AUTHORS @@ -121,7 +121,7 @@ SUGYO Kazushi sugyo@gmail.com Tadaaki Nagao na...@stratosphere.co.jp

Re: [ovs-dev] [PATCH] ovs-vsctl: Fix OF protocol name capitalization in manual page

2014-06-17 Thread Thomas Graf
On 06/17/14 at 09:19am, Justin Pettit wrote: > I think the way it was worked, since we use strcasecmp(), but we may as > well be consistent with how it's documented elsewhere. It's been applied. Thanks! I think it's the actual schema validation that enforces correct capitalization: $ sudo ovs-v

[ovs-dev] [PATCH 1/2] ovs-ofctl.8: Document group:group_id action

2014-06-20 Thread Thomas Graf
Signed-off-by: Thomas Graf --- utilities/ovs-ofctl.8.in | 4 1 file changed, 4 insertions(+) diff --git a/utilities/ovs-ofctl.8.in b/utilities/ovs-ofctl.8.in index cc811ff..efd8c11 100644 --- a/utilities/ovs-ofctl.8.in +++ b/utilities/ovs-ofctl.8.in @@ -1144,6 +1144,10 @@ This form of

[ovs-dev] [PATCH 2/2] ovs-ofctl.8: Move mod-table out of group tables section

2014-06-20 Thread Thomas Graf
Signed-off-by: Thomas Graf --- utilities/ovs-ofctl.8.in | 50 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/utilities/ovs-ofctl.8.in b/utilities/ovs-ofctl.8.in index efd8c11..4ebaa18 100644 --- a/utilities/ovs-ofctl.8.in +++ b

[ovs-dev] [PATCH] ofp-parse: Correctly parse actions= in group bucket

2014-06-20 Thread Thomas Graf
Make the parser compatible with how we print group buckets and allow actions= to be specified, e.g.: group_id=1,type=all,bucket=actions=output:2,bucket=actions=output:3 Also, better document the supported syntax in the manual page. Signed-off-by: Thomas Graf --- lib/ofp-parse.c | 6

Re: [ovs-dev] [netdev-dpdk 1/5] ovs-numa: Add ovs-numa.{c, h} for extracting and storing cpu socket and cpu core info.

2014-06-23 Thread Thomas Graf
On 06/23/14 at 12:37pm, Alex Wang wrote: > Signed-off-by: Alex Wang Some comments below > --- > lib/automake.mk |2 + > lib/ovs-numa.c | 208 > +++ > lib/ovs-numa.h | 33 > tests/ofproto-macros.at |1 + >

Re: [ovs-dev] [netdev-dpdk 1/5] ovs-numa: Add ovs-numa.{c, h} for extracting and storing cpu socket and cpu core info.

2014-06-23 Thread Thomas Graf
On 06/24/14 at 12:40am, Thomas Graf wrote: > On 06/23/14 at 12:37pm, Alex Wang wrote: > > +/* Returns the number of cpu cores. */ > > +uint32_t > > +ovs_numa_get_n_cores(void) > > +{ > > +return hmap_count(&all_cpu_cores); > > +} > > + > &

Re: [ovs-dev] [netdev-dpdk 3/5] netdev-dpdk: Make memory pool name contain the socket id.

2014-06-23 Thread Thomas Graf
g LGTM Acked-by: Thomas Graf ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [netdev-dpdk 4/5] netdev-dpdk: Create 'number of dpdk ifaces on same cpu socket' rx queues and 'number of cpu cores' tx queues for each dpdk interface.

2014-06-23 Thread Thomas Graf
On 06/23/14 at 12:37pm, Alex Wang wrote: > This will be the default setting for dpdk iface. > > Signed-off-by: Alex Wang I think you can remove the NR_QUEUE #define in lib/dpif-netdev.h with this patch. > --- > lib/netdev-dpdk.c | 47 --- > 1 file c

Re: [ovs-dev] [netdev-dpdk 5/5] dpif-netdev: Create 'number of dpdk ifaces on cpu socket' pmd threads for each cpu socket.

2014-06-23 Thread Thomas Graf
On 06/23/14 at 12:37pm, Alex Wang wrote: > The pmd threads are pinned to available cpu cores on the > corresponding cpu socket. > > Signed-off-by: Alex Wang > --- > lib/dpif-netdev.c | 172 > ++--- > lib/netdev-dpdk.c | 27 - > lib/netd

Re: [ovs-dev] [PATCH] dpif-netdev: Remove unused global variable 'key'.

2014-06-24 Thread Thomas Graf
On 06/23/14 at 05:08pm, Ben Pfaff wrote: > Found by sparse. > > Signed-off-by: Ben Pfaff Acked-by: Thomas Graf ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH] ofp-parse: Correctly parse actions= in group bucket

2014-06-24 Thread Thomas Graf
On 06/24/14 at 08:56am, Ben Pfaff wrote: > On Fri, Jun 20, 2014 at 02:24:50PM +0200, Thomas Graf wrote: > > Make the parser compatible with how we print group buckets and allow > > actions= to be specified, e.g.: > > > > group_id=1,type=all,bucket=actions=outpu

[ovs-dev] [PATCH v2] ofp-parse: Correctly parse actions= in group bucket

2014-06-24 Thread Thomas Graf
: Thomas Graf --- v2: Add unit test upon suggestion of Ben Pfaff lib/ofp-parse.c | 6 ++ tests/ofproto.at | 3 ++- utilities/ovs-ofctl.8.in | 6 -- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/lib/ofp-parse.c b/lib/ofp-parse.c index 93bdbea..ff7b9ce

Re: [ovs-dev] [PATCH] datapath: Rehash 16-bit skbuff hashes into 32 bits.

2014-06-25 Thread Thomas Graf
uch as VXLAN. On these kernels the source > port is always zero when using VXLAN. To solve this problem while > still taking advantage of the procomputed hash, this rehashes the > hash so that the entropy is spread throughout 32 bits. > > Signe

Re: [ovs-dev] [PATCH] dpif: When executing actions needs help, use "set" action to set tunnel.

2014-06-25 Thread Thomas Graf
n, because the Linux kernel datapath throws away tunnel information > supplied in the OVS_PACKET_CMD_EXECUTE metadata argument. > > VMware-BZ: #1270110 > Reported-by: Srinivas Neginhal > Signed-off-by: Ben Pfaff > CC: Jesse Gross Thanks Ben! I ran into this t

Re: [ovs-dev] [PATCH V2 1/5] ovs-numa: Add ovs-numa.{c, h} for extracting and storing cpu socket and cpu core info.

2014-06-25 Thread Thomas Graf
On 06/24/14 at 06:40pm, Alex Wang wrote: > Signed-off-by: Alex Wang > > --- > PATCH -> V2: > - Use readdir_r() instead of readdir() for reentrency. > - Address review comments from Thomas Graf. > - Add dummy interface for WIN32 case. One minor comment below. > in

Re: [ovs-dev] [PATCH] netdev-dpdk: Count and delete every dropped packet

2014-06-25 Thread Thomas Graf
On 06/24/14 at 04:04pm, Daniele Di Proietto wrote: > Commit f4fd623c4c25 introduced a bug in netdev_dpdk_send(): if multiple > consecutive packets exceed MTU, only the first one is deleted and > counted. > > This should fix the bug > > Signed-off-by: Daniele Di Proietto

Re: [ovs-dev] [PATCH 1/2] netdev-dpdk: Fix coding style in TX/RX conf structs

2014-06-25 Thread Thomas Graf
On 06/24/14 at 04:05pm, Daniele Di Proietto wrote: > Signed-off-by: Daniele Di Proietto Acked-by: Thomas Graf ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH 2/2] netdev-dpdk: Disable NIC offloading and multiseg mbufs

2014-06-25 Thread Thomas Graf
s the driver to use a simpler tx routine, resulting in throuput > improvements (~7.5%) > > Signed-off-by: Daniele Di Proietto LGTM Acked-by: Thomas Graf ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH V2 2/5] netdev-dpdk: Add function for getting the socket_id of netdev-dpdk.

2014-06-25 Thread Thomas Graf
On 06/24/14 at 06:40pm, Alex Wang wrote: > Signed-off-by: Alex Wang > --- > PATCH -> V2: > - Rebase. LGTM, minor nitpick below. Acked-by: Thomas Graf > diff --git a/lib/netdev-dpdk.h b/lib/netdev-dpdk.h > index f443a21..da507ce 100644 > --- a/lib/netdev-dpdk.h &

Re: [ovs-dev] [PATCH V2 1/5] ovs-numa: Add ovs-numa.{c, h} for extracting and storing cpu socket and cpu core info.

2014-06-25 Thread Thomas Graf
On 06/25/14 at 08:54am, Alex Wang wrote: > > index 85ecc5c..77b9b39 100644 > > > > --- a/tests/ofproto-macros.at > > > +++ b/tests/ofproto-macros.at > > > @@ -76,6 +76,7 @@ m4_define([OVS_VSWITCHD_START], > > > AT_CHECK([ovs-vswitchd --detach --no-chdir --pidfile > > --enable-dummy$3 --disable

[ovs-dev] [PATCH] build: Allow building with autoconf 2.63

2014-06-26 Thread Thomas Graf
unfolded. Tested with autoconf 2.63 and 2.69. Cc: Scott Mann Cc: Don Kehn Signed-off-by: Thomas Graf --- configure.ac | 2 +- m4/compat.at | 32 ++ m4/openvswitch.m4 | 2 ++ tests/ovsdb-row.at| 62

[ovs-dev] [PATCH v2] build: Allow building with autoconf 2.63

2014-06-27 Thread Thomas Graf
unfolded. The Debian control file is left untouched on purpose. The decision whether to adjust the dependency is left to the respective maintainers. Tested with autoconf 2.63 and 2.69. Cc: Scott Mann Cc: Don Kehn Signed-off-by: Thomas Graf --- v2: - Addressed Ben's comments: - Up

Re: [ovs-dev] [PATCH] build: Allow building with autoconf 2.63

2014-06-27 Thread Thomas Graf
On 06/26/14 at 06:04pm, Ben Pfaff wrote: > On Fri, Jun 27, 2014 at 01:50:25AM +0200, Thomas Graf wrote: > > Reduces the dependency on autoconf from 2.64 to 2.63 to ease building > > on older platforms. There is only a few macros missing and they can > > be provided easily.

Re: [ovs-dev] [PATCH] datapath: Additional logging for -EINVAL on flow setups.

2014-07-02 Thread Thomas Graf
On 07/01/14 at 05:43pm, Jesse Gross wrote: > There are many possible ways that a flow can be invalid so we've > added logging for most of them. This adds logs for the remaining > possible cases so there isn't any ambiguity while debugging. > > CC: Federico Iezzi > Signed-off-by: Jesse Gross It'

Re: [ovs-dev] [PATCH] datapath: Additional logging for -EINVAL on flow setups.

2014-07-02 Thread Thomas Graf
; Signed-off-by: Jesse Gross LGTM Acked-by: Thomas Graf ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH v4 1/3] userspace: add support for pop_eth and push_eth actions

2014-07-09 Thread Thomas Graf
On 06/27/14 at 04:21pm, Lorand Jakab wrote: > diff --git a/lib/odp-execute.c b/lib/odp-execute.c > index cb89e72..b5add78 100644 > --- a/lib/odp-execute.c > +++ b/lib/odp-execute.c > @@ -260,6 +260,25 @@ odp_execute_actions__(void *dp, struct dpif_packet > **packets, int cnt, > break;

Re: [ovs-dev] [RFC 1/2] datapath: Refactor ovs_flow_cmd_fill_info().

2014-07-10 Thread Thomas Graf
On 07/10/14 at 05:29pm, Joe Stringer wrote: > Split up ovs_flow_cmd_fill_info() to make it easier to cache parts of a > dump reply. This will be used to streamline flow_dump in the next patch. > > Signed-off-by: Joe Stringer LGTM Acked-by: Thomas Graf > @@ -734,9 +722,2

Re: [ovs-dev] [RFC 2/2] datapath: Cache netlink flow key, mask on flow_put.

2014-07-10 Thread Thomas Graf
On 07/10/14 at 05:29pm, Joe Stringer wrote: > Converting the flow key and mask back into netlink format during flow > dump is fairly expensive. By caching the netlink versions of these > during flow setup, and copying the memory directly during flow dump, we > are able to support up to 33% more flo

Re: [ovs-dev] [PATCH] datapath/flow_netlink: Fix NDP flow mask validation

2014-07-10 Thread Thomas Graf
On 07/09/14 at 03:22pm, Daniele Di Proietto wrote: > match_validate() enforce that a mask matching on NDP attributes has also an > exact match on ICMPv6 type. > The ICMPv6 type, which is 8-bit wide, is stored in the 'tp.src' field of > 'struct sw_flow_key', which is 16-bit wide. > Therefore, an exa

Re: [ovs-dev] [RFC 2/2] datapath: Cache netlink flow key, mask on flow_put.

2014-07-11 Thread Thomas Graf
On 07/11/14 at 11:22am, Joe Stringer wrote: > Thanks for the review, > > On 10 July 2014 21:13, Thomas Graf wrote: > > > If I understand the code correctly the gain is only visible on > > consecutive dumps of the same flow. How about constructing the cache > > whe

Re: [ovs-dev] [PATCH] datapath/flow_netlink: Fix NDP flow mask validation

2014-07-11 Thread Thomas Graf
On 07/10/14 at 09:32am, Daniele Di Proietto wrote: > This cannot set tp.src to htons(0x), because icmpv6_key->icmpv6_type is > __u8. > > The bug has always been there, since a1c564be (datapath: Mega flow > implementation). > > datapath/flow.c:201 > > if (match->mask && (match->mask->

Re: [ovs-dev] [RFC 2/2] datapath: Cache netlink flow key, mask on flow_put.

2014-07-11 Thread Thomas Graf
On 07/11/14 at 11:29pm, Joe Stringer wrote: > I'm skeptical of taking the ovs_lock(). The current patch performs this > key/mask cache construction inside ovs_lock() as part of the critical > section for flow install. If we perform this during flow_dump, but extend > the ovs_lock to the entire flow

Re: [ovs-dev] [RFC 2/2] datapath: Cache netlink flow key, mask on flow_put.

2014-07-11 Thread Thomas Graf
On 07/11/14 at 09:28am, Flavio Leitner wrote: > On Fri, Jul 11, 2014 at 11:27:09AM +1200, Joe Stringer wrote: > > On 11 July 2014 04:53, Flavio Leitner wrote: > > > > > Can we push the cache construction to later that it doesn't impact > > > either flow setup or flow dump? I.e. like a workqueue?

[ovs-dev] [PATCH v2] datapath: Provide compatibility for kernels up to 3.17

2014-09-18 Thread Thomas Graf
Port datapath to work with kernrels up to 3.17 and use 3.16.2 as the new kernel for CI testing. Tested with 3.14, 3.16.2, and net-next (3.17). Signed-off-by: Thomas Graf Co-authored-by: Madhu Challa --- v2: - Swapped ignore_df local_df compat direction - Provide alloc_netdev() compat macro

Re: [ovs-dev] [PATCH/RFC repost 3/8] odp-util: formatting of datapath select group action

2014-09-19 Thread Thomas Graf
On 09/18/14 at 10:55am, Simon Horman wrote: > Allow formatting of select group action. This is used > when pretty-printing datapath flows. Subsequent patches > will add support for the select group action to the datapath > and ovs-vswtichd. > > Signed-off-by: Simon Horman > --- > lib/odp-util.c

Re: [ovs-dev] [PATCH/RFC repost 4/8] datapath: execution of select group action

2014-09-19 Thread Thomas Graf
On 09/18/14 at 10:55am, Simon Horman wrote: > +const struct nlattr *bucket_actions(const struct nlattr *attr) > +{ > + const struct nlattr *a; > + int rem; > + > + for (a = nla_data(attr), rem = nla_len(attr); rem > 0; > + a = nla_next(a, &rem)) { > + if (nla_type(a

Re: [ovs-dev] [PATCH/RFC repost 5/8] datapath: Move last_action() helper to datapath.h

2014-09-19 Thread Thomas Graf
On 09/18/14 at 10:55am, Simon Horman wrote: > diff --git a/datapath/datapath.h b/datapath/datapath.h > index c5d3c86..74a15e6 100644 > --- a/datapath/datapath.h > +++ b/datapath/datapath.h > @@ -209,4 +209,9 @@ do { > \ > if (net_r

Re: [ovs-dev] [PATCH 2/2] travis: Allow testsuite to run with GCC or Clang.

2014-09-19 Thread Thomas Graf
On 09/19/14 at 01:09pm, Ben Pfaff wrote: > I don't see why the testsuite is supported only with GCC. The motivation was to keep the total build time on a reasonable level and below the < 1h limit for all build threads. ___ dev mailing list dev@openvswitc

Re: [ovs-dev] [PATCH 1/2] travis: Include testsuite.log on failure.

2014-09-19 Thread Thomas Graf
On 09/19/14 at 01:09pm, Ben Pfaff wrote: > CC: Thomas Graf > Signed-off-by: Ben Pfaff Nice Acked-by: Thomas Graf ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH 2/2] travis: Allow testsuite to run with GCC or Clang.

2014-09-19 Thread Thomas Graf
On 09/19/14 at 10:47pm, Thomas Graf wrote: > On 09/19/14 at 01:09pm, Ben Pfaff wrote: > > I don't see why the testsuite is supported only with GCC. > > The motivation was to keep the total build time on a reasonable level > and below the < 1h limit for all build thread

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

2014-09-20 Thread Thomas Graf
On 09/20/14 at 10:14am, Jiri Pirko wrote: > Sat, Sep 20, 2014 at 12:12:12AM CEST, john.r.fastab...@intel.com wrote: > >I was considering a slightly different approach where the > >device would report via netlink the fields/actions it > >supported rather than creating pre-defined enums for every > >

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

2014-09-20 Thread Thomas Graf
On 09/20/14 at 06:19am, Jamal Hadi Salim wrote: > The ovs guys are against this and now no *api exists*? > Write a 15 tuple classifier tc classifier and use it. I will be more > than happy to help you. I will get to it when we have basics L2 working > on real devices. Nothing speaks against having

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

2014-09-20 Thread Thomas Graf
On 09/20/14 at 07:32am, Jamal Hadi Salim wrote: > I am sorry to have tied the two together. Maybe not OVS but the approach > described is heaven for vendor SDKs. I fail to see the connection. You can use switch vendor SDK no matter how we define the kernel APIs. They already exist and have been de

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

2014-09-22 Thread Thomas Graf
On 09/20/14 at 03:50pm, Alexei Starovoitov wrote: > I think HW should not be limited by SW abstractions whether > these abstractions are called flows, n-tuples, bridge or else. > Really looking forward to see "device reporting the headers as > header fields (len, offset) and the associated parse gr

Re: [ovs-dev] [PATCH v2] datapath: Provide compatibility for kernels up to 3.17

2014-09-22 Thread Thomas Graf
On 09/20/14 at 07:54pm, Pravin Shelar wrote: > > +#define NET_NAME_UNKNOWN 0 > > +#define alloc_netdev(sizeof_priv, name, name_assign_type, setup) \ > > +alloc_netdev_mqs(sizeof_priv, name_assign_type, setup, 1, 1) > > +#endif > > + > I changed name_assign_type to name. Thanks Pravin.

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

2014-09-22 Thread Thomas Graf
On 09/22/14 at 08:10am, Tom Herbert wrote: > Thomas, can you (or someone else) quantify what the host case is. I > suppose there may be merit in using a switch on NIC for kernel bypass > scenarios, but I'm still having a hard time understanding how this > could be integrated into the host stack wit

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

2014-09-22 Thread Thomas Graf
On 09/22/14 at 03:40pm, Tom Herbert wrote: > On Mon, Sep 22, 2014 at 3:17 PM, Thomas Graf wrote: > > What makes stateful offload interesting to me is that the final > > desintation of a packet is known at RX and can be redirected to a > > queue or VF. This allows to build pac

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

2014-09-23 Thread Thomas Graf
On 09/22/14 at 06:36pm, John Fastabend wrote: > n-tuple has some deficiencies, > > - its not possible to get the capabilities to learn what > fields are supported by the device, what actions, etc. > > - its ioctl based so we have to poll the device > > - only supports a

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

2014-09-23 Thread Thomas Graf
On 09/22/14 at 03:40pm, Tom Herbert wrote: > On Mon, Sep 22, 2014 at 3:17 PM, Thomas Graf wrote: > > What makes stateful offload interesting to me is that the final > > desintation of a packet is known at RX and can be redirected to a > > queue or VF. This allows to build pac

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

2014-09-23 Thread Thomas Graf
On 09/22/14 at 07:16pm, Tom Herbert wrote: > Turn on UDP RSS on the device and I bet you'll see those differences > go away! Once we moved to UDP encapsulation, there's really little > value in looking at inner headers for RSS or ECMP, this should be > sufficient. Sure someone might want to parse t

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

2014-09-23 Thread Thomas Graf
On 09/23/14 at 12:11am, Andy Gospodarek wrote: > There are clearly some that are most interested in how an eSwitch on an > SR-IOV capable NIC be controlled can provide traditional forwarding help > as well as offload the various technologies they hope to terminate > at/inside their endpoint (host/g

[ovs-dev] [PATCH] datapath: Constify various function arguments

2014-09-23 Thread Thomas Graf
Help produce better optimized code. Signed-off-by: Thomas Graf --- datapath/actions.c | 2 +- datapath/datapath.c | 4 ++-- datapath/datapath.h | 2 +- datapath/flow_table.c | 2 +- datapath/flow_table.h | 2 +- datapath/vport-netdev.c | 2 +- datapath/vport.c| 4

Re: [ovs-dev] [PATCH] datapath: Fix double free when ovs_nla_copy_actions() fails

2014-09-23 Thread Thomas Graf
On 09/23/14 at 10:57am, Pravin Shelar wrote: > On Tue, Sep 23, 2014 at 12:31 AM, Thomas Graf wrote: > > On 09/17/14 at 02:02pm, Thomas Graf wrote: > >> ovs_nla_copy_actions() already frees the allocated actions buffers, > >> ovs_flow_cmd_new() will free it a

Re: [ovs-dev] [PATCH/RFC repost 5/8] datapath: Move last_action() helper to datapath.h

2014-09-24 Thread Thomas Graf
On 09/24/14 at 03:00pm, Simon Horman wrote: > On Fri, Sep 19, 2014 at 03:06:38PM +0100, Thomas Graf wrote: > > Can we rename & move this to instead? > > Sure, how about nla_is_last()? Sounds great ___ dev mailing list dev@o

<    1   2   3   4   5   6   7   8   9   10   >