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 41432A0540; Mon, 22 Aug 2022 17:08:07 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 309DC40F35; Mon, 22 Aug 2022 17:08:07 +0200 (CEST) Received: from NAM04-DM6-obe.outbound.protection.outlook.com (mail-dm6nam04on2043.outbound.protection.outlook.com [40.107.102.43]) by mails.dpdk.org (Postfix) with ESMTP id 399D840694 for ; Mon, 22 Aug 2022 17:08:06 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=izYPvX6jaWUcQ6nBUgM5YYPND83Tf1KyQ21s6hSp18cTClqA139GziACfvyBws/1V0fFZYxpfnhloLhmSBY95tRqe3U2TvphE2GJg9ZkkuU8PZRUhHMxQ34RHEToU43S8pHY7NZGuTaQsquVsZ5uNHcBUMOVJt8OAxtw6xZqAHig7mwfFphLo6rnMY2IGUkejmGCceJy/LjYQ2HFwUmWiLLZ6GKi3dDkaqjuKnJDFleSFv/rz2d3J5ewWzOKSd58Ma+1XEot725HxHTNo/kvcEBp5PcMpI1iiFHsRsNaiSjfkjhwPF0vMu6PbOLLOlvrlhqvOoiVcDoZXuhvUGmIMA== 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=rZmDJzIdSDaOT6NriYTuAY9HCKdm43RgzrngdEgtLgs=; b=mLMpqJG2555aZjEDAFyFvI0L2ForgiszlHp0Ah61AqSbyhFhgweFUFI7ShdAspfrr/1sNV05VRbTeuI187iA/nDGlJ6gRWkwd47Fpkwrc3Ku1Y94ldzNsF7reODuK5E3b+t4X/mf2skLw7RRjIQmBopEZDuJpg2VRXmhKM2lPDS7E1wQdYHrX9Fc0V7fUGY1kt96pd44fhiBkXbOzHT1jxdaPqK0xOPWey+LR9Md1WWAz9PSMrtVw0H3ppwhDRpKZBT0iJknHmfBA9RAwTpt9UlFyw51NI8CUT3OWSbLtjvFHzaC52YG8xfAfqA3xnbXVRAur7JKE9489gEp4ybB+w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.80.198) smtp.rcpttodomain=microsoft.com smtp.mailfrom=xilinx.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=xilinx.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector2-xilinx-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=rZmDJzIdSDaOT6NriYTuAY9HCKdm43RgzrngdEgtLgs=; b=oDcAsfy1+hptC+AKNcpHrI59RazeAmjUbD7Bt3qxa+uGaz5lG2zIO4N9L9z71eCMBuJcpqCLFl+dAoNHiG3LXQPy02hFFTJwu3GkrAddR/xZtwzNWfFMf1F00NcWaAoF6jiruIXB+u1+bou/jpT24UrMwwU4oAB30RsIWYPl+eo= Received: from SN1PR12CA0055.namprd12.prod.outlook.com (2603:10b6:802:20::26) by DS0PR02MB8997.namprd02.prod.outlook.com (2603:10b6:8:c9::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5546.22; Mon, 22 Aug 2022 15:08:04 +0000 Received: from SN1NAM02FT0063.eop-nam02.prod.protection.outlook.com (2603:10b6:802:20:cafe::6e) by SN1PR12CA0055.outlook.office365.com (2603:10b6:802:20::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5525.15 via Frontend Transport; Mon, 22 Aug 2022 15:08:04 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.199.80.198) smtp.mailfrom=xilinx.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.80.198 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.80.198; helo=xir-pvapexch01.xlnx.xilinx.com; pr=C Received: from xir-pvapexch01.xlnx.xilinx.com (149.199.80.198) by SN1NAM02FT0063.mail.protection.outlook.com (10.97.5.98) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5546.15 via Frontend Transport; Mon, 22 Aug 2022 15:08:03 +0000 Received: from xir-pvapexch01.xlnx.xilinx.com (172.21.17.15) by xir-pvapexch01.xlnx.xilinx.com (172.21.17.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Mon, 22 Aug 2022 16:08:02 +0100 Received: from smtp.xilinx.com (172.21.105.197) by xir-pvapexch01.xlnx.xilinx.com (172.21.17.15) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Mon, 22 Aug 2022 16:08:02 +0100 Envelope-to: longli@microsoft.com, dev@dpdk.org, sharmaajay@microsoft.com, sthemmin@microsoft.com Received: from [10.71.194.74] (port=58755) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1oQ922-0002uX-Is; Mon, 22 Aug 2022 16:08:02 +0100 Message-ID: Date: Mon, 22 Aug 2022 16:08:02 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.1.2 Subject: Re: [Patch v4 11/17] net/mana: implement the hardware layer operations Content-Language: en-US To: CC: , Ajay Sharma , Stephen Hemminger References: <1657324171-31369-1-git-send-email-longli@linuxonhyperv.com> <1657324171-31369-12-git-send-email-longli@linuxonhyperv.com> From: Ferruh Yigit In-Reply-To: <1657324171-31369-12-git-send-email-longli@linuxonhyperv.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 08a29131-b8e0-49f0-f780-08da84501cac X-MS-TrafficTypeDiagnostic: DS0PR02MB8997:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Im63Daw8zPKK0sQB85C+CKZseL1IjzG2ISazowwIN8AqLFOFxxp/rqcYOZI55EJTzJQbhX25T6N0UmSFXjnClNDH+FX+Ra600S1vJzdNqtwabeb0wIBE+UT2hRdeLt6adDqSIUx77cGpxgbc3AKt31J+nGtPAWtmD2V54KYCS+gDdO/Ex/b368Ps6AHKoLC64YHk7yVOGouQYARlKYADGm19m7lAmqEp+QbDgsp4VHZ6f4DsUEq9Gn9qnoFz4FaGJl9oDuXW/QX+OMD7Pw3JNTVDJEZOMI4WAxOoZNWsbr1dIzsJP5IAeRVWjrAmlpIulHWGD5Rmdas9NPsDAv9Dx1+2AwUJEyNNPmAogoLSMDAexSa69Vd6ztitmlrOIwt4SZj/uFd0OQUDN96fzEOlQV55tLfB97PI1qA7kGXl9GBR6KHIBAd9yF30ZDA1N/E9FGRL9MBoiOCQXiG4lyuhpPQj1FPo50NGzUlWFTSFDzVsv8BQRDcBP+0KsrPv0JXSj2Wo0/X+31O2JDl0U2MqoWcuQp5Dhl9YQUa2KPiIQ8iZCHcv5pv0Oi1uu+waqxxHLPGyGdbrn4ZJa0cIcNZZPxk9K+XGtQC5vbZkBn5tEtzzcJrBDKcvn0noV6u8aRIPH8xCZhnvc8R7fOolKzjCAB+8vDjr1l/WpMjNXqADzEtWakImMC4R+7571uU4p1+i+PMlcf6tk9AIb2vQUjKwl8i28mo3u6nhQgsqxrWI2CyNH2OG9D/aQNwsZSSj1fugw1Fukgf+73NPL88ILMDMG5X1MZ+JjOUm8KSM/dr3beoCmLGH6U/1GG2nMBxBVsHo X-Forefront-Antispam-Report: CIP:149.199.80.198; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:xir-pvapexch01.xlnx.xilinx.com; PTR:unknown-80-198.xilinx.com; CAT:NONE; SFS:(13230016)(4636009)(396003)(39860400002)(346002)(136003)(376002)(36840700001)(46966006)(40470700004)(70206006)(2616005)(70586007)(4326008)(8676002)(31696002)(45080400002)(54906003)(6916009)(36860700001)(356005)(36756003)(7636003)(31686004)(82740400003)(186003)(8936002)(336012)(9786002)(26005)(53546011)(47076005)(426003)(478600001)(40460700003)(40480700001)(316002)(2906002)(41300700001)(82310400005)(4744005)(44832011)(5660300002)(50156003)(43740500002); DIR:OUT; SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Aug 2022 15:08:03.7350 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 08a29131-b8e0-49f0-f780-08da84501cac X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c; Ip=[149.199.80.198]; Helo=[xir-pvapexch01.xlnx.xilinx.com] X-MS-Exchange-CrossTenant-AuthSource: SN1NAM02FT0063.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR02MB8997 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 7/9/2022 12:49 AM, longli@linuxonhyperv.com wrote: > > From: Long Li > > The hardware layer of MANA understands the device queue and doorbell > formats. Those functions are implemented for use by packet RX/TX code. > > Signed-off-by: Long Li > --- > Change log: > v2: > Remove unused header files. > Rename a camel case. > <...> > +/* NDIS HASH Types */ > +#define BIT(nr) (1 << (nr)) > +#define NDIS_HASH_IPV4 BIT(0) > +#define NDIS_HASH_TCP_IPV4 BIT(1) > +#define NDIS_HASH_UDP_IPV4 BIT(2) > +#define NDIS_HASH_IPV6 BIT(3) > +#define NDIS_HASH_TCP_IPV6 BIT(4) > +#define NDIS_HASH_UDP_IPV6 BIT(5) > +#define NDIS_HASH_IPV6_EX BIT(6) > +#define NDIS_HASH_TCP_IPV6_EX BIT(7) > +#define NDIS_HASH_UDP_IPV6_EX BIT(8) Can use RTE_BIT32/64 instead of defining new macro