[ovs-dev] [PATCH] datapath: support Linux 3.7

2012-12-18 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- datapath/datapath.c | 54 - datapath/linux/Modules.mk |1 + datapath/linux/compat/include/net/genetlink.h | 15 ++- datapath/linux/compat/include/net/inet_frag.h | 16 da

Re: [ovs-dev] [PATCH] datapath: support Linux 3.7

2012-12-18 Thread Lori Jakab
On 12/18/12 10:40, Isaku Yamahata wrote: > Signed-off-by: Isaku Yamahata > --- > datapath/datapath.c | 54 > - > datapath/linux/Modules.mk |1 + > datapath/linux/compat/include/net/genetlink.h | 15 ++- > datapath/

[ovs-dev] [PATCHv2 0/4] SCTP Support

2012-12-18 Thread Joe Stringer
This patchset introduces matching support for sctp src,dst ports. Round two addresses feedback from the previous posting and adds many more tests. In particular, there are now tests to check that set-field behaviour for SCTP src/dst port is correct when re-calculating checksums. The checksum tests

[ovs-dev] [PATCHv2 3/4] datapath: Add SCTP support

2012-12-18 Thread Joe Stringer
Signed-off-by: Joe Stringer --- v2: Remove SCTP checksum recalculation when changing IP address Calculate checksums as delta from incoming checksum --- datapath/actions.c | 37 + datapath/checksum.c|3 + datapath/datapath.c

[ovs-dev] [PATCHv2 1/4] lib: Add CRC32C Implementation

2012-12-18 Thread Joe Stringer
This implementation was derived from FreeBSD: http://code.google.com/p/freebsd-head/source/browse/sys/libkern/crc32.c Signed-off-by: Joe Stringer --- v2: Update copyright notice Use network byte-order Include config.h (Fix sparse error) --- lib/automake.mk |2 + lib/crc32c.c| 14

[ovs-dev] [PATCHv2 4/4] ofp-util: Add SCTP support

2012-12-18 Thread Joe Stringer
Signed-off-by: Joe Stringer --- v2: Rebase against master Add flowmod parse tests Add set-field tests Add NEWS item Add sctp to ovs-ofctl.8 --- NEWS |1 + OPENFLOW-1.1+|4 -- lib/match.c |4 ++ lib/meta-flow.c | 4

[ovs-dev] [PATCHv2 2/4] dpif: Add SCTP support

2012-12-18 Thread Joe Stringer
Signed-off-by: Joe Stringer --- v2: Fix broken test Use the correct packet pointer Calculate checksums as delta from incoming checksum --- include/linux/openvswitch.h |6 + include/sparse/netinet/in.h |1 + lib/dpif-netdev.c |6 + lib/flow.c

[ovs-dev] [PATCH 2/4] v2 Add Openflow 1.2 role request/reply processing, update OF 1.2 tests.

2012-12-18 Thread Jarno Rajahalme
v2 adds struct ofputil_role_request and encode/decode functions for role request/reply. Signed-off-by: Jarno Rajahalme --- lib/ofp-msgs.h | 24 ++- lib/ofp-print.c| 43 +-- lib/ofp-util.c | 83

[ovs-dev] [PATCH] ofproto: features reply of openflow13 does not have ports

