Re: [ovs-dev] Windows port status

2013-11-22 Thread Alin Serdean
As you wish. Alin. From: Ben Pfaff [b...@nicira.com] Sent: Saturday, November 23, 2013 4:27 AM To: Alin Serdean Cc: Alessandro Pilotti; dev@openvswitch.org Subject: Re: [ovs-dev] Windows port status On Sat, Nov 23, 2013 at 12:23:41AM +, Alin Serdean wr

Re: [ovs-dev] [PATCH] ofproto-dpif: keep slow path flow time stamp up-to-date

2013-11-22 Thread Ben Pfaff
That sounds great, thanks a lot. On Fri, Nov 22, 2013 at 05:06:11PM -0800, Andy Zhou wrote: > Sure, I will test it more and wait for a bit before pushing, just in case > Guolin has additional feedback. Thanks for the review and redactor > suggestion. > > > On Fri, Nov 22, 2013 at 4:58 PM, Ben P

Re: [ovs-dev] Windows port status

2013-11-22 Thread Ben Pfaff
On Sat, Nov 23, 2013 at 12:23:41AM +, Alin Serdean wrote: > > That reads like a non sequitur, I don't see how it responds to my > > comments. > > My problem is where to insert the macro exactly. util.h perhaps? ___ dev mailing list dev@openvswitch.o

Re: [ovs-dev] [PATCH] ofproto-dpif: keep slow path flow time stamp up-to-date

2013-11-22 Thread Andy Zhou
Sure, I will test it more and wait for a bit before pushing, just in case Guolin has additional feedback. Thanks for the review and redactor suggestion. On Fri, Nov 22, 2013 at 4:58 PM, Ben Pfaff wrote: > Do you want to check it in then? > > On Fri, Nov 22, 2013 at 04:53:09PM -0800, Andy Zhou

Re: [ovs-dev] [PATCH] ofproto-dpif: keep slow path flow time stamp up-to-date

2013-11-22 Thread Ben Pfaff
Do you want to check it in then? On Fri, Nov 22, 2013 at 04:53:09PM -0800, Andy Zhou wrote: > Yes, this patch would eliminate code duplications. The logic looks right > to me. > > > On Fri, Nov 22, 2013 at 3:57 PM, Ben Pfaff wrote: > > > On Thu, Nov 21, 2013 at 08:45:22PM -0800, Andy Zhou wro

Re: [ovs-dev] [PATCH] ofproto-dpif: keep slow path flow time stamp up-to-date

2013-11-22 Thread Andy Zhou
Yes, this patch would eliminate code duplications. The logic looks right to me. On Fri, Nov 22, 2013 at 3:57 PM, Ben Pfaff wrote: > On Thu, Nov 21, 2013 at 08:45:22PM -0800, Andy Zhou wrote: > > Noting updating slow path subfacet's time stamp can cause their datapath > > flows deleted periodic

Re: [ovs-dev] Windows port status

2013-11-22 Thread Alin Serdean
> That reads like a non sequitur, I don't see how it responds to my > comments. My problem is where to insert the macro exactly. Alin. From: Ben Pfaff [b...@nicira.com] Sent: Saturday, November 23, 2013 2:04 AM To: Alin Serdean Cc: Alessandro Pilotti; dev@

Re: [ovs-dev] Windows port status

2013-11-22 Thread Ben Pfaff
Yes, exactly. On Fri, Nov 22, 2013 at 04:08:00PM -0500, Ethan Jackson wrote: > I think what Ben is saying is that we want some way to verify that no > one uses the old "%zu" macro accidentally. Basically, make should do > a grep for it, and fail if it's used. > > Ethan > > On Fri, Nov 22, 2013

Re: [ovs-dev] Windows port status

2013-11-22 Thread Ben Pfaff
On Fri, Nov 22, 2013 at 07:25:14PM +, Alin Serdean wrote: > > > PRI_ZU is a bad name because it doesn't follow the existing pattern. > > The name PRIuSIZE fits the pattern, so that is what I would suggest. > > > The existing PRI* macros only include a type modifier, not the format > > specifi

Re: [ovs-dev] openflow-1.2.h: Fix definition of OXM_OF_PBB_ISID.

2013-11-22 Thread Ben Pfaff
Thank you. I will apply this to master soon. On Thu, Nov 21, 2013 at 04:31:49PM -0800, Jarno Rajahalme wrote: > Acked-by: Jarno Rajahalme > > On Oct 8, 2013, at 13:42 PM, Ben Pfaff wrote: > > The ONF header file shows this as a 3-byte field. > > > > Reported-by: YAMAMOTO Takashi > > Signed-o

