From patchwork Tue Mar 30 02:49:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ong Boon Leong X-Patchwork-Id: 12171477 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5CC3EC433DB for ; Tue, 30 Mar 2021 02:50:09 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E721261920 for ; Tue, 30 Mar 2021 02:50:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E721261920 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=I/5ew+CCLeAJUXuB0HGsx2UceUrlyvNkkXrERUo6EXg=; b=aYZUoYMmKbkYd3agg4KjYipUuV HcEcDl8HXV6p9jkb34VX5XnL3ictQrbJXyNBbke7QRnQzoyk2oGvlDQwxOkMp8tyJm1kSeam/1zur QVB45O8LQCYfpgjKZx3rJmF4DOybC80gK5GYUPHdr+hSmAZzy9FCcn+j8mN5HVgRw08/ULd3Dmd9J FjhQlk7M8XcLk5kJXCMi27uMl+7otFehUaEI94yXt28F0NSTOMpqSjgRFUjVRvovGWxq11JcxzAt0 XWjHILRyueqq37lb+5emwKdk0zBOx/ryHV7BvSVbRJxoqQHsdF5Lopc9z6Jy1frY6nd4ZLNtkql/c DTvEkSQQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lR4P8-002UDW-LA; Tue, 30 Mar 2021 02:46:55 +0000 Received: from mga18.intel.com ([134.134.136.126]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lR4O5-002Tw2-47 for linux-arm-kernel@lists.infradead.org; Tue, 30 Mar 2021 02:45:52 +0000 IronPort-SDR: HY4N3iskNNl5/lZa4bXDNpT08V8KuQFSgSXp4aHWOrdlOILEIueyI1N0iJvYGwNMimXVkM7Z5H JXTvUQrcPjzg== X-IronPort-AV: E=McAfee;i="6000,8403,9938"; a="179213527" X-IronPort-AV: E=Sophos;i="5.81,289,1610438400"; d="scan'208";a="179213527" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Mar 2021 19:45:46 -0700 IronPort-SDR: dsfpKMTEoglPzqdA/0WtM8HzPVOVV2WzHnUOlY79mVuxd8/WWMmC5caoFlJE4Gn5TKm1Hykle+ Se7fg3I7Oj3g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.81,289,1610438400"; d="scan'208";a="606598450" Received: from glass.png.intel.com ([10.158.65.59]) by fmsmga006.fm.intel.com with ESMTP; 29 Mar 2021 19:45:41 -0700 From: Ong Boon Leong To: Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , "David S . Miller" , Jakub Kicinski , Alexei Starovoitov , Daniel Borkmann , Jesper Dangaard Brouer , John Fastabend Cc: Maxime Coquelin , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , KP Singh , netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, Ong Boon Leong Subject: [PATCH net-next v2 0/6] stmmac: Add XDP support Date: Tue, 30 Mar 2021 10:49:43 +0800 Message-Id: <20210330024949.14010-1-boon.leong.ong@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210330_034550_788310_92DC5311 X-CRM114-Status: GOOD ( 14.87 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi, This is the v2 patch series for adding XDP support to stmmac driver. Summary of the changes in v2: 1/6: Move IRQ affinity hint from dwmac-intel.c into stmmac_main.c inside stmmac_request_irq_multi_msi() and clear the IRQ affinity hint in stmmac_free_irq(). Tested the patch with reloading the driver and confirmed that there is kernel warning during free_irq(). 3/6: Fix build warning of unused variable found in https://patchwork.hopto.org/static/nipa/457321/12170149/build_32bit/stderr 4/6: Fix build warnig of unused variable found by lkp There is no other patch changes in v2 for 2/6, 5/6 and 6/6 and the summary for their changes are in v1 patch series: https://patchwork.kernel.org/project/netdevbpf/list/?series=457321 The v2 patch series are retested with the test steps listed in v1 and the results looks good as per v1 patch series. The test are executed with preempt-rt build and it also requires a fix that was sent to ML here: https://patchwork.kernel.org/project/netdevbpf/list/?series=457139 It will be great if community help test out these v2 patch series on your platform and provide me feedback. Thank you very much, Boon Leong Ong Boon Leong (6): net: stmmac: set IRQ affinity hint for multi MSI vectors net: stmmac: make SPH enable/disable to be configurable net: stmmac: arrange Tx tail pointer update to stmmac_flush_tx_descriptors net: stmmac: Add initial XDP support net: stmmac: Add support for XDP_TX action net: stmmac: Add support for XDP_REDIRECT action drivers/net/ethernet/stmicro/stmmac/Makefile | 1 + drivers/net/ethernet/stmicro/stmmac/stmmac.h | 35 +- .../net/ethernet/stmicro/stmmac/stmmac_main.c | 521 +++++++++++++++--- .../net/ethernet/stmicro/stmmac/stmmac_xdp.c | 40 ++ .../net/ethernet/stmicro/stmmac/stmmac_xdp.h | 12 + 5 files changed, 530 insertions(+), 79 deletions(-) create mode 100644 drivers/net/ethernet/stmicro/stmmac/stmmac_xdp.c create mode 100644 drivers/net/ethernet/stmicro/stmmac/stmmac_xdp.h