Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp3559720pxx; Mon, 2 Nov 2020 12:08:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJxphdShb/TFKo/s0f/UtuYUSKreU7EgbU51iBeKX3KNVVXuTI3ZxVH6SHuq3f+LASRdgeYR X-Received: by 2002:a17:906:c08f:: with SMTP id f15mr16421117ejz.97.1604347701403; Mon, 02 Nov 2020 12:08:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604347701; cv=none; d=google.com; s=arc-20160816; b=yZ3vzvm7eNYGgQXZ7SkSb/OQy7kvHr12dVOE14LFlcz7eWtLqH6lcq5Hd7hLctjvCG w//9h9Z5rJ+7uARAlt9k6nIRtduiU3Jx1Q1nLS5dt9MtOBqo2GLh4BC29izMdyzRi3le R3dr/xD21d+k4YYzsMYlhDZ62/bWkJ4J5bJ5+Tt/1525iTyquF7BhQJawiMI3t1hllF4 irN57pFLckCLO1aRdNIHJHT2hORSQguZFO9QKlTUPTjnAcTEzwTJA1gwoBIyOykU00RU Hr5EM1RfuUGFar2kXSB+W9S+Qdyybwl93SpCCqrK8RVud7603FX8QULVH2UI5erO5xn5 d+7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=m2IVMowfbqKKUzrL12c02A/SfsiLLJUjZ9rRbpPh21U=; b=ZadcrCY3Mp/VoetJP8hO0cooUvRRy7A4dVdyZLjXIKuLLUqKTcCRqK+xU0l8ZtWNik zqU5KH8XM15jQUa4IhyNPsl16EPYyRNfdg442kCB7sYUodj5jK47UtjjUr+l4WKJmGe4 tHZcA5K48zAnT/6Gt2nyD0M+PUUkuegrxS3ZE23Yup89een0Hm3hxTIBaxtAQ2qSQZHm 2L/U0xvYSOfSYm6qtvNW40yNj8wCqZw26BXYjaHjlIkiFxvNg1dwhn51yY/Em6GDlG/e H2HhSKhdNEg14/DNr25V25A2D5iRRKS4VHAvthOHEEE//HtYLEHqWqG6MhTsAkgENWN2 TO3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qPebbXEE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id pw3si7760521ejb.666.2020.11.02.12.07.57; Mon, 02 Nov 2020 12:08:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qPebbXEE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726810AbgKBUGe (ORCPT + 99 others); Mon, 2 Nov 2020 15:06:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726299AbgKBUFS (ORCPT ); Mon, 2 Nov 2020 15:05:18 -0500 Received: from mail-vs1-xe43.google.com (mail-vs1-xe43.google.com [IPv6:2607:f8b0:4864:20::e43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 32C6FC0617A6 for ; Mon, 2 Nov 2020 12:05:18 -0800 (PST) Received: by mail-vs1-xe43.google.com with SMTP id e3so8165848vsr.8 for ; Mon, 02 Nov 2020 12:05:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=m2IVMowfbqKKUzrL12c02A/SfsiLLJUjZ9rRbpPh21U=; b=qPebbXEEdo3NGJQKQOqe8mVzflazVESbXBdlpN5WnTbvvtBh8duuNo4JUucHN2K71P qTghfWs5nRjb4dyCK2OdUGeMMZwjLGA97W4egpGeMMx2V4Lt8ryvYkBvOt4s8CBYODpD a8JZtvEzqWX6alXIB/dT/ZWf0L8qCxP7evNgxXNJKDyY7goBJIxsaKFnVV3MofZ9BSOh vvuHWblS5foxbcZ2kOgyvUAtyGb3dV5hjcXT8ZN23jwKW4tLAfibT0cJxXGrdtYz78Jv UKgGkEHmj8PdDvPIrIDMycBy1FvEW3cFs6mBgznq0aEOVc2afGifnYZDVEtX2wJRChCq WuiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=m2IVMowfbqKKUzrL12c02A/SfsiLLJUjZ9rRbpPh21U=; b=COo0X/7hJmTNXwkXWPEYmkKqHbsSgR0WqRK4YOno6QgREn7hEoplBDWxeX7c9SnH/F W4iXfFYyYnbGBXmUQhF5N0fSbKAvRt5cc6EBtHrpzVd9NEPpQ8bMc9aNQTVoRhseY6a0 IAMTLz4E+ecSAe5gjZb4Xl4ks+qTRGZ0M18fQHupCTzwKqnAEQy02q565h8wgfSEAV1f juHDU9mPih1tXuHoVGP5P0i3zb8eSWBcKFLyOWVOSiBq9S6/i5vOqAcUVLe77pBL1Ife 8rZi4we0w9kx01a6eVy/lnf9xjoKVQ7DuF00/n9QCMNXoiawYxVqwarp1Au3IhAX0+z7 ObIw== X-Gm-Message-State: AOAM532vSQrKjfZKYV9YfFo54cInCsm88JZThOdPjkFOip6cNamge0QB 8Ye5jf2jy7q9wVKrfinhoKrd9AKm12g= X-Received: by 2002:a67:f157:: with SMTP id t23mr16128682vsm.12.1604347516604; Mon, 02 Nov 2020 12:05:16 -0800 (PST) Received: from mail-vs1-f49.google.com (mail-vs1-f49.google.com. [209.85.217.49]) by smtp.gmail.com with ESMTPSA id 14sm1719336uaf.15.2020.11.02.12.05.14 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 02 Nov 2020 12:05:15 -0800 (PST) Received: by mail-vs1-f49.google.com with SMTP id u7so8138921vsq.11 for ; Mon, 02 Nov 2020 12:05:14 -0800 (PST) X-Received: by 2002:a05:6102:240f:: with SMTP id j15mr6241145vsi.22.1604347514191; Mon, 02 Nov 2020 12:05:14 -0800 (PST) MIME-Version: 1.0 References: <4e2CSI69yKQIvZp3Wwo9pC9lHNAz4osj7w8OdhYUdE@cp7-web-042.plabs.ch> In-Reply-To: <4e2CSI69yKQIvZp3Wwo9pC9lHNAz4osj7w8OdhYUdE@cp7-web-042.plabs.ch> From: Willem de Bruijn Date: Mon, 2 Nov 2020 15:04:37 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 net-next 2/2] net: bonding, dummy, ifb, team: advertise NETIF_F_GSO_SOFTWARE To: Alexander Lobakin Cc: "David S. Miller" , Jakub Kicinski , Jay Vosburgh , Veaceslav Falico , Andy Gospodarek , Jiri Pirko , Steffen Klassert , Miaohe Lin , Antoine Tenart , Mauro Carvalho Chehab , Network Development , linux-kernel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 2, 2020 at 2:26 PM Alexander Lobakin wrote: > > From: Willem de Bruijn > Date: Mon, 2 Nov 2020 11:30:17 -0500 > > Hi! > Thanks for the Ack. > > > On Sun, Nov 1, 2020 at 8:17 AM Alexander Lobakin wrote: > >> > >> Virtual netdevs should use NETIF_F_GSO_SOFTWARE to forward GSO skbs > >> as-is and let the final drivers deal with them when supported. > >> Also remove NETIF_F_GSO_UDP_L4 from bonding and team drivers as it's > >> now included in the "software" list. > > > > The rationale is that it is okay to advertise these features with > > software fallback as bonding/teaming "hardware" features, because > > there will always be a downstream device for which they will be > > implemented, possibly in the software fallback, correct? > > > > That does not apply to dummy or IFB. I guess dummy is fine, because > > xmit is a black hole, and IFB because ingress can safely handle these > > packets? How did you arrive at the choice of changing these two, of > > all virtual devices? > > Two points: > 1. Exactly, dummy is just dummy, while ifb is an intermediate netdev to > share resources, so it should be as fine as with other virtual devs. > 2. They both advertise NETIF_F_ALL_TSO | NETIF_F_GSO_ENCAP_ALL, which > assumes that they handle all GSO skbs just like the others (pass > them as is to the real drivers in case with ifb). There is no real driver in the case of ifb if it forwards to the ingress path. But as discussed before, that can handle gso packets for all these protocols, too. > >> > >> Suggested-by: Willem de Bruijn > >> Signed-off-by: Alexander Lobakin Acked-by: Willem de Bruijn