From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id C8635A04BC; Thu, 8 Oct 2020 19:47:05 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7E4791B696; Thu, 8 Oct 2020 19:47:04 +0200 (CEST) Received: from nat-hk.nvidia.com (nat-hk.nvidia.com [203.18.50.4]) by dpdk.org (Postfix) with ESMTP id DB21D1B677 for ; Thu, 8 Oct 2020 19:47:01 +0200 (CEST) Received: from HKMAIL102.nvidia.com (Not Verified[10.18.92.9]) by nat-hk.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Fri, 09 Oct 2020 01:46:59 +0800 Received: from HKMAIL104.nvidia.com (10.18.16.13) by HKMAIL102.nvidia.com (10.18.16.11) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Thu, 8 Oct 2020 17:46:51 +0000 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.100) by HKMAIL104.nvidia.com (10.18.16.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Thu, 8 Oct 2020 17:46:51 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lRuFYOKp+nShPwjMalXY6cI+tPdlycbzzwiHla8OdcY3Z3GPdmXLmU3VuxklAnZQzb8zPfCqoSUWdsqaibrYjcXgY5rweFq4mAY9WfLBQgIwbeT1PyKvCu+3KY9mS/wE3LfykIxfiHKFe5RIqSdaV2sRXdCoB2oT6DGVnvSE1/HrgYd70QLG2r6Exw9VslaehNAZ6zcC0nQH1arSdRwn2nZAJFTvVbduElQAlaCs9nKH5H4ItU5bK2wni1Z/ymRhGRU62ICHjh6ZnC7BEf0jXYSWNhM4UbG1fYjrywZfaastD2ELwNPqE/KcTw4kJa53UZi/i1vmPtYR9CKMamIP4A== 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=hy4Mhy58EF7gr1fiL6dYeL9fbax8skMFwepysQc7AAE=; b=Ss2N1JidsMkYeVHoWpTUWCE8HjmFdjZ++OcM5OePv6gFb0eQePtjQld3LuU0HV0UU8IsmBT09eGLV+E0n5bSIifkLfaviuRsRZ6dOyP6LebIbxXrXLerlAK2Z8s38NqVvGbMPA2HeoCdLNxCNl01NSfxVVMV9GMIsqkdfWOtVQzSB2EsJ2K6hx2WM3vkcRncQ/Bh8w7zmq1eY0i8BHSxHj3Bd62fV6lM29u9B7QpCjXWcTGx9QdiNusLllQpGrffYG5i5SBYAjHwzxJGSoMS/C2hnYKEaJPaG8VGkvU5nE3xF9H9bCh6H0G5HZf42F72xVYTnrfQ3yOBF+nBiI74+w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none Received: from BYAPR12MB3285.namprd12.prod.outlook.com (2603:10b6:a03:134::14) by BYAPR12MB4789.namprd12.prod.outlook.com (2603:10b6:a03:111::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3455.24; Thu, 8 Oct 2020 17:46:48 +0000 Received: from BYAPR12MB3285.namprd12.prod.outlook.com ([fe80::9577:cc9f:6780:4c6c]) by BYAPR12MB3285.namprd12.prod.outlook.com ([fe80::9577:cc9f:6780:4c6c%7]) with mapi id 15.20.3455.024; Thu, 8 Oct 2020 17:46:48 +0000 From: Tal Shnaiderman To: Pallavi Kadam , "dev@dpdk.org" , NBU-Contact-Thomas Monjalon CC: "ranjit.menon@intel.com" , "John.Alexander@datapath.co.uk" , "dmitry.kozliuk@gmail.com" , "Narcisa.Vasile@microsoft.com" Thread-Topic: [PATCH v6] bus/pci: netuio interface for windows Thread-Index: AQHWnCxaBcIbTCmGhUaCL8xa8F9hcqmN+/DA Date: Thu, 8 Oct 2020 17:46:48 +0000 Message-ID: References: <20200925015327.2916-1-pallavi.kadam@intel.com> <20201006215730.1584-1-pallavi.kadam@intel.com> In-Reply-To: <20201006215730.1584-1-pallavi.kadam@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=nvidia.com; x-originating-ip: [77.137.141.17] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 476bc911-b24f-45a5-8464-08d86bb2219b x-ms-traffictypediagnostic: BYAPR12MB4789: x-ld-processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 9SNrF7+A/Bn5y7KGVSBDpkGtTYtx6kmmoDQjRHBQBD1q/VxdMHvOCuaJejtxhitHBiAkhVkTxGtnlawXVlKUP1BwVWGuKGEGYrm/Lu06TEAunaSN91v3wNHAsZvdhlCVGle7yrQuryy1IXU+FXXmXMo+OgMl+9Sje2X9Pw5zn1pdhzIL5aC3vBIUwy5qWVlnTi/c/o+MAV721U967l/a84ZNm6vHD62UM4Qfzd0V0pDZ1FGUqRrCwNpqeYCSLke1BUB985eHuN1Fs6zlSndl+qXeBFMXa8Fss56UcD52G3T9BPc+GxClDvNzg4pTpExunejGOuG3IiA6nLu/cDuKgA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BYAPR12MB3285.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(39860400002)(396003)(366004)(136003)(376002)(346002)(8936002)(64756008)(6506007)(66946007)(66446008)(66476007)(66556008)(478600001)(2906002)(186003)(316002)(110136005)(54906003)(86362001)(26005)(9686003)(5660300002)(76116006)(4326008)(52536014)(33656002)(55016002)(71200400001)(8676002)(83380400001)(7696005); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: 62HrkpeR6z3G7fcShkq5U26xS08Vl+dBJ9HlKwlyY4vHIW/PlziSCAC0o8eJAu/P0M8G6JtDPPB4peTAs4ADC5xAqOEHjI7/NCXnVlN+YnKkMIODJhzgWGUoxLp6C8LwOvg2dSed6p20KQarcXD0SDqAXxjAxt0mLxz3oAqbLb/48Ox79GYEpGbEM2Rj9+XUyaW1QuhMnYd0bxKC1lC0rF40ApTiyLAAfu7t2hbvWPG8dYhXXqFhTtRhhnFx+iodWOIwtLJJwASDspJKPiou7TYFyqaYzErF9vIvRld7ORHnt5P0xqdXtbgHOw+eTIYAdCidymaiIvAhyPOMxaKIuU3xuMoKL9GCmxnQYiNZ+2EJynHaR8/sOKcMtiAsaQKH7tAI3ckfzwqiMHfkER3CxrYITgfE2rlqWQnczRvi8GOYqyTi10GKAz52jBxLowfWyLvcGx3DbQbqkVAmmWWhXYbi3XLu7Ccjxk/r1N3pnoRa0UkLkwYyyewHJ12tc+mHV0zu5s7OkWPE8n30Wuxx10FdHGclo047Br37wGgydXZePxapVMvagmd8UvOZJTWTuzBJOz+tyredbLw3cFJ8rNiy9cTd0mxAk6NfuEFboKxAn5SMguqbELRGcZcm+8hHeQxVwZx1drDlu7rg19IBmg== 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-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BYAPR12MB3285.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 476bc911-b24f-45a5-8464-08d86bb2219b X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Oct 2020 17:46:48.3666 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: kHvUFbxI/So0Ya2S/9z3y82wB96ij/InAgUBHB3R+Jr/0QCePdbScACYrgjtYsqaAKl+TBDMkRP6fZxX2d4OfQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR12MB4789 X-OriginatorOrg: Nvidia.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1602179219; bh=hy4Mhy58EF7gr1fiL6dYeL9fbax8skMFwepysQc7AAE=; h=ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:From:To: CC:Subject:Thread-Topic:Thread-Index:Date:Message-ID:References: In-Reply-To:Accept-Language:Content-Language:X-MS-Has-Attach: X-MS-TNEF-Correlator:authentication-results:x-originating-ip: x-ms-publictraffictype:x-ms-office365-filtering-correlation-id: x-ms-traffictypediagnostic:x-ld-processed: x-microsoft-antispam-prvs:x-ms-oob-tlc-oobclassifiers: x-ms-exchange-senderadcheck:x-microsoft-antispam: x-microsoft-antispam-message-info:x-forefront-antispam-report: x-ms-exchange-antispam-messagedata:x-ms-exchange-transport-forked: Content-Type:Content-Transfer-Encoding:MIME-Version: X-MS-Exchange-CrossTenant-AuthAs: X-MS-Exchange-CrossTenant-AuthSource: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-originalarrivaltime: X-MS-Exchange-CrossTenant-fromentityheader: X-MS-Exchange-CrossTenant-id:X-MS-Exchange-CrossTenant-mailboxtype: X-MS-Exchange-CrossTenant-userprincipalname: X-MS-Exchange-Transport-CrossTenantHeadersStamped:X-OriginatorOrg; b=GGUOR44k0WMhOIKBDqCd0fMMX/eOW8e9M4MqMRIM+n2T20zwP/Pnytnj7nUC1eo5F s+UlHA4FyNAzCfVCZZy46Yz81FcryTw37cb2mz1twqEpKWMuzVfGVvq5EQqiVdvtAU crnpBu3NaPXoMiVJj2SkQIILO0WarNo2z9lV36jB+AR1VZXxTtuxJL1TlW2GBZeDN1 ZmEhSwIVj9ApGsIy8GFFCRrFuOJwPdXaKAXq3bYBlxejObcQdveY1DFPSZI/0RW4Yz U18F4URqFURR45EXICHSI+PGwQeTQ/7izOCP/YecLelHw7djVsPN/Azg/OUwbuaN98 msWwUx7PvNa8A== Subject: Re: [dpdk-dev] [PATCH v6] bus/pci: netuio interface for windows 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" > Subject: [PATCH v6] bus/pci: netuio interface for windows >=20 > External email: Use caution opening links or attachments >=20 >=20 > This patch adds implementations to probe PCI devices bound to netuio with > the help of "netuio" class device changes. > Now Windows will support both "netuio" and "net" device class and can set > kernel driver type based on the device class selection. >=20 > Note: Few definitions and structures have been copied from > netuio_interface.h file from ("[v5] windows/netuio: add Windows NetUIO > kernel driver") series and this will be fixed once the exact path for net= uio > source code is known. >=20 > v6 changes: > - Split up the get_netuio_device_info() function into smaller > functions > - Moved get numa node id code to get_device_resource_info() in > order to work on both RTE_PCI_KDRV_NONE and > RTE_PCI_KDRV_NIC_UIO > v5 changes: > Changed when netuio driver handle is closed > v4 changes: > Removed 'reserved' member as it is not used > v3 changes: > Removed the casts > v2 changes: > - Moved all netuio specific definitions and functions to > pci_netuio.c and pci_netuio.h files > - Added a single function call to scan all the devices >=20 > Signed-off-by: John Alexander > Signed-off-by: Pallavi Kadam > Reviewed-by: Ranjit Menon > --- > diff --git a/drivers/bus/pci/windows/pci_netuio.c > b/drivers/bus/pci/windows/pci_netuio.c > new file mode 100644 > index 000000000..5c9790684 > --- /dev/null > +++ b/drivers/bus/pci/windows/pci_netuio.c > @@ -0,0 +1,190 @@ > +/* SPDX-License-Identifier: BSD-3-Clause > + * Copyright(c) 2020 Intel Corporation. > + */ > + > +#include > +#include > +#include > +#include > + > +#include "private.h" > +#include "pci_netuio.h" > + > +#include > + > +#ifdef RTE_TOOLCHAIN_GCC > +#include > +DEFINE_DEVPROPKEY(DEVPKEY_Device_Numa_Node, 0x540b947e, 0x8b40, > 0x45bc, > + 0xa8, 0xa2, 0x6a, 0x0b, 0x89, 0x4c, 0xbd, 0xa2, 3); #endif The whole ifdef section and the devpkey.h include can be removed since Numa= detection is done in pci.c.