From patchwork Sun Jan 8 10:35:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Arinzon, David" X-Patchwork-Id: 13092459 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 47FB0C54EBC for ; Sun, 8 Jan 2023 10:35:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232576AbjAHKfw (ORCPT ); Sun, 8 Jan 2023 05:35:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231184AbjAHKft (ORCPT ); Sun, 8 Jan 2023 05:35:49 -0500 Received: from smtp-fw-9102.amazon.com (smtp-fw-9102.amazon.com [207.171.184.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80A50E09D for ; Sun, 8 Jan 2023 02:35:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1673174149; x=1704710149; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=KpO9ZJtLL+NSENllvYXD7Xj1YRnKiXijEFcJLyNp4Ds=; b=v07iHW+9k7emltsTCUJZvMRxOgRKS7ymgvzhJDq7Lc0Oqo7MZpCbjEF6 pWWtIgXvenFAqaBSdRGNjJOnXLRtji0ORq4jjNgjOgw5vD5j9w0BpERvX CIvKYBbSoMBTkNt0sUmwP3cScrt0rFJjUwRemo1QlL14/tzpAfvQ15A5E 0=; X-IronPort-AV: E=Sophos;i="5.96,310,1665446400"; d="scan'208";a="297950499" Received: from pdx4-co-svc-p1-lb2-vlan2.amazon.com (HELO email-inbound-relay-iad-1e-m6i4x-b538c141.us-east-1.amazon.com) ([10.25.36.210]) by smtp-border-fw-9102.sea19.amazon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jan 2023 10:35:44 +0000 Received: from EX13MTAUWB002.ant.amazon.com (iad12-ws-svc-p26-lb9-vlan2.iad.amazon.com [10.40.163.34]) by email-inbound-relay-iad-1e-m6i4x-b538c141.us-east-1.amazon.com (Postfix) with ESMTPS id 2FA283412EA; Sun, 8 Jan 2023 10:35:38 +0000 (UTC) Received: from EX19D002UWA001.ant.amazon.com (10.13.138.247) by EX13MTAUWB002.ant.amazon.com (10.43.161.202) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Sun, 8 Jan 2023 10:35:38 +0000 Received: from EX13MTAUWA001.ant.amazon.com (10.43.160.58) by EX19D002UWA001.ant.amazon.com (10.13.138.247) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA) id 15.2.1118.7; Sun, 8 Jan 2023 10:35:37 +0000 Received: from dev-dsk-darinzon-1c-05962a8d.eu-west-1.amazon.com (172.19.80.187) by mail-relay.amazon.com (10.43.160.118) with Microsoft SMTP Server id 15.0.1497.42 via Frontend Transport; Sun, 8 Jan 2023 10:35:36 +0000 From: David Arinzon To: David Miller , Jakub Kicinski , CC: David Arinzon , "Machulsky, Zorik" , "Matushevsky, Alexander" , Saeed Bshara , "Bshara, Nafea" , "Saidi, Ali" , "Kiyanovski, Arthur" , "Dagan, Noam" , "Agroskin, Shay" , "Itzko, Shahar" , "Abboud, Osama" Subject: [PATCH V1 net-next 0/5] Add devlink support to ena Date: Sun, 8 Jan 2023 10:35:28 +0000 Message-ID: <20230108103533.10104-1-darinzon@amazon.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org This patchset adds devlink support to the ena driver. David Arinzon (5): net: ena: Register ena device to devlink net: ena: Add devlink reload functionality net: ena: Configure large LLQ using devlink params net: ena: Several changes to support large LLQ configuration net: ena: Add devlink documentation .../device_drivers/ethernet/amazon/ena.rst | 30 +++ drivers/net/ethernet/amazon/Kconfig | 1 + drivers/net/ethernet/amazon/ena/Makefile | 2 +- drivers/net/ethernet/amazon/ena/ena_devlink.c | 215 ++++++++++++++++++ drivers/net/ethernet/amazon/ena/ena_devlink.h | 22 ++ drivers/net/ethernet/amazon/ena/ena_netdev.c | 123 +++++++--- drivers/net/ethernet/amazon/ena/ena_netdev.h | 13 ++ 7 files changed, 379 insertions(+), 27 deletions(-) create mode 100644 drivers/net/ethernet/amazon/ena/ena_devlink.c create mode 100644 drivers/net/ethernet/amazon/ena/ena_devlink.h