Re: [ovs-dev] [PATCH] ofproto-dpif: keep slow path flow time stamp up-to-date

2013-11-22 Thread Ben Pfaff
On Thu, Nov 21, 2013 at 08:45:22PM -0800, Andy Zhou wrote: > Noting updating slow path subfacet's time stamp can cause their datapath > flows deleted periodically. For example, CFM datapath flow have usespace > actions that are handled in dpif slow path. They are deleted and > recreated periodicall

Re: [ovs-dev] [PATCH v2] datapath: rhel: Move RHEL OVS hook registration to netdev_rx_handler_register() backport

2013-11-22 Thread Pravin Shelar
On Fri, Nov 22, 2013 at 2:57 PM, Thomas Graf wrote: > On 11/22/2013 11:47 PM, Pravin Shelar wrote: >> >> This patch actually fixes race in case of device is moved from one >> bridge to another. >> >> e.g. >> ovs-vsctl -- remove Bridge br0 ports -- add Bridge br1 >> ports >> >> events in this cas

Re: [ovs-dev] [PATCH v2] datapath: rhel: Move RHEL OVS hook registration to netdev_rx_handler_register() backport

2013-11-22 Thread Thomas Graf
On 11/22/2013 11:47 PM, Pravin Shelar wrote: This patch actually fixes race in case of device is moved from one bridge to another. e.g. ovs-vsctl -- remove Bridge br0 ports -- add Bridge br1 ports events in this case (This bug only effects RHEL6 kernel). 1. netdev destroy (vport1, dev1) : sch

Re: [ovs-dev] [PATCH] datapath: gre: Fix kernel 3.11 compatibility.

2013-11-22 Thread Pravin Shelar
pushed to master. Thanks. On Thu, Nov 21, 2013 at 7:06 PM, Jesse Gross wrote: > On Wed, Nov 20, 2013 at 9:50 AM, Pravin B Shelar wrote: >> On 3.11 kernel, gre module exports IP_GRE demux API, ovs needs >> to use it to register for GRE protocol handler. >> >> Reported-by: Nithin Nayak Sujir >>

Re: [ovs-dev] [PATCH v2] datapath: rhel: Move RHEL OVS hook registration to netdev_rx_handler_register() backport

2013-11-22 Thread Pravin Shelar
This patch actually fixes race in case of device is moved from one bridge to another. e.g. ovs-vsctl -- remove Bridge br0 ports -- add Bridge br1 ports events in this case (This bug only effects RHEL6 kernel). 1. netdev destroy (vport1, dev1) : schedule rcu callback (vport1). 2. netdev create (

[ovs-dev] [tcpdump 1/5] byte-order: Make uint32_byteswap() available regardless of endianness.

2013-11-22 Thread Ben Pfaff
pcap_read() can use it whether we're big-endian or not. Signed-off-by: Ben Pfaff --- lib/byte-order.h |4 +--- lib/pcap-file.c |6 ++ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/lib/byte-order.h b/lib/byte-order.h index f9be78b..352f91e 100644 --- a/lib/byte-order

[ovs-dev] [tcpdump 4/5] ovs-ofctl: New command "ofp-parse-pcap" to dump OpenFlow from PCAP files.

2013-11-22 Thread Ben Pfaff
Based on the number of people who ask about Wireshark support for OpenFlow, this is likely to be widely useful. Signed-off-by: Ben Pfaff --- lib/pcap-file.c | 138 ++ lib/pcap-file.h |9 +++ utilities/ovs-ofctl.8.in | 18 +-

[ovs-dev] [tcpdump 3/5] pcap-file: Add timestamp support for reading and writing pcap files.

2013-11-22 Thread Ben Pfaff
Only the write support is initially useful, but an upcoming commit will add a user for the read support. Signed-off-by: Ben Pfaff --- lib/pcap-file.c | 31 +-- lib/pcap-file.h |2 +- tests/test-flows.c|4 ++-- utilities/ovs-ofctl.c |2 +-

[ovs-dev] [tcpdump 2/5] ofpbuf: New function ofpbuf_shift().

2013-11-22 Thread Ben Pfaff
An upcoming commit will add the first user. Signed-off-by: Ben Pfaff --- lib/ofpbuf.c | 18 ++ lib/ofpbuf.h |1 + 2 files changed, 19 insertions(+) diff --git a/lib/ofpbuf.c b/lib/ofpbuf.c index d578ab5..27b6f17 100644 --- a/lib/ofpbuf.c +++ b/lib/ofpbuf.c @@ -359,6 +359,2

[ovs-dev] [tcpdump 5/5] [RFC] Add support for capturing all OpenFlow traffic to a .pcap file.

2013-11-22 Thread Ben Pfaff
Occasionally I get asked for the ability to capture all OpenFlow traffic in a raw format, to allow for analysis and debugging. OVS has a few existing tools for this but none of them really fit the bill. For example, turning up the log level for the "vconn" module will dump all traffic but only in

[ovs-dev] [PATCH] datapath: Use percpu allocator for flow-stats.

2013-11-22 Thread Pravin B Shelar
Use percpu allocator for stats due to objection to stats array. But percpu allocator is not designed for high churn allocation/ deallcation. so we need to avoid allocating percpu flow for short lived flows. One cheaper way to detect flow is by checking if 5-tuple used in RSS are masked or not. if a

Re: [ovs-dev] Windows port status

2013-11-22 Thread Ethan Jackson
I think what Ben is saying is that we want some way to verify that no one uses the old "%zu" macro accidentally. Basically, make should do a grep for it, and fail if it's used. Ethan On Fri, Nov 22, 2013 at 2:25 PM, Alin Serdean wrote: > >> PRI_ZU is a bad name because it doesn't follow the exi

Re: [ovs-dev] [PATCH v3 2/2] Classifier: Track address prefixes.

2013-11-22 Thread Jarno Rajahalme
On Nov 22, 2013, at 12:32 PM, Ben Pfaff wrote: > Is it OK for me to wait for a v4 to continue review? Yes, Jarno ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH v3 2/2] Classifier: Track address prefixes.

