From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 03BF846080; Tue, 28 Jan 2025 21:01:07 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8365E40268; Tue, 28 Jan 2025 21:01:07 +0100 (CET) Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) by mails.dpdk.org (Postfix) with ESMTP id 52D6C40267 for ; Tue, 28 Jan 2025 21:01:06 +0100 (CET) Received: by mail-pl1-f177.google.com with SMTP id d9443c01a7336-21631789fcdso137145ad.1 for ; Tue, 28 Jan 2025 12:01:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1738094465; x=1738699265; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=0QF9nsyMdIJUdUak189D9ZLY9WvwL4fuPF3T27Kq+h4=; b=epM2uVbo55/OIZQQPYMJCbgzlJQyBOCsZ20wL4TyV8wuh4RV8SGg7TDxfuxuo68hSD zC0jY/U7nGiMMmMWc5TebELGKSKfob32zxZu2TH0wp55/SWUnX/mNaj6o/OVno2cBDiw 14VZTJgJc9PZaat5jyxOsZE+Mup97K33zQJj8TZTSuClG1DEQQ6JTdoMTLE1HeBHMKZj Hl0tCKTC533YluvfSPay0UCSSDXx4fQZFxTEQNjWqWEJw/+1zoHCV+mDYCSTAljJRLsO LAIpxAM/dX9HG2O4q/+Ym2JdYaHfgbIrDWvFgtho+j1o3trz+f02pYnTBi2H6hp9tGv2 3ndw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738094465; x=1738699265; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0QF9nsyMdIJUdUak189D9ZLY9WvwL4fuPF3T27Kq+h4=; b=nlXGCBPYQRr9UtVbwOYHs1A8PGB0OogwC2ZrsHWSFHwJzxtgHQHeq620hBMnvY6MWq jeoGgS8s2NCurYZbfva9m89bw29b0arl+8jKwZiOO+935fTXXLaVL9JJMkDVKVOMX6ng Ca041/lAhivcPQ+aESQIoFm18GRrRD0lvSFBoJ9jSJkvTCuso+wlvpPJU7AzXjK5T6Le pkWyKuesxgGNt2hogmpZcHnOJgQbk0N+tVsvaUhzsQykzpRQhJ4D6sk5tEI/wHuZbURt M6RayLWWKTNFeQLdKkIYqRcsqftN0Ejq4LUQ0/UOI3sGfjeN3dbJxNxVGJzYu8dl2a3R Pr2Q== X-Gm-Message-State: AOJu0YwO5ahIETj6IXMSwwLviVbRQ7w+1xLcsF5NDUc/UBg2hUb2VTCe j6wdOqdd33KpYkGbui0qSMjv9ToQAE5lCZx39jIkAjUuQ21+qjacgnAbR2w7w2k= X-Gm-Gg: ASbGnct5/yatJqFzIWeCy3WAcOIcdUHZNgTV32WpoclUQvD9ETlFlOuo3iH+OjAv/2t UBwsxvExGuMPgNc/giwGDPU8miZjKbtjIMTIzQbcYEntKfUSG+Ydn4AwEaM5DvBKEWAZFZfKPF7 F9PjJIfFG/DIgXul6mKtlb2h7Jon2bCZbJMmx4Ed9BolN0ug5R57OLlqWbgh6QRRClwIORbyxWm cXUme+rEg7qoO3otfV+3fACrGvzaBmn3AUPKtmOw5Hs0FhmdZawE1MOPpeEFJiY2wAr5HSFoSNp 4IoHPeEnlFHS/Ez8il2INChjFjb4OVGHypcIYeDrLsdcSAiXz63RlRJp4UIIkqr9G8V3 X-Google-Smtp-Source: AGHT+IHixuht+FFLytfGThUgSYGQw1hDhTYrYvZ/24/OqTfa/14gWQHGJQWPw2oa79RIiuYdLUnO7A== X-Received: by 2002:a05:6a21:9007:b0:1e4:745c:4965 with SMTP id adf61e73a8af0-1ed7a4dae33mr819726637.8.1738094464810; Tue, 28 Jan 2025 12:01:04 -0800 (PST) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72f8a77c560sm9951065b3a.142.2025.01.28.12.01.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jan 2025 12:01:04 -0800 (PST) Date: Tue, 28 Jan 2025 12:01:02 -0800 From: Stephen Hemminger To: "Renyong Wan" Cc: , , , , , , , , Subject: Re: [PATCH v7 00/15] XSC PMD for Yunsilicon NICs Message-ID: <20250128120102.118e81e6@hermes.local> In-Reply-To: <20250128144649.1956159-1-wanry@yunsilicon.com> References: <20250128144649.1956159-1-wanry@yunsilicon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 On Tue, 28 Jan 2025 22:47:22 +0800 "Renyong Wan" wrote: > This xsc PMD (**librte_net_xsc**) provides poll mode driver for > Yunsilicon metaScale serials NICs. > > Features: > --------- > - MTU update > - TSO > - RSS hash > - RSS key update > - RSS reta update > - L3 checksum offload > - L4 checksum offload > - Inner L3 checksum > - Inner L4 checksum > - Basic stats > - Stats per queue > > Support NICs: > ------------- > - metaScale-200S Single QSFP56 Port 200GE SmartNIC > - metaScale-200 Quad QSFP28 Ports 100GE SmartNIC > - metaScale-50 Dual QSFP28 Port 25GE SmartNIC > - metaScale-100Q Quad QSFP28 Port 25GE SmartNIC > > --- > > v7: > * Remove the packed attributes of sub structures and unions. > * Remove the cast of xdev->dev_priv. > * Remove the cast of malloc return value. > * Define the size of xdev->name to PCI_PRI_STR_SIZE. > * Change the name of Wanrenyong to Renyong Wan > > v6: > * Remove unnecessary paren. > * Add the feature of stats per queue in xsc.ini. > * Use memcpy instead of rte_memcpy in non critical path. > * Rebase from the main branch and merge release notes. > * Replace __rte_packed with __rte_packed_begin and __rte_packed_end. > > v5: > * fix compilation errors. > * fix coding style issue with misspelling. > * remove some unnecessary parameter checks. > * remove unnecessary call of rte_wmb. > * Rearrange elements in structure to avoid holes. > > v4: > * Based on the review comments from previous versions, reconstruct the xsc PMD to eliminate > the dependency on rdma core library and proprietary kernel driver, while adding support for > the vfio kernel driver. > > v3: > * fix compilation errors > > v2: > * fix checkpatch warnings and errors > > --- > Renyong Wan (15): > net/xsc: add xsc PMD framework > net/xsc: add xsc device initialization > net/xsc: add xsc mailbox > net/xsc: add xsc dev ops to support VFIO driver > net/xsc: add PCT interfaces > net/xsc: initialize xsc representors > net/xsc: add ethdev configure and RSS ops > net/xsc: add Rx and Tx queue setup > net/xsc: add ethdev start > net/xsc: add ethdev stop and close > net/xsc: add ethdev Rx burst > net/xsc: add ethdev Tx burst > net/xsc: add basic stats ops > net/xsc: add ethdev infos get > net/xsc: add ethdev link and MTU ops > > .mailmap | 5 + > MAINTAINERS | 10 + > doc/guides/nics/features/xsc.ini | 19 + > doc/guides/nics/index.rst | 1 + > doc/guides/nics/xsc.rst | 31 + > doc/guides/rel_notes/release_25_03.rst | 4 + > drivers/net/meson.build | 1 + > drivers/net/xsc/meson.build | 17 + > drivers/net/xsc/xsc_cmd.h | 387 +++++++++++ > drivers/net/xsc/xsc_defs.h | 100 +++ > drivers/net/xsc/xsc_dev.c | 397 +++++++++++ > drivers/net/xsc/xsc_dev.h | 184 +++++ > drivers/net/xsc/xsc_ethdev.c | 917 +++++++++++++++++++++++++ > drivers/net/xsc/xsc_ethdev.h | 63 ++ > drivers/net/xsc/xsc_log.h | 24 + > drivers/net/xsc/xsc_np.c | 492 +++++++++++++ > drivers/net/xsc/xsc_np.h | 154 +++++ > drivers/net/xsc/xsc_rx.c | 512 ++++++++++++++ > drivers/net/xsc/xsc_rx.h | 65 ++ > drivers/net/xsc/xsc_rxtx.h | 191 +++++ > drivers/net/xsc/xsc_tx.c | 354 ++++++++++ > drivers/net/xsc/xsc_tx.h | 62 ++ > drivers/net/xsc/xsc_vfio.c | 746 ++++++++++++++++++++ > drivers/net/xsc/xsc_vfio_mbox.c | 691 +++++++++++++++++++ > drivers/net/xsc/xsc_vfio_mbox.h | 142 ++++ > 25 files changed, 5569 insertions(+) > create mode 100644 doc/guides/nics/features/xsc.ini > create mode 100644 doc/guides/nics/xsc.rst > create mode 100644 drivers/net/xsc/meson.build > create mode 100644 drivers/net/xsc/xsc_cmd.h > create mode 100644 drivers/net/xsc/xsc_defs.h > create mode 100644 drivers/net/xsc/xsc_dev.c > create mode 100644 drivers/net/xsc/xsc_dev.h > create mode 100644 drivers/net/xsc/xsc_ethdev.c > create mode 100644 drivers/net/xsc/xsc_ethdev.h > create mode 100644 drivers/net/xsc/xsc_log.h > create mode 100644 drivers/net/xsc/xsc_np.c > create mode 100644 drivers/net/xsc/xsc_np.h > create mode 100644 drivers/net/xsc/xsc_rx.c > create mode 100644 drivers/net/xsc/xsc_rx.h > create mode 100644 drivers/net/xsc/xsc_rxtx.h > create mode 100644 drivers/net/xsc/xsc_tx.c > create mode 100644 drivers/net/xsc/xsc_tx.h > create mode 100644 drivers/net/xsc/xsc_vfio.c > create mode 100644 drivers/net/xsc/xsc_vfio_mbox.c > create mode 100644 drivers/net/xsc/xsc_vfio_mbox.h > Did minor conflict resolution on release notes and applied to dpdk-next-net (for-main).