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 08A0BA034E; Fri, 21 Jan 2022 11:22:26 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5D01B42740; Fri, 21 Jan 2022 11:22:26 +0100 (CET) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id 4C23740042 for ; Fri, 21 Jan 2022 11:22:24 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1642760544; x=1674296544; h=message-id:date:to:cc:references:from:subject: in-reply-to:content-transfer-encoding:mime-version; bh=32Hg9mXfaOAMz8Gs52xuViI9qacyv6Cl+zjPUjb60gc=; b=O8SNV5cuqgS85PfoLI3bdDW9/4orF6hwpEymPcWnJHDaSBK0bRU+2y/N GqC9lMwAWAw5gbrEkHNxLEORSaI9D3piyKLCTv+OvCopiLGwFX6nIm+yj 6sUpJmF6Nb3blkakkPOYVughXprA4OFVUgzVp/H3aewsqmpFGNT1Af+hZ UIpq5bRGtWAWTwMjXrI777JdE+baqFyKexyEGZ3nBW6yNvIQp0u26Mw9i F072akgXNxb/8tOjLtFRusmNfBFN9RxpoqXjoCHs9gSHIYcJiC3kAzkZL nZWjfjdMavl2bWBtJYJMeY/PV05wKpOpKcC5xj9lbimXmOmPsgTnGoVKU Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10233"; a="270042384" X-IronPort-AV: E=Sophos;i="5.88,304,1635231600"; d="scan'208";a="270042384" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Jan 2022 02:22:23 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,304,1635231600"; d="scan'208";a="672901160" Received: from fmsmsx605.amr.corp.intel.com ([10.18.126.85]) by fmsmga001.fm.intel.com with ESMTP; 21 Jan 2022 02:22:23 -0800 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) by fmsmsx605.amr.corp.intel.com (10.18.126.85) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Fri, 21 Jan 2022 02:22:23 -0800 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx612.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Fri, 21 Jan 2022 02:22:22 -0800 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20 via Frontend Transport; Fri, 21 Jan 2022 02:22:22 -0800 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.108) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.20; Fri, 21 Jan 2022 02:22:19 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SZilrWw7raW4LXrEHSvKdADlsZQH5sq9i4fw2NbzYdtSIhxVCdk7PLBzJgvFMavp0yZg6zS3jBNyz+GqmcCJQfemAnZTQATkWLsE3tqtmKuzCUDaC81Wic/NlQDWN/Xm+umgc6seMeCHS62HDiLQfjUTnhWF73g4FkZYDsMzFhfTSCGled6AnzhopiyoeaAxFBDyQN9MtrM2ZOU4xi4UNmgwD6xWwn1rNl6q8ue8dx0yE4wsIFDPWkQur4RWD7ic23kIc3wZUayL0xbNPaevmYSobjgHfY6X14lH18RLA5ZP9Ri+6KPjKuZtpxsbk59j6fa9ziJb85c/54HVgfFwEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=n6WXFM0Bl73fXLv2EMmxWZs9ta4ssoTRmbPpPj5JWlY=; b=FwMHS40RMxxuWzeg1uFdFZ5TcDtqWHPBrlim6KO5+6m+CkmeuKfzjPX4IEyupL8fvxHgNMy+JvRKtTnOMHXciiEHBewjSeQk+C7UFwW5pC1mwRaJ6PxxUZGbTJVoklDcL8MYkpQ9c5Rb0RZzVeC2ZHKkmdrqbJ3UGDiBxKiFd+3G8S92sH/nHFB7JaZ883eU/3nTNNteag/lT17Pf/gALBA7SZr4+DMgrIAs0nCjYL7FqfjJHTge7FD3vPlXoexP7K+MRHtVKxThtNOyB8H5fr06+FS4KLvmfIQqATejk+QyV+T7T6aBGR5G+JarUWgUHPml5OsvNGCRvsabLf7sYw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from PH0PR11MB5000.namprd11.prod.outlook.com (2603:10b6:510:41::19) by MWHPR11MB1565.namprd11.prod.outlook.com (2603:10b6:301:c::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4888.11; Fri, 21 Jan 2022 10:22:17 +0000 Received: from PH0PR11MB5000.namprd11.prod.outlook.com ([fe80::5046:8550:928d:850e]) by PH0PR11MB5000.namprd11.prod.outlook.com ([fe80::5046:8550:928d:850e%7]) with mapi id 15.20.4909.010; Fri, 21 Jan 2022 10:22:17 +0000 Message-ID: <3982cadb-5b7e-22b4-d8e7-091ff22e4702@intel.com> Date: Fri, 21 Jan 2022 10:22:10 +0000 Content-Language: en-US To: Yanling Song CC: , , , , , , Ziyang Xuan , Xiaoyun Wang , Guoyang Zhou , Hemant Agrawal References: <3030c4f9-d3f8-bf36-bba1-00656bcc7e2e@intel.com> <20220121172713.00000853@ramaxel.com> From: Ferruh Yigit Subject: Re: [PATCH v6 00/26] Net/SPNIC: support SPNIC into DPDK 22.03 X-User: ferruhy In-Reply-To: <20220121172713.00000853@ramaxel.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO2P265CA0455.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:e::35) To PH0PR11MB5000.namprd11.prod.outlook.com (2603:10b6:510:41::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 446ae29a-40ac-4b6b-0577-08d9dcc7e680 X-MS-TrafficTypeDiagnostic: MWHPR11MB1565:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7219; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: TVP0QXxkMiNL4OBQGAuvFCYR3SUW4lX8JcQDTWDg4dZpxknyb9BF6VCjNKy4WV8DZcpLqoiGQLWObhcVR4HqqAQuDXgyTEMAX1d7RblNbUiXP7zJvgbrTF02GO1lqHJLDPCmovD6Dw9xRDoYMSDUUHsWY+pt5cCC+kyV6CWW90vgKhwhU2hwfSecu9u3zTvJ2VUA/q49rawOO41KeYQ2CGpQWKOu7t5rSOLbr6jMqqZLjvdtdC7Uzc+lFq9q/XxVJTDcSNNLzTGmZummrbUyv6ZQUDwoxh3xQm02dK63pzREo9lf8Mdx3erWlhKSUDQ1hVcqVieb6bOrpFBc4ak0MuzkMvHxZ4CfRLYRgPPW8PJKacvwHvXYm7KMEBVRKkHjikeOT/39THiCWOml84HhOorPPhNsxxS2Bt8HqMfduoF8CIj9+S55B+R/RwQNdT6nFPMx931x1c7crPT3/p88o9Pe/KPSz2+xhD15RPW7cNna2j25K+XnlyyjpjUxiGtU8+5xg1CW9eLjcQEWHaaWiymny6vokr11WCRAIWFitlf4Bfyvl0gw88x7bK1rpq2WtUS96PCGoUsKPswpsBUXmm3yEt5ovQFmTrk5Gh0tgGznc80CdoS7E8VvwXPIBsZqrnb1kzLX1Q/iKeEnjPuB+7x3lo9p9lrF5a4KOfqzunUfBISqFy0NbwBH03rkErwy2mUK/GenAhj9GjZk6S3TnA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH0PR11MB5000.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(66556008)(82960400001)(66946007)(508600001)(4326008)(31696002)(5660300002)(186003)(66476007)(6486002)(31686004)(38100700002)(6666004)(8936002)(316002)(86362001)(6506007)(53546011)(83380400001)(6916009)(6512007)(54906003)(36756003)(26005)(7416002)(2906002)(2616005)(44832011)(8676002)(45980500001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?MFp6VFRTZ2YxQ3ZNQTdqZXpKU2FyTmJRV0M3MlZieExxK3c0YVJNMm00L1Fa?= =?utf-8?B?Mko4SGVVNmNBc3dYZzlZbURreVBiY0RsZ2F6RVo0M0JWNkk3L0JxNWY3ZTZL?= =?utf-8?B?SitwTUZheHdzMHVldG5ObXBZa0h5UXMxSVBLSHVmbjNqYkFmZnI4MWRQcGVk?= =?utf-8?B?Nm81eHkxUW5YZ3poeTVWMlJLbjlOdUltNWFGTVkzYXZwejlXT0RPVG9RQUlH?= =?utf-8?B?Z2ErZ3lheUdlanJwSXo0eVc2Y2NQWWVMU1hVRk1Cc0V6OGZrdExBSE5mZFc4?= =?utf-8?B?MjVlOWY0MTFwWWg2RTNrZDZ4TWc0MTZSNllmZT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DMrV0JmNTNOUEZ3RVFGWGoyY2NzdzUrVmNLYkVtdXVkS1dhZFo0?= =?utf-8?Q?xWHdg0JCrFA5dhRwIb6o0Is=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: 446ae29a-40ac-4b6b-0577-08d9dcc7e680 X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5000.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jan 2022 10:22:17.5731 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: dtu7gcq0VR/zGH/5C4bENdEekSNroF9STQ+Yp6Vx0WxZ+V1OlLeQAAXIRUrTIGXddXeqmjDH1g3swnwNIeTK8w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR11MB1565 X-OriginatorOrg: intel.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 On 1/21/2022 9:27 AM, Yanling Song wrote: > On Wed, 19 Jan 2022 16:56:52 +0000 > Ferruh Yigit wrote: > >> On 12/30/2021 6:08 AM, Yanling Song wrote: >>> The patchsets introduce SPNIC driver for Ramaxel's SPNxx serial NIC >>> cards into DPDK 22.03. Ramaxel Memory Technology is a company which >>> supply a lot of electric products: storage, communication, PCB... >>> SPNxxx is a serial PCIE interface NIC cards: >>> SPN110: 2 PORTs *25G >>> SPN120: 4 PORTs *25G >>> SPN130: 2 PORTs *100G >>> >> >> Hi Yanling, >> >> As far as I can see hnic (from Huawei) and this spnic drivers are >> alike, what is the relation between these two? >> > It is hard to create a brand new driver from scratch, so we referenced > to hinic driver when developing spnic. > That is OK, but based on the familiarity of the code you may consider keeping the original code Copyright, I didn't investigate in that level but cc'ed hinic maintainers for info. Also cc'ed Hemant for guidance. But my question was more related to the HW, is there any relation between the hinic HW and spnic HW? Like one is derived from other etc... >>> The following is main features of our SPNIC: >>> - TSO >>> - LRO >>> - Flow control >>> - SR-IOV(Partially supported) >>> - VLAN offload >>> - VLAN filter >>> - CRC offload >>> - Promiscuous mode >>> - RSS >>> >>> v6->v5, No real changes: >>> 1. Move the fix of RTE_ETH_DEV_AUTOFILL_QUEUE_XSTATS from patch 26 >>> to patch 2; 2. Change the description of patch 26. >>> >>> v5->v4: >>> 1. Add prefix "spinc_" for external functions; >>> 2. Remove temporary MACRO: RTE_ETH_DEV_AUTOFILL_QUEUE_XSTATS >>> 3. Do not use void* for keeping the type information >>> >>> v3->v4: >>> 1. Fix ABI test failure; >>> 2. Remove some descriptions in spnic.rst. >>> >>> v2->v3: >>> 1. Fix clang compiling failure. >>> >>> v1->v2: >>> 1. Fix coding style issues and compiling failures; >>> 2. Only support linux in meson.build; >>> 3. Use CLOCK_MONOTONIC_COARSE instead of >>> CLOCK_MONOTONIC/CLOCK_MONOTONIC_RAW; 4. Fix time_before(); >>> 5. Remove redundant checks in spnic_dev_configure(); >>> >>> Yanling Song (26): >>> drivers/net: introduce a new PMD driver >>> net/spnic: initialize the HW interface >>> net/spnic: add mbox message channel >>> net/spnic: introduce event queue >>> net/spnic: add mgmt module >>> net/spnic: add cmdq and work queue >>> net/spnic: add interface handling cmdq message >>> net/spnic: add hardware info initialization >>> net/spnic: support MAC and link event handling >>> net/spnic: add function info initialization >>> net/spnic: add queue pairs context initialization >>> net/spnic: support mbuf handling of Tx/Rx >>> net/spnic: support Rx congfiguration >>> net/spnic: add port/vport enable >>> net/spnic: support IO packets handling >>> net/spnic: add device configure/version/info >>> net/spnic: support RSS configuration update and get >>> net/spnic: support VLAN filtering and offloading >>> net/spnic: support promiscuous and allmulticast Rx modes >>> net/spnic: support flow control >>> net/spnic: support getting Tx/Rx queues info >>> net/spnic: net/spnic: support xstats statistics >>> net/spnic: support VFIO interrupt >>> net/spnic: support Tx/Rx queue start/stop >>> net/spnic: add doc infrastructure >>> net/spnic: fixes unsafe C style code >> >> <...> >