2013-11-22 Thread Ben Pfaff
On Fri, Nov 22, 2013 at 11:56:19AM -0800, Jarno Rajahalme wrote: > On Nov 21, 2013, at 5:10 PM, Ben Pfaff wrote: > > I am not done studying this code, but I have some preliminary > > comments. > > > > Some of the fields that allow prefix length are in network byte order, > > and others (the regis

Re: [ovs-dev] [PATCH v3 2/2] Classifier: Track address prefixes.

2013-11-22 Thread Jarno Rajahalme
Ben, Thank you very much for the review so far! See responses below: On Nov 21, 2013, at 5:10 PM, Ben Pfaff wrote: > I am not done studying this code, but I have some preliminary > comments. > > Some of the fields that allow prefix length are in network byte order, > and others (the registers)

Re: [ovs-dev] Windows port status

2013-11-22 Thread Alin Serdean
> PRI_ZU is a bad name because it doesn't follow the existing pattern. > The name PRIuSIZE fits the pattern, so that is what I would suggest. > The existing PRI* macros only include a type modifier, not the format > specifier, so PRIuSIZE should not include the format specifier either. Is this w

Re: [ovs-dev] [PATCHv2 2/5] ofproto-dpif: Don't poll ports when nothing changes

2013-11-22 Thread Ben Pfaff
On Fri, Nov 22, 2013 at 10:41:18AM -0800, Joe Stringer wrote: > On 20 November 2013 11:15, Ben Pfaff wrote: > >> NB: I'm tracking STP changes in ofproto_port_set_state(), as the testsuite > >> would fail when I tracked them in stp_set_port_state(). The latter makes > >> more > >> sense to me, but

Re: [ovs-dev] [PATCHv2 2/5] ofproto-dpif: Don't poll ports when nothing changes

2013-11-22 Thread Joe Stringer
On 20 November 2013 11:15, Ben Pfaff wrote: >> NB: I'm tracking STP changes in ofproto_port_set_state(), as the testsuite >> would fail when I tracked them in stp_set_port_state(). The latter makes more >> sense to me, but I clearly don't understand some interaction there because it >> makes STP s

[ovs-dev] [PATCH net-next 8/8] openvswitch: Use skb_zerocopy() for upcall

2013-11-22 Thread Thomas Graf
Use of skb_zerocopy() can avoids the expensive call to memcpy() when copying the packet data into the Netlink skb. Completes checksum through skb_checksum_help() if needed. Zerocopy is only performed if user space supported unaligned Netlink messages. memory mapped netlink i/o is preferred over ze

[ovs-dev] [PATCH net-next 3/8] openvswitch: Enable memory mapped Netlink i/o

2013-11-22 Thread Thomas Graf
Use memory mapped Netlink i/o for all unicast openvswitch communication if a ring has been set up. Benchmark * pktgen -> ovs internal port * 5M pkts, 5M flows * 4 threads, 8 cores Before: Result: OK: 67418743(c67108212+d310530) usec, 500 (9000byte,0frags) 74163pps 5339Mb/sec (53397360

[ovs-dev] [PATCH net-next 7/8] openvswitch: Drop user features if old user space attempted to create datapath

2013-11-22 Thread Thomas Graf
Drop user features if an outdated user space instance that does not understand the concept of user_features attempted to create a new datapath. Signed-off-by: Thomas Graf Reviewed-by: Daniel Borkmann --- include/uapi/linux/openvswitch.h | 10 +- net/openvswitch/datapath.c | 9 +++

[ovs-dev] [PATCH net-next 6/8] openvswitch: Allow update of dp with OVS_DP_CMD_NEW if NLM_F_REPLACE is set

2013-11-22 Thread Thomas Graf
Consolidates ovs_dp_cmd_new() and ovs_dp_cmd_set() to simplify handling and avoid code duplication. Allows user space to specify NLM_F_REPLACE with OVS_DP_CMD_NEW and overwrite the settings such as the user features of an existing datapath. Signed-off-by: Thomas Graf Reviewed-by: Daniel Borkmann

[ovs-dev] [PATCH net-next 5/8] openvswitch: Allow user space to announce ability to accept unaligned Netlink messages

2013-11-22 Thread Thomas Graf
Signed-off-by: Thomas Graf Reviewed-by: Daniel Borkmann --- include/uapi/linux/openvswitch.h | 4 net/openvswitch/datapath.c | 14 ++ net/openvswitch/datapath.h | 2 ++ 3 files changed, 20 insertions(+) diff --git a/include/uapi/linux/openvswitch.h b/include/uapi/

[ovs-dev] [PATCH net-next 2/8] netlink: Avoid netlink mmap alloc if msg size exceeds frame size

2013-11-22 Thread Thomas Graf
An insufficent ring frame size configuration can lead to an unnecessary skb allocation for every Netlink message. Check frame size before taking the queue lock and allocating the skb and re-check with lock to be safe. Signed-off-by: Thomas Graf Reviewed-by: Daniel Borkmann --- net/netlink/af_ne

[ovs-dev] [PATCH net-next 0/8 v7] Open vSwitch upcall optimiziations

2013-11-22 Thread Thomas Graf
Reposting this before the merge window as it will go through Jesse's tree. Given jumbo frames, the capacity of the slow path is improved by a factor of 2.5x. V7: - removed unintential kernel-doc comment - WARN_ONCE() -> WARN(), message on single line, added \n V6: - Added memory mapped netli

[ovs-dev] [PATCH net-next 1/8] genl: Add genlmsg_new_unicast() for unicast message allocation

2013-11-22 Thread Thomas Graf
Allocates a new sk_buff large enough to cover the specified payload plus required Netlink headers. Will check receiving socket for memory mapped i/o capability and use it if enabled. Will fall back to non-mapped skb if message size exceeds the frame size of the ring. Signed-of-by: Thomas Graf Rev

[ovs-dev] [PATCH net-next 4/8] net: Export skb_zerocopy() to zerocopy from one skb to another

2013-11-22 Thread Thomas Graf
Make the skb zerocopy logic written for nfnetlink queue available for use by other modules. Signed-off-by: Thomas Graf Reviewed-by: Daniel Borkmann --- include/linux/skbuff.h | 3 ++ net/core/skbuff.c| 85 net/netfilter/nfn

Re: [ovs-dev] [PATCH openvswitch] linux: Signal datapath that unaligned Netlink message can be received

2013-11-22 Thread Sergei Shtylyov
Hello. On 22-11-2013 0:52, Ben Pfaff wrote: Following commit (''netlink: Do not enforce alignment of last Netlink attribute''), signal the ability to receive unaligned Netlink messages to the datapath to enable utilization of zerocopy optimizations. Signed-off-by: Thomas Graf [...] diff

[ovs-dev] Community Manager

2013-11-22 Thread Grupo IOE - Universidad de Alcalá
Title: FORMACIÓN SUPERIOR EN REDES SOCIALES Y MEDIOS ONLINE - UNIVERSIDAD DE ALCALÁ FORMACIÓN SUPERIOR EN REDES SOCIALES Y MEDIOS ONLINE UNIVERSIDAD DE ALCALÁ Pulse AQUÍ si no visualiza correctamente las imágenes.