From owner-freebsd-net@freebsd.org Mon Mar 20 11:50:42 2017 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7347DD1458C for ; Mon, 20 Mar 2017 11:50:42 +0000 (UTC) (envelope-from v.maffione@gmail.com) Received: from mail-ot0-x22d.google.com (mail-ot0-x22d.google.com [IPv6:2607:f8b0:4003:c0f::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 293C81C30 for ; Mon, 20 Mar 2017 11:50:42 +0000 (UTC) (envelope-from v.maffione@gmail.com) Received: by mail-ot0-x22d.google.com with SMTP id x37so130506057ota.2 for ; Mon, 20 Mar 2017 04:50:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=sNPLlaP9TXAH7+iFn6N8rJN9kSyyOOfOtm+WQQ3C53w=; b=H063e6bM+gEzSwAd15hDzkopsKI9oA4d+5tGSecRiY9B1vHrVCyTY4XJUAgvHvWD9T 3A+c1erAzHv/ExUcjjs39OKlJtZA/uAJpk2fCemLdOTK+70hdDY5e1hPMmcDOlLGwCT0 jb1bznm9GWJ/8KLUlC1noJHKN29KYweYh4nkF52q/mSEE5emb0BBDnMPqDwYyI5SfQwo 5g5DBpuVXsnsn3s5hPjjDPRhK5oU3cxdmb1gM6FMdbYIi/Jng1vtkk0iO/P42MOBQZ9/ oSe0E7r8YEqaiZsQVlyfb9AQqA4IRN/cSr6R7oUmqckqh18N+BH4CEE0QjezmEKWEyOc +QhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=sNPLlaP9TXAH7+iFn6N8rJN9kSyyOOfOtm+WQQ3C53w=; b=MobzEG31n1XnwdZ38hQneXyDHOOeXVJI4gLwbbdCBUZXNHMdkgIHTcy/q2htspdmXh H6xeX6btNKMa3JZFdk3XkvQ76m/UDzytQFkZJ80ZMDTSXWstqH7SxFKiTkOPM5W0bXzq e33MCCWMHh4e9Wl7X4qxH/R2XBYSbn2TLOllvBlANKRKDI5nNjRDXy0nOfbLvyw0/aG7 G+RltSgJszT+vt9u8e+JG2XQtt0/vYFjPRIq8fSMQV7p/VeJYkt9/Zmpaakqs7+mf4xs DMXoKf+UH/ZtvIiXqWwcZM3B5VXaK5HFwk5BB4LZFQefQEPLLbkRZFIIUygkqnBsTGw+ 1ojw== X-Gm-Message-State: AFeK/H1otH96JSIaE1B99XXdtqo0hvR2yp1hZsSmqY4tbfj26DogLAXbj/gJFoR1tBniqdYqvPxEsqlETNUjWA== X-Received: by 10.157.11.28 with SMTP id a28mr17521314ota.121.1490010641429; Mon, 20 Mar 2017 04:50:41 -0700 (PDT) MIME-Version: 1.0 Received: by 10.157.50.45 with HTTP; Mon, 20 Mar 2017 04:50:40 -0700 (PDT) In-Reply-To: <58CFA606.7090306@omnilan.de> References: <58CBA727.3040108@omnilan.de> <58CBBF7A.8050604@omnilan.de> <58CC26CF.5050708@omnilan.de> <58CFA606.7090306@omnilan.de> From: Vincenzo Maffione Date: Mon, 20 Mar 2017 12:50:40 +0100 Message-ID: Subject: Re: Are ./valte-ctl and ./bridge friends or competitors? To: Harry Schmalzbauer Cc: "freebsd-net@freebsd.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Mar 2017 11:50:42 -0000 2017-03-20 10:51 GMT+01:00 Harry Schmalzbauer : > Bez=C3=BCglich Vincenzo Maffione's Nachricht vom 18.03.2017 09:29 (localt= ime): > >=E2=80=A6 > >>> Actually, there is pending work on bhyve and netmap, that is going to > be > >>> merged soon, available at https://github.com/vmaffione/freebsd/ in > >>> branch ptnet-head. > >>> > >>> If you are interested, here there is some information > >>> https://wiki.freebsd.org/DevSummit/201609?action=3D > >> AttachFile&do=3Dview&target=3D20160923-freebsd-summit-ptnet.pdf > >>> >> AttachFile&do=3Dview&target=3D20160923-freebsd-summit-ptnet.pdf> > >>> together with bhyve cmdlines. > > Congratulations, nice work and presentation :-) > Thanks! > > =E2=80=A6 > >> So I'm a bit lost regarding furhter decisions. My prefered if_lagg(4) > >> setup doesn't work with netmap at the moment, if_bridge(4) has > >> in-house-overhead and forces me to either drop jumbo frames completely > >> or use 9k MTU for any bridge member. > >> Will look into openvSwitch. Or better get some card providing VFs? > >> Or wait the ptnet merge and check if I can deploy my desired setup the= n? > >> And, I want to keep TSO and HWVLAN_TAG on the host interfaces=E2=80=A6 > >> > >> > > It depends on your requirements, in terms of connectivity between VMs a= nd > > NICs and required performance (for a given workload, e.g. average > > packet-size, average packet rate, etc.). > > If you really want TSO an other offloadings on the phyisical NIC, then > you > > cannot use that NIC in netmap mode (e.g. attaching it to VALE). > > So to summarize for newbies exploring netmap(4) world in combination > with physical uplinks and virtual interfaces, it's important to do the > following uplink NIC configuration (ifconfig(8)): > -rxcsum -txcsum -rxcsum6 -txcsum6 -tso -lro promisc > Exactly. This is mentioned at the very end of netmap(4): "netmap does not use features such as checksum offloading, TCP segmentation offloading, encryption, VLAN encapsulation/decapsulation, etc. When using netmap to exchange packets with the host stack, make sure to disable these features." But it is probably a good idea to add these example ifconfig instructions somewhere (man page or at least the README in the netmap repo). > > I guess vlanhwtag, vlanhwfilter and vlanhwtso don't interfere, do they? > Well, I think they interfere: if you receive a tagged packet and the NIC strips the tag and puts it in the packet descriptor, then with netmap you will see the untagged packet, and you wouldn't have a way to see the tag. Cheers, Vincenzo > > Thanks, > > -harry > --=20 Vincenzo Maffione