From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.5 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EA647C3A5A4 for ; Fri, 23 Aug 2019 14:09:09 +0000 (UTC) Received: from dpdk.org (dpdk.org [92.243.14.124]) by mail.kernel.org (Postfix) with ESMTP id 5082C2173E for ; Fri, 23 Aug 2019 14:09:09 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=marvell.com header.i=@marvell.com header.b="hiRiXn0w"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=marvell.onmicrosoft.com header.i=@marvell.onmicrosoft.com header.b="UczfNz/N" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5082C2173E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=marvell.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=dev-bounces@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 465951BFC3; Fri, 23 Aug 2019 16:09:08 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id 4F6AB1BFB4 for ; Fri, 23 Aug 2019 16:09:07 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x7NE6Itv020872; Fri, 23 Aug 2019 07:09:02 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=pfpt0818; bh=8FsNxhHnulzBoa04P44eHNQE8Alg5IRIclW6dbe87uM=; b=hiRiXn0wd7WV+2PNd4cyjurQkguwNpwryEmnBjYp11ko6tEZdZgDdUobe4QRlHpA3Y++ UhQkEVGnZql1h3RdWkopMNE6unw54/VO3vxctngiqvCuPRou3km5ipvUssSeNIg9AvCy FzN8xgYafYlKHR0KxrT2IQrOISOC6gM+5DV5f5ttGy0BwdUKEngVFk+HhB06zlAzbYTZ 0YN08//IEwSRujyOn4pB2Jni6Aehb48K2KNXjxA5F3TGhuNDeFTDAFPHHT35xD0lr64d vavthhGLjwppAYhZwTgXGmp6nYGUdijTlDndaaOLMKO5kWhJpVTZBXmT3aZ4DDblZtd7 sw== Received: from sc-exch03.marvell.com ([199.233.58.183]) by mx0a-0016f401.pphosted.com with ESMTP id 2uhad412r6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Fri, 23 Aug 2019 07:09:01 -0700 Received: from SC-EXCH01.marvell.com (10.93.176.81) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Fri, 23 Aug 2019 07:09:00 -0700 Received: from NAM01-SN1-obe.outbound.protection.outlook.com (104.47.32.59) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Fri, 23 Aug 2019 07:09:00 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RryML9tm4udTZfV88F8kZwHEXi2WwlNsdqK3gH258RvTM2a6Q3stKENnqgVh/W/NjQSPjFoKXhSxO58XphhpxSspiGIip70wwnbhFVvyp6nMZ/ObLYYq4mvUpMD/Thzs2eVS6VFG0XdJo5P6sRYFIPMotr0UhiZPgGGISYExR6yYuCIVYao8OHq3qbrB5ascvPsbj7tdVstKy43ZAxYBXo2ZhnFyeez/tX+VBdy3EGsv8QNa5jqg0BRL1LxH6vq47VXJ37uN006rNmoM/RFDky+bMcRck4IOnGcp1V/LHy0vKjg185WbYMJe8T0NPBV5rz769PcxLveqnr9hu9zyuA== 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-SenderADCheck; bh=8FsNxhHnulzBoa04P44eHNQE8Alg5IRIclW6dbe87uM=; b=bTnopnPvlDuO/8r3NniNhFjdt/p5Qsp1ltG1NnC3DVD0sUP/LXzwXKjFjGEJC0rDZpv5MoGcjxrlSHo5Tl1c5sPtSEvLtZy9ejsqN/GOmdRAkwCHKSgNvya1YvoVwK9Zw4P90tvDsvN3ymJ7B+LyFPrjP4NhiQnvpLkXiD0ZbjuxJUTfdBoFbSQxVaCfBJDx0bSfeHdwFeEPcTMJW21FOYN/VVOzetBHF56Xjo3sGXv/BlgGdtDudH4Vut2eNn29LBBL/BL/dN3hRJGWY0FolzH8RG3fCdePqMSOlizSq7DXpVhRTQ9QvN3JL0BPOq5kgmOyyORv90E3AH+ebc3InA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector2-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=8FsNxhHnulzBoa04P44eHNQE8Alg5IRIclW6dbe87uM=; b=UczfNz/N1Pz/mlVmCi0KkjMq8kqBxKD74Y87OAOXl+icIUq5CrYQqqdDfUucJXy4kW7x186vYt28oYrl+IiQ8qMED9aB3dJnIbAMesmD84xvZVZUgoiHxvfhn0aLxzvwSN9JDd6kyJTfMPv+pVqhcOT/PnDqqLIFJsnfmGXuzqY= Received: from BYAPR18MB2424.namprd18.prod.outlook.com (20.179.91.149) by BYAPR18MB2600.namprd18.prod.outlook.com (20.179.94.13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2178.18; Fri, 23 Aug 2019 14:08:58 +0000 Received: from BYAPR18MB2424.namprd18.prod.outlook.com ([fe80::5877:72b7:40cf:2013]) by BYAPR18MB2424.namprd18.prod.outlook.com ([fe80::5877:72b7:40cf:2013%3]) with mapi id 15.20.2178.018; Fri, 23 Aug 2019 14:08:58 +0000 From: Jerin Jacob Kollanukkaran To: "Wei Hu (Xavier)" , "dev@dpdk.org" CC: "linuxarm@huawei.com" , "xavier_huwei@163.com" , "liudongdong3@huawei.com" , "forest.zhouchang@huawei.com" Thread-Topic: [dpdk-dev] [PATCH 22/22] net/hns3: add hns3 build files Thread-Index: AQHVWboleOxGjbzooU+WB+UAIAlu7acIwwEw Date: Fri, 23 Aug 2019 14:08:58 +0000 Message-ID: References: <1566568031-45991-1-git-send-email-xavier.huwei@huawei.com> <1566568031-45991-23-git-send-email-xavier.huwei@huawei.com> In-Reply-To: <1566568031-45991-23-git-send-email-xavier.huwei@huawei.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [171.76.88.18] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: af1ac503-b224-4245-9863-08d727d37135 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600166)(711020)(4605104)(1401327)(2017052603328)(7193020); SRVR:BYAPR18MB2600; x-ms-traffictypediagnostic: BYAPR18MB2600: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-forefront-prvs: 0138CD935C x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(376002)(366004)(396003)(39860400002)(136003)(346002)(199004)(189003)(13464003)(229853002)(186003)(5660300002)(102836004)(6246003)(8676002)(81156014)(55016002)(81166006)(53546011)(7696005)(6506007)(33656002)(8936002)(99286004)(2501003)(305945005)(6436002)(66066001)(76176011)(26005)(478600001)(2906002)(7736002)(25786009)(11346002)(446003)(256004)(54906003)(486006)(110136005)(14444005)(6116002)(3846002)(86362001)(52536014)(76116006)(66446008)(64756008)(66556008)(66476007)(66946007)(53936002)(4326008)(316002)(74316002)(476003)(14454004)(71200400001)(71190400001)(9686003); DIR:OUT; SFP:1101; SCL:1; SRVR:BYAPR18MB2600; H:BYAPR18MB2424.namprd18.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: marvell.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: +DYvpyxVWxjsD5Hktn0A2LfIr/KxgLUMihdTYXQJ0UPwrD7htgfb854GcZn8to/uBYNfSPde5m4RlUnhtkKjkFXEVud64ZlfcDmwik6pfgx5Kof0QpuYoeDd0FB16cMorvXxNmMx4xEjF3sUhHTZQRySm9prX22LE/FykyfnJXQuYv/XWLav8P426+ADRCFIBh7sCrQAizCmV6FBcIqEv4/iblZM8NmdZZ6MZN5IGRYJOEMilwfYaq2gkeoUpjv3lm3MGamhLo6MVvTfEhr7cIJN/RmZNJLK3gWpEesC0qkhi+acsoHNJtKVsOEUqffRqX0f76/psmc5wp1L9sM97QqRvG7EEu19PCKXSK+zzeMm1xnDc0ORaRDb/1x4R+WjGejRyk5HbDI9UBQILkiWfNvTArv15STh9MppIc2UaKM= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: af1ac503-b224-4245-9863-08d727d37135 X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Aug 2019 14:08:58.6065 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: p+jGsZj+V2Ki1kEGHFaqptD15POzLwFDY/4MXfo1+DGjvXQXD9wgatVOo4QlrB2jZo+kUDKUL/jny9e6WoVJZg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR18MB2600 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:5.22.84,1.0.8 definitions=2019-08-23_05:2019-08-21,2019-08-23 signatures=0 Subject: Re: [dpdk-dev] [PATCH 22/22] net/hns3: add hns3 build files X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > -----Original Message----- > From: dev On Behalf Of Wei Hu (Xavier) > Sent: Friday, August 23, 2019 7:17 PM > To: dev@dpdk.org > Cc: linuxarm@huawei.com; xavier_huwei@163.com; > liudongdong3@huawei.com; forest.zhouchang@huawei.com > Subject: [dpdk-dev] [PATCH 22/22] net/hns3: add hns3 build files >=20 > This patch add build related files for hns3 PMD driver. >=20 > Signed-off-by: Wei Hu (Xavier) > Signed-off-by: Min Hu (Connor) > Signed-off-by: Chunsong Feng > Signed-off-by: Hao Chen > Signed-off-by: Huisong Li > --- > +# Hisilicon HNS3 PMD driver > +# > +CONFIG_RTE_LIBRTE_HNS3_PMD=3Dy # Please add meson support # Move build infra to the first patch # See git log drivers/net/octeontx2 as example > diff --git a/config/common_base b/config/common_base > index 8ef75c2..71a2c33 100644 > --- a/config/common_base > +++ b/config/common_base > @@ -282,6 +282,11 @@ > CONFIG_RTE_LIBRTE_E1000_PF_DISABLE_STRIP_CRC=3Dn > CONFIG_RTE_LIBRTE_HINIC_PMD=3Dn >=20 > # > +# Compile burst-oriented HNS3 PMD driver > +# > +CONFIG_RTE_LIBRTE_HNS3_PMD=3Dn > + > +# > # Compile burst-oriented IXGBE PMD driver > # > CONFIG_RTE_LIBRTE_IXGBE_PMD=3Dy > diff --git a/config/defconfig_arm64-armv8a-linuxapp-clang > b/config/defconfig_arm64-armv8a-linuxapp-clang > index d3b4dad..c73f5fb 100644 > --- a/config/defconfig_arm64-armv8a-linuxapp-clang > +++ b/config/defconfig_arm64-armv8a-linuxapp-clang > @@ -6,3 +6,5 @@ >=20 > CONFIG_RTE_TOOLCHAIN=3D"clang" > CONFIG_RTE_TOOLCHAIN_CLANG=3Dy > + > +CONFIG_RTE_LIBRTE_HNS3_PMD=3Dn > diff --git a/doc/guides/nics/features/hns3.ini > b/doc/guides/nics/features/hns3.ini > new file mode 100644 > index 0000000..d38d35e > --- /dev/null > +++ b/doc/guides/nics/features/hns3.ini > @@ -0,0 +1,38 @@ > +; > +; Supported features of the 'hns3' network poll mode driver. Add doc changes when driver feature gets added. # See git log drivers/net/octeontx2 as example > +; > +; Refer to default.ini for the full list of available PMD features. > +; > +[Features] > +Link status =3D Y > +MTU update =3D Y > +Jumbo frame =3D Y > +Promiscuous mode =3D Y > +Allmulticast mode =3D Y > diff --git a/doc/guides/nics/hns3.rst b/doc/guides/nics/hns3.rst > new file mode 100644 > index 0000000..c9d0253 > --- /dev/null > +++ b/doc/guides/nics/hns3.rst > @@ -0,0 +1,55 @@ > +.. SPDX-License-Identifier: BSD-3-Clause > + Copyright(c) 2018-2019 Hisilicon Limited. > + > +HNS3 Poll Mode Driver > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D > + > +The Hisilicon Network Subsystem is a long term evolution IP which is > +supposed to be used in Hisilicon ICT SoCs such as Kunpeng 920. > + > +The HNS3 PMD (librte_pmd_hns3) provides poll mode driver support > +for hns3(Hisilicon Network Subsystem 3) network engine. > + > +Features > +-------- > + > +Features of the HNS3 PMD are: > + > +- Arch support: ARMv8. Is it an integrated NIC controller? Why it is supported only on ARMv8? The reason why I asking because, Enabling CONFIG_RTE_LIBRTE_HNS3_PMD=3Dy only on arm64 will create a case where build fails for arm64 and passes for x86. I would like to avoid such disparity. If the build is passing on x86 m= ake it enable in the common code, not in arm64 config. > +- Multiple queues for TX and RX > +- Receive Side Scaling (RSS) > +- Packet type information > +- Checksum offload > +- Promiscuous mode > +- Multicast mode > +- Port hardware statistics > +- Jumbo frames > +- Link state information > +- VLAN stripping > +cflags +=3D '-DALLOW_EXPERIMENTAL_API' > diff --git a/drivers/net/hns3/rte_pmd_hns3_version.map > b/drivers/net/hns3/rte_pmd_hns3_version.map > new file mode 100644 > index 0000000..3aef967 > --- /dev/null > +++ b/drivers/net/hns3/rte_pmd_hns3_version.map > @@ -0,0 +1,3 @@ > +DPDK_19.08 { Change to 19.11