From mboxrd@z Thu Jan 1 00:00:00 1970 From: Or Gerlitz Subject: Re: vxlan/veth performance issues on net.git + latest kernels Date: Wed, 4 Dec 2013 17:20:03 +0200 Message-ID: References: <529DF340.70602@mellanox.com> <1386084620.30495.28.camel@edumazet-glaptop2.roam.corp.google.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Cc: Eric Dumazet , Jerry Chu , Or Gerlitz , Eric Dumazet , Alexei Starovoitov , Pravin B Shelar , David Miller , netdev To: Joseph Gasparakis Return-path: Received: from mail-pb0-f54.google.com ([209.85.160.54]:33099 "EHLO mail-pb0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753488Ab3LDPUG (ORCPT ); Wed, 4 Dec 2013 10:20:06 -0500 Received: by mail-pb0-f54.google.com with SMTP id un15so23717887pbc.13 for ; Wed, 04 Dec 2013 07:20:05 -0800 (PST) In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: On Wed, Dec 4, 2013 at 11:41 AM, Or Gerlitz wrote: > On Wed, Dec 4, 2013 at 11:24 AM, Joseph Gasparakis > wrote: >> On Wed, 4 Dec 2013, Or Gerlitz wrote: > >>> nope! with the latest net tree, after handle_offloads is called in >>> vxlan_xmit_skb and before iptunnel_xmit is invoked, >>> skb_shinfo(skb)->gso_type is either 0 or 0x201 which is >>> (SKB_GSO_UDP_TUNNEL | SKB_GSO_TCPV4) and its the same value whether >>> the session runs over veth device or directly over the bridge, where >>> over veth and > 1 stream we see drops, bad perf, etc. >>> I am very interested in the VM case too, so will check it out and let you know. > >> Ok, I was really hoping that would be the same... > > So when running traffic from VM I do see SKB_GSO_DODGY bit being set! > my environment for running VMs with sane peformance was screwed a bit, I will bring it > up later today and see if unsetting the bit helps. so if the DODGY bit is left set, it simply doesn't work! it seems that guest GSO packets are just dropped As for the performance when the bit is unset in the vxlan driver as you suggested, I need to tune the VMs a bit more, later or tomorrow