2012-12-18 Thread SUGYO Kazushi
Signed-off-by: SUGYO Kazushi diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c index f95d6ef..cbabae9 100644 --- a/ofproto/ofproto.c +++ b/ofproto/ofproto.c @@ -2245,8 +2245,11 @@ handle_features_request(struct ofconn *ofconn, const stru features.auxiliary_id = 0; b = ofputil_encode_sw

Re: [ovs-dev] [PATCH] ofproto: features reply of openflow13 does not have ports

2012-12-18 Thread Jarno Rajahalme
On Dec 18, 2012, at 14:51 , ext SUGYO Kazushi wrote: > Signed-off-by: SUGYO Kazushi > > diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c > index f95d6ef..cbabae9 100644 > --- a/ofproto/ofproto.c > +++ b/ofproto/ofproto.c > @@ -2245,8 +2245,11 @@ handle_features_request(struct ofconn *ofconn, co

[ovs-dev] [PATCH] v2: Add ODP level handling of OVS_KEY_ATTR_IPV4_TUNNEL.

2012-12-18 Thread Jarno Rajahalme
v2 addresses comments by Jesse. Signed-off-by: Jarno Rajahalme --- lib/odp-util.c | 85 +++- tests/odp.at | 15 ++ 2 files changed, 93 insertions(+), 7 deletions(-) diff --git a/lib/odp-util.c b/lib/odp-util.c index f1075e3..1ba2

[ovs-dev] [PATCH] vswitchd, ofproto: New other_config setting: "dp-desc".

2012-12-18 Thread Felician Nemeth
Signed-off-by: Felician Nemeth --- ofproto/ofproto.c| 12 ofproto/ofproto.h|2 ++ vswitchd/bridge.c| 14 ++ vswitchd/vswitch.xml |6 ++ 4 files changed, 34 insertions(+) diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c index f95d6ef..db68a1

Re: [ovs-dev] [PATCHv2] vswitchd: log skb_mark and skb_priority

2012-12-18 Thread Jesse Gross
On Mon, Dec 17, 2012 at 9:08 PM, Ansis Atteka wrote: > This patch adds logging support for skb_mark and skb_priority. > > Signed-off-by: Ansis Atteka Looks good to me, thanks. ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listi

Re: [ovs-dev] [PATCH] v2: Add ODP level handling of OVS_KEY_ATTR_IPV4_TUNNEL.

2012-12-18 Thread Jesse Gross
On Tue, Dec 18, 2012 at 5:57 AM, Jarno Rajahalme wrote: > v2 addresses comments by Jesse. > > Signed-off-by: Jarno Rajahalme It's helpful if you add comments about changes between patches below a separator of --- so git will automatically trim them out when the patch is applied. > diff --git a/

[ovs-dev] [PATCH] meta-flow: Fix and simplify mf_get_mask().

2012-12-18 Thread Ben Pfaff
This function can be implemented as a trivial wrapper around mf_get_value(), which I hadn't noticed before, so it's better to do it that way. Also, examining the code that is removed, it had some bugs in it (for example, all MFF_TUN_* fields were treated as if they were MFF_TUN_ID) which mf_get_va

Re: [ovs-dev] [PATCH] meta-flow: Fix and simplify mf_get_mask().

2012-12-18 Thread Jesse Gross
On Tue, Dec 18, 2012 at 9:45 AM, Ben Pfaff wrote: > This function can be implemented as a trivial wrapper around > mf_get_value(), which I hadn't noticed before, so it's better to do it > that way. Also, examining the code that is removed, it had some bugs in > it (for example, all MFF_TUN_* fiel

Re: [ovs-dev] [PATCH] meta-flow: Fix and simplify mf_get_mask().

2012-12-18 Thread Ben Pfaff
On Tue, Dec 18, 2012 at 10:02:27AM -0800, Jesse Gross wrote: > On Tue, Dec 18, 2012 at 9:45 AM, Ben Pfaff wrote: > > This function can be implemented as a trivial wrapper around > > mf_get_value(), which I hadn't noticed before, so it's better to do it > > that way. Also, examining the code that

Re: [ovs-dev] [PATCH] datapath: support Linux 3.7

2012-12-18 Thread Jesse Gross
On Tue, Dec 18, 2012 at 12:40 AM, Isaku Yamahata wrote: > Signed-off-by: Isaku Yamahata > --- > datapath/datapath.c | 54 > - > datapath/linux/Modules.mk |1 + > datapath/linux/compat/include/net/genetlink.h | 15

Re: [ovs-dev] [PATCHv2] vswitchd: log skb_mark and skb_priority

2012-12-18 Thread Ansis Atteka
On Tue, Dec 18, 2012 at 9:10 AM, Jesse Gross wrote: > On Mon, Dec 17, 2012 at 9:08 PM, Ansis Atteka wrote: >> This patch adds logging support for skb_mark and skb_priority. >> >> Signed-off-by: Ansis Atteka > > Looks good to me, thanks. Thanks for the review. I pushed this to master and branch-1

[ovs-dev] [PATCH 3/4] vswitchd: Add new configuration table for IPFIX collectors.

2012-12-18 Thread Romain Lenglet
Signed-off-by: Romain Lenglet --- ofproto/automake.mk | 2 + ofproto/ofproto-dpif-ipfix.c | 125 +++ ofproto/ofproto-dpif-ipfix.h | 28 ++ ofproto/ofproto-dpif.c | 25 + ofproto/ofproto-provider.h | 8 +++ ofproto/ofpr

[ovs-dev] Add the SAMPLE_IPFIX vendor action

2012-12-18 Thread Romain Lenglet
This is the complete patch series to add a SAMPLE_IPFIX vendor action to do statistical sampling of packets and send one IPFIX message for every sample. I have updated the first two patches (1/4 and 2/4) to use only 16 bits for the probability in the OpenFlow action, making it 8 bytes shorter, and

[ovs-dev] [PATCH 1/4] ofp-actions: Add the NXAST_SAMPLE_IPFIX vendor action

2012-12-18 Thread Romain Lenglet
Define NXAST_SAMPLE_IPFIX OpenFlow vendor action and the corresponding OFPACT_SAMPLE_IPFIX OVS action. Signed-off-by: Romain Lenglet --- NEWS | 1 + include/openflow/nicira-ext.h | 22 + lib/ofp-actions.c | 45

[ovs-dev] [PATCH 2/4] ofproto: Translate NXAST_SAMPLE_IPFIX actions into SAMPLE dp actions

2012-12-18 Thread Romain Lenglet
Signed-off-by: Romain Lenglet --- lib/odp-util.c | 19 lib/odp-util.h | 9 +- ofproto/ofproto-dpif.c | 81 +- tests/odp.at | 1 + 4 files changed, 95 insertions(+), 15 deletions(-) diff --git a/lib/odp-u

Re: [ovs-dev] [PATCH 12/13] Upstream UDP: Add generic Tunnel segmentation.

2012-12-18 Thread Jesse Gross
On Thu, Nov 22, 2012 at 7:57 AM, Pravin B Shelar wrote: > diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h > index 585aca7..a23df86 100644 > --- a/include/linux/skbuff.h > +++ b/include/linux/skbuff.h > @@ -422,6 +424,7 @@ struct sk_buff { > __u16 csum_offset;

Re: [ovs-dev] [PATCH 13/13] Upstream VXLAN: Use UDP Tunnel segmention.

2012-12-18 Thread Jesse Gross
On Thu, Nov 22, 2012 at 7:57 AM, Pravin B Shelar wrote: > From: Pravin Shelar > > Signed-off-by: Pravin B Shelar > --- > drivers/net/vxlan.c | 27 ++- > 1 files changed, 22 insertions(+), 5 deletions(-) Looks good, modulo changes related to earlier comments and upstre

[ovs-dev] [leaks 1/4] ofproto-dpif: Avoid potential undefined behavior in type_run().

2012-12-18 Thread Ben Pfaff
When HMAP_FOR_EACH completes, the value in the loop control variable is not necessarily NULL. It is NULL minus the offset of the hmap_node struct member, which is nonnull if that offset is nonzero. Currently, 'all_ofproto_dpifs_node' is the first member in struct ofproto_dpif, so there is no real

[ovs-dev] [leaks 3/4] ofproto-dpif: Fix another memory leak in type_run().

2012-12-18 Thread Ben Pfaff
'devname' needs to be destroyed whether it's the datapath device or not. Signed-off-by: Ben Pfaff --- ofproto/ofproto-dpif.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c index b78d6cf..6ce9a07 100644 --- a/ofproto/ofpr

[ovs-dev] [leaks 2/4] ofproto-dpif: Fix memory leak in type_run().

2012-12-18 Thread Ben Pfaff
The dpif_port_destroy() call was in the dpif_port_query_by_name() error path, when there's nothing to destroy, rather than in the "success" path, where there is data to destroy. Signed-off-by: Ben Pfaff --- ofproto/ofproto-dpif.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff

[ovs-dev] [leaks 4/4] ofproto, ofproto-dpif: Fix memory leaks of struct iface_hint structures.

2012-12-18 Thread Ben Pfaff
Signed-off-by: Ben Pfaff --- ofproto/ofproto-dpif.c |3 ++- ofproto/ofproto.c |3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c index 6ce9a07..578e6d7 100644 --- a/ofproto/ofproto-dpif.c +++ b/ofproto/ofproto-dpif.c

Re: [ovs-dev] [leaks 1/4] ofproto-dpif: Avoid potential undefined behavior in type_run().

2012-12-18 Thread Justin Pettit
Looks good. Thanks. --Justin On Dec 18, 2012, at 1:51 PM, Ben Pfaff wrote: > When HMAP_FOR_EACH completes, the value in the loop control variable is not > necessarily NULL. It is NULL minus the offset of the hmap_node struct > member, which is nonnull if that offset is nonzero. Currently, >

Re: [ovs-dev] [leaks 2/4] ofproto-dpif: Fix memory leak in type_run().

2012-12-18 Thread Justin Pettit
D'oh. Thanks. --Justin On Dec 18, 2012, at 1:51 PM, Ben Pfaff wrote: > The dpif_port_destroy() call was in the dpif_port_query_by_name() error > path, when there's nothing to destroy, rather than in the "success" path, > where there is data to destroy. > > Signed-off-by: Ben Pfaff > --- > o

Re: [ovs-dev] [leaks 3/4] ofproto-dpif: Fix another memory leak in type_run().

2012-12-18 Thread Justin Pettit
Looks good. --Justin On Dec 18, 2012, at 1:51 PM, Ben Pfaff wrote: > 'devname' needs to be destroyed whether it's the datapath device or not. > > Signed-off-by: Ben Pfaff > --- > ofproto/ofproto-dpif.c |3 ++- > 1 files changed, 2 insertions(+), 1 deletions(-) > > diff --git a/ofproto/of

Re: [ovs-dev] [leaks 4/4] ofproto, ofproto-dpif: Fix memory leaks of struct iface_hint structures.

2012-12-18 Thread Justin Pettit
Looks good. Thanks! --Justin On Dec 18, 2012, at 1:51 PM, Ben Pfaff wrote: > Signed-off-by: Ben Pfaff > --- > ofproto/ofproto-dpif.c |3 ++- > ofproto/ofproto.c |3 ++- > 2 files changed, 4 insertions(+), 2 deletions(-) > > diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dp

[ovs-dev] [PATCH] meta-flow: Correctly byteswap skb_priority/skb_mark for mf_value.

2012-12-18 Thread Ben Pfaff
Fixes the following sparse warnings: meta-flow.c:947:21: warning: incorrect type in assignment (different base types) meta-flow.c:947:21:expected restricted __be32 [usertype] be32 meta-flow.c:947:21:got unsigned int const [unsigned] [usertype] skb_priority meta-flow.c:951:21: warning: inco

Re: [ovs-dev] [PATCH] meta-flow: Correctly byteswap skb_priority/skb_mark for mf_value.

2012-12-18 Thread Jesse Gross
On Tue, Dec 18, 2012 at 3:54 PM, Ben Pfaff wrote: > Fixes the following sparse warnings: > > meta-flow.c:947:21: warning: incorrect type in assignment (different base > types) > meta-flow.c:947:21:expected restricted __be32 [usertype] be32 > meta-flow.c:947:21:got unsigned int const [unsi

Re: [ovs-dev] [PATCH] meta-flow: Correctly byteswap skb_priority/skb_mark for mf_value.

2012-12-18 Thread Ben Pfaff
On Tue, Dec 18, 2012 at 04:06:54PM -0800, Jesse Gross wrote: > On Tue, Dec 18, 2012 at 3:54 PM, Ben Pfaff wrote: > > Fixes the following sparse warnings: > > > > meta-flow.c:947:21: warning: incorrect type in assignment (different base > > types) > > meta-flow.c:947:21:expected restricted __b

Re: [ovs-dev] [leaks 4/4] ofproto, ofproto-dpif: Fix memory leaks of struct iface_hint structures.

2012-12-18 Thread Ben Pfaff
Thanks for all the reviews. I pushed these to master. ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH] meta-flow: Correctly byteswap skb_priority/skb_mark for mf_value.

2012-12-18 Thread Jesse Gross
On Tue, Dec 18, 2012 at 4:09 PM, Ben Pfaff wrote: > On Tue, Dec 18, 2012 at 04:06:54PM -0800, Jesse Gross wrote: >> On Tue, Dec 18, 2012 at 3:54 PM, Ben Pfaff wrote: >> > Fixes the following sparse warnings: >> > >> > meta-flow.c:947:21: warning: incorrect type in assignment (different base >> >

Re: [ovs-dev] [PATCH] meta-flow: Correctly byteswap skb_priority/skb_mark for mf_value.

2012-12-18 Thread Ben Pfaff
On Tue, Dec 18, 2012 at 04:38:44PM -0800, Jesse Gross wrote: > On Tue, Dec 18, 2012 at 4:09 PM, Ben Pfaff wrote: > > On Tue, Dec 18, 2012 at 04:06:54PM -0800, Jesse Gross wrote: > >> On Tue, Dec 18, 2012 at 3:54 PM, Ben Pfaff wrote: > >> > Fixes the following sparse warnings: > >> > > >> > meta-f

Re: [ovs-dev] [PATCH] datapath: support Linux 3.7

2012-12-18 Thread Isaku Yamahata
Sure, will do. On Tue, Dec 18, 2012 at 10:29:07AM -0800, Jesse Gross wrote: > On Tue, Dec 18, 2012 at 12:40 AM, Isaku Yamahata > wrote: > > Signed-off-by: Isaku Yamahata > > --- > > datapath/datapath.c | 54 > > - > > datapath/linux/Modules.

Re: [ovs-dev] [PATCH] v2: Add ODP level handling of OVS_KEY_ATTR_IPV4_TUNNEL.

2012-12-18 Thread Jarno Rajahalme
On Dec 18, 2012, at 19:37 , ext Jesse Gross wrote: > On Tue, Dec 18, 2012 at 5:57 AM, Jarno Rajahalme > wrote: >> diff --git a/lib/odp-util.c b/lib/odp-util.c >> index f1075e3..1ba241d 100644 >> --- a/lib/odp-util.c >> +++ b/lib/odp-util.c >> static void >> -commit_set_tun_id_action(const struct