From patchwork Fri Sep 23 20:29:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gerhard Engleder X-Patchwork-Id: 12987172 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7D98DC04A95 for ; Fri, 23 Sep 2022 20:36:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233213AbiIWUgo (ORCPT ); Fri, 23 Sep 2022 16:36:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233176AbiIWUek (ORCPT ); Fri, 23 Sep 2022 16:34:40 -0400 Received: from mx08lb.world4you.com (mx08lb.world4you.com [81.19.149.118]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AABCB124772; Fri, 23 Sep 2022 13:29:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=engleder-embedded.com; s=dkim11; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=6ug5wiEIwLlUI5ndcQozH7cP/s/nvnN3KABNI6hZUYE=; b=DMvmaPfVKlm9I0cdT1PyxbtZUX LeCpH7mjPm5OiedI5gUuFjcOnxb10d+JFWAlHNo2gDqf+KyX0IheQRI4pySfYSZxcgP5RS0DSRb48 +O9OYPPbgtmVt0542osVyWPesn0+K4sXo46KxqTZZh3UfuB8fhgehb16exMy8WvJ3UtE=; Received: from [88.117.54.199] (helo=hornet.engleder.at) by mx08lb.world4you.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1obpIT-0004EI-W5; Fri, 23 Sep 2022 22:29:18 +0200 From: Gerhard Engleder To: netdev@vger.kernel.org Cc: davem@davemloft.net, kuba@kernel.org, edumazet@google.com, pabeni@redhat.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, devicetree@vger.kernel.org, Gerhard Engleder Subject: [PATCH net-next v3 0/6] tsnep: multi queue support and some other improvements Date: Fri, 23 Sep 2022 22:29:05 +0200 Message-Id: <20220923202911.119729-1-gerhard@engleder-embedded.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-AV-Do-Run: Yes Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org Add support for additional TX/RX queues along with RX flow classification support. Binding is extended to allow additional interrupts for additional TX/RX queues. Also dma-coherent is allowed as minor improvement. RX path optimisation is done by using page pool as preparations for future XDP support. v3: - now with changes in cover letter v2: - use netdev_name() (Jakub Kicinski) - use ENOENT if RX flow rule is not found (Jakub Kicinski) - eliminate return code of tsnep_add_rule() (Jakub Kicinski) - remove commit with lazy refill due to depletion problem (Jakub Kicinski) Gerhard Engleder (6): dt-bindings: net: tsnep: Allow dma-coherent dt-bindings: net: tsnep: Allow additional interrupts tsnep: Move interrupt from device to queue tsnep: Support multiple TX/RX queue pairs tsnep: Add EtherType RX flow classification support tsnep: Use page pool for RX .../bindings/net/engleder,tsnep.yaml | 39 +- drivers/net/ethernet/engleder/Kconfig | 1 + drivers/net/ethernet/engleder/Makefile | 2 +- drivers/net/ethernet/engleder/tsnep.h | 47 ++- drivers/net/ethernet/engleder/tsnep_ethtool.c | 38 ++ drivers/net/ethernet/engleder/tsnep_hw.h | 13 +- drivers/net/ethernet/engleder/tsnep_main.c | 356 +++++++++++++----- drivers/net/ethernet/engleder/tsnep_rxnfc.c | 281 ++++++++++++++ 8 files changed, 662 insertions(+), 115 deletions(-) create mode 100644 drivers/net/ethernet/engleder/tsnep_rxnfc.c