Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp14568894ybl; Mon, 30 Dec 2019 12:37:44 -0800 (PST) X-Google-Smtp-Source: APXvYqyfid3W2Qk95WleWGHsponzjNsTeIsgU9NdI7L8HVY+OUZ6t9iIz+wVg4Yjm5nqGNGUnm9g X-Received: by 2002:a9d:6481:: with SMTP id g1mr78059082otl.180.1577738264405; Mon, 30 Dec 2019 12:37:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577738264; cv=none; d=google.com; s=arc-20160816; b=zH2gvezJe4eiZgwG3V3eZ4r2NnfjA++5hBJ6wRZED8txAcwCnsLs3dw7WejbWaOqAS dsN0ppcncaS6qLKP1SjZrtOQVI/1D1jY8gcXo/cAqWGUX9sAdF0MKNiv9j0J/zvt/q5q F0blIXq+XFslWy3naPg7CaOd56R/tJiqctvfrt78DwG3TEkWT9FYCYEcd+tnDfmjD30I dzKa0J33AyLMWxBW2kJMf8JkIWvWRyQpw1oueXW1qSEf61+fPsbE4rkHIdX2PU1RSOhI d0cO74zUXchjVthNZLyHqPnQ62gSnhqX47Q01Em6E1R0Y4ADabtMmS0dCPY8S8iiAbPR pWyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=SXdGQUakfHybtX0jGG9d+Xw/HkMyol+MPHYTh6dQ3U4=; b=VQuxHPNcwLb2uLV/QTOxNptmp3v8KidEe+TgJ+hpqqHstpKPPzb2BtZeAjmKLOyu5X dnC8PcUYEoS17nXbtEkwmfzFl5GYN/+MEFdt0gP8N0dmeCDAuZGEP/kIxljhuXP89DQu BWiL0R/ANwEfQBe/49j4OYpPbOmgQfMg9eSRSpWjcoBznqQHPEeAx1Z/OU3NIpvIO8RU SOCVjChAGyERNRWSWwBm6fcg3PD6jJDx0a87B8NDcq23Z1vaSdg0mp0rMA5Tr4FzMo8V 7+kNYs8WF5SD2CzUxA2ugJ8OYtRbD8THYX3C2cdr23GsjQSu8Cb9xSwBI9dussyJ1Qnb rwYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=G6sDaIa4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h9si23698369otb.49.2019.12.30.12.37.30; Mon, 30 Dec 2019 12:37:44 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=G6sDaIa4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727747AbfL3Ugp (ORCPT + 99 others); Mon, 30 Dec 2019 15:36:45 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:43844 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727667AbfL3Ugp (ORCPT ); Mon, 30 Dec 2019 15:36:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=SXdGQUakfHybtX0jGG9d+Xw/HkMyol+MPHYTh6dQ3U4=; b=G6sDaIa4Z25UB8aomFAcrsYCxZ sHFxTi0i4H9s4qWhRn4C48sxjLww49Qqy7d0sMS3bqs9wzaNysXFjyhJJ1HsaMmC5d2mVBuQrMqCY XMAh9tp2x8TJRQRtngzHnGf9Eu8UdH6/Xkq5/TXmMV21bzOFORXZO94hq7H1fSecWwj4=; Received: from andrew by vps0.lunn.ch with local (Exim 4.93) (envelope-from ) id 1im1lw-0006Vp-L5; Mon, 30 Dec 2019 21:36:16 +0100 Date: Mon, 30 Dec 2019 21:36:16 +0100 From: Andrew Lunn To: Florian Fainelli Cc: Alexander Lobakin , "David S. Miller" , Edward Cree , Vivien Didelot , Hauke Mehrtens , Sean Wang , Matthias Brugger , Jiri Pirko , Eric Dumazet , Paolo Abeni , Jakub Kicinski , Taehee Yoo , Stephen Hemminger , Stanislav Fomichev , Daniel Borkmann , Song Liu , Matteo Croce , Jakub Sitnicki , Paul Blakey , Yoshiki Komachi , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: Re: [PATCH RFC net-next 05/19] net: dsa: tag_ar9331: add GRO callbacks Message-ID: <20191230203616.GA24733@lunn.ch> References: <20191230143028.27313-1-alobakin@dlink.ru> <20191230143028.27313-6-alobakin@dlink.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 30, 2019 at 10:20:50AM -0800, Florian Fainelli wrote: > On 12/30/19 6:30 AM, Alexander Lobakin wrote: > > Add GRO callbacks to the AR9331 tagger so GRO layer can now process > > such frames. > > > > Signed-off-by: Alexander Lobakin > > This is a good example and we should probably build a tagger abstraction > that is much simpler to fill in callbacks for (although indirect > function calls may end-up killing performance with retpoline and > friends), but let's consider this idea. Hi Florian We really do need some numbers here. Does GRO really help? On an ARM or MIPS platform, i don't think retpoline is an issue? But x86 is, and we do have a few x86 boards with switches. Maybe we can do some macro magic instead of function pointers, if we can keep it all within one object file? Andrew