From patchwork Thu Aug 8 06:14:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hyong Youb Kim X-Patchwork-Id: 1218 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 68E8345767; Thu, 8 Aug 2024 08:15:10 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 171884066F; Thu, 8 Aug 2024 08:15:10 +0200 (CEST) Received: from rcdn-iport-2.cisco.com (rcdn-iport-2.cisco.com [173.37.86.73]) by mails.dpdk.org (Postfix) with ESMTP id 31D65402AD for ; Thu, 8 Aug 2024 08:15:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cisco.com; i=@cisco.com; l=1363; q=dns/txt; s=iport; t=1723097708; x=1724307308; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=L9WdcR4/eWpy4j11KalqBLRUjgh2vyQV5CszgBgxRYw=; b=VdYihurWFZVZ5B96dnzAJxPz4gGK0xQ1sp5N7IjTcZVplHzD+DfjyY0E 40UVROnhYB3IDWCiyQrCBoCmbFD0aXUNFsYNhYTRmBPwMqUi5PHtqrnfr pj72X8QAp5t5gdsP5atN6N4c+zItc7kdv5Y+Pb6clRjbGQZIpvvB5E2x7 4=; X-CSE-ConnectionGUID: URksQWVMSK2AS9vvbmUrjQ== X-CSE-MsgGUID: yKjBUUp/QDWwf4jeHsQBWA== X-IronPort-AV: E=Sophos;i="6.09,272,1716249600"; d="scan'208";a="230942540" Received: from rcdn-core-9.cisco.com ([173.37.93.145]) by rcdn-iport-2.cisco.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Aug 2024 06:15:07 +0000 Received: from cisco.com (savbu-usnic-a.cisco.com [10.193.184.48]) by rcdn-core-9.cisco.com (8.15.2/8.15.2) with ESMTP id 4786F64R002778; Thu, 8 Aug 2024 06:15:06 GMT Received: by cisco.com (Postfix, from userid 508933) id 97B8620F2003; Wed, 7 Aug 2024 23:15:06 -0700 (PDT) From: Hyong Youb Kim To: Ferruh Yigit Cc: dev@dpdk.org, John Daley , Hyong Youb Kim Subject: [PATCH v2 0/3] net/enic: support VF and fix minor issues Date: Wed, 7 Aug 2024 23:14:30 -0700 Message-Id: <20240808061433.14971-1-hyonkim@cisco.com> X-Mailer: git-send-email 2.35.2 In-Reply-To: <20240808041838.31367-4-hyonkim@cisco.com> References: <20240808041838.31367-4-hyonkim@cisco.com> MIME-Version: 1.0 X-Outbound-SMTP-Client: 10.193.184.48, savbu-usnic-a.cisco.com X-Outbound-Node: rcdn-core-9.cisco.com X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org This series contains minor updates for net/enic. The first patch supports SR-IOV VF, which now requires the use of admin channel. The other patches are not related to VF, but included here to ease review. --- v2: * fix compiler warnings Hyong Youb Kim (3): net/enic: support SR-IOV VF using admin channel net/enic: add speed capabilities for newer models net/enic: allow multicast in MAC address add callback drivers/net/enic/base/vnic_cq.c | 27 + drivers/net/enic/base/vnic_cq.h | 3 + drivers/net/enic/base/vnic_dev.c | 48 ++ drivers/net/enic/base/vnic_dev.h | 3 + drivers/net/enic/base/vnic_devcmd.h | 49 ++ drivers/net/enic/base/vnic_resource.h | 32 +- drivers/net/enic/base/vnic_rq.c | 27 + drivers/net/enic/base/vnic_rq.h | 7 + drivers/net/enic/base/vnic_wq.c | 37 +- drivers/net/enic/base/vnic_wq.h | 5 + drivers/net/enic/enic.h | 28 +- drivers/net/enic/enic_ethdev.c | 29 +- drivers/net/enic/enic_main.c | 97 ++-- drivers/net/enic/enic_res.c | 12 + drivers/net/enic/enic_rxtx.c | 20 + drivers/net/enic/enic_sriov.c | 801 ++++++++++++++++++++++++++ drivers/net/enic/enic_sriov.h | 209 +++++++ drivers/net/enic/meson.build | 1 + 18 files changed, 1391 insertions(+), 44 deletions(-) create mode 100644 drivers/net/enic/enic_sriov.c create mode 100644 drivers/net/enic/enic_sriov.h