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 469FCA054F; Mon, 15 Feb 2021 03:25:59 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B522716067A; Mon, 15 Feb 2021 03:25:58 +0100 (CET) Received: from rcdn-iport-8.cisco.com (rcdn-iport-8.cisco.com [173.37.86.79]) by mails.dpdk.org (Postfix) with ESMTP id 57D5540FDF for ; Mon, 15 Feb 2021 03:25:57 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=1918; q=dns/txt; s=iport; t=1613355957; x=1614565557; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=p4tFOIqI/6kX4cLWqGeduJx/vDOAUyPxsg7ngCOYtB4=; b=d6cgSFucJvFbvjzLUBs1dwD/GBP2FrQr4ootO3tkHOgqTYW5KYZyCHoX pVmgyASCxJ9e0VsG35BWNpBH97z4ntljUDjZjJYlUDDk2L08/g3z7nJPA sDV9gGizgaj/oV1PHPoARMwbPXbO5kUQEdnLfPlGYiBpdld3h63ItyGWL I=; IronPort-PHdr: =?us-ascii?q?9a23=3A4U+T8R1z5H0SwOWAsmDT+zVfbzU7u7jyIg8e44?= =?us-ascii?q?YmjLQLaKm44pD+JxWGu6drkl7FXIyd4PVB2KLasKHlDGoH55vJ8HUPa4dFWB?= =?us-ascii?q?JNj8IK1xchD8iIBQyeTrbqYiU2Ed4EWApj+He2Yk5LGcr/bhvZpXjhpTIXEw?= =?us-ascii?q?/0YAxyIOm9E4XOjsOxgua1/ZCbYwhBiDenJ71oKxDjpgTKvc5Qioxneas=3D?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0CoCgAG2ylg/5FdJa1iHgEBCxIMQIF?= =?us-ascii?q?EC4FTUQeBUDYxCgGHfgOOC5kdglMDVAsBAQENAQEyAgQBAYRNAoIHAiU3Bg4?= =?us-ascii?q?CAwEBCwEBBQEBAQIBBgRxhWENhkQBAQEEJxMGAQE3AQsEAgEIEQQBAR8QMh0?= =?us-ascii?q?IAgQOBQiFPgMtAQGlSQKKJXSBATODBAEBBoUYGIISCYE4gnaKTCYcgUFBgVS?= =?us-ascii?q?CVz6EQINIgiuFHZRjiCydZgqCepwsoy22NQICAgIEBQIOAQEGgWskgVdwFYM?= =?us-ascii?q?kUBcCDY4fg3GILYIsczcCBgoBAQMJfIoIAYEOAQE?= X-IronPort-AV: E=Sophos;i="5.81,179,1610409600"; d="scan'208";a="860388677" Received: from rcdn-core-9.cisco.com ([173.37.93.145]) by rcdn-iport-8.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 15 Feb 2021 02:25:52 +0000 Received: from XCH-RCD-001.cisco.com (xch-rcd-001.cisco.com [173.37.102.11]) by rcdn-core-9.cisco.com (8.15.2/8.15.2) with ESMTPS id 11F2PqFr015447 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=FAIL); Mon, 15 Feb 2021 02:25:52 GMT Received: from xfe-rcd-003.cisco.com (173.37.227.251) by XCH-RCD-001.cisco.com (173.37.102.11) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sun, 14 Feb 2021 20:25:51 -0600 Received: from xhs-rcd-002.cisco.com (173.37.227.247) by xfe-rcd-003.cisco.com (173.37.227.251) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.792.3; Sun, 14 Feb 2021 20:25:51 -0600 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (72.163.14.9) by xhs-rcd-002.cisco.com (173.37.227.247) with Microsoft SMTP Server (TLS) id 15.0.1497.2 via Frontend Transport; Sun, 14 Feb 2021 20:25:51 -0600 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LsMLu3Buhi+eAePKnvGbpa/vovQ+KZquK+uxXQ+erYB+C6r8cdblJ4MvN2WLDiK75dmEWdOG602PxKUUk94G9udjvKCuVY10IioRUx7/LEaMp4RBInzw4QEvxWTbi+EqQZz0a8D1b4YzrWhI43bBSjCA4hFp5tYPLrPCXU6fafN0c3nwla79VlPZzPKPeWfsoT8cnT/9+dfPDKYoaYZRNWeo5V8rnWMOeHHpNUPcB0Fo/tMqCMNk//gtMqs+cC9p93foODypwqVmAaJpTdcnaZ0YJ3JpxgNFJbihgf0Kfux/3FCCcME53eZQGW71LE9XeFIEltowwEr0RB78M2+Ytg== 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=fQhqAXSL1iS87zm/DLycZZN8zKZXS065dC/YLZlurjk=; b=Mf07FOOm93h/WwmINi5NY4fTlzqEJQDR1zqg+x96+E3Y7Q/Jwmt8AVk1KlOkx6EJ3puauZPhX/5+cNnOJEaouH4rpRG12x0Z16DWKnOFzaSL+q6SHYir5/D793KlbyVjbaFD3KD9Z3mI1zpABSjACSVPNjZXw110AHFkh0lNerJj6ZGm2XDMVIx5YyvvHqDxwcU7a5SwkqhCpo1ZOrhECcy+25XMccwQ4melKpeR3z8SyonXpQYDdOcjTuL12nqcsmAS9Sg9n1/KuTImVlKnGUpglvrLRK+X5Yq3bDDt0DXz1BbtB569PB2Pzsb4UXo92e31KpntxdAHk7iW5dSg7Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cisco.com; dmarc=pass action=none header.from=cisco.com; dkim=pass header.d=cisco.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cisco.onmicrosoft.com; s=selector2-cisco-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=fQhqAXSL1iS87zm/DLycZZN8zKZXS065dC/YLZlurjk=; b=puTQwf56odvwZKlL3R1TFXh4Ck9MnMoN8hXuB6eHFSJttXjlfLbK76eZ6q+wti1P06fbMqKW7iUlYSoagS3HRQVOI/QNZGdtJRGX27BK97fbNPH/hu8COirgJuR4l4nBMMqDk+UcfznTS48GZowIZoKAmD/jBmXK0MJJasgoYes= Received: from DM5PR11MB1690.namprd11.prod.outlook.com (2603:10b6:3:15::11) by DM6PR11MB4705.namprd11.prod.outlook.com (2603:10b6:5:2a9::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3846.26; Mon, 15 Feb 2021 02:25:51 +0000 Received: from DM5PR11MB1690.namprd11.prod.outlook.com ([fe80::4414:9b7c:f93:fdda]) by DM5PR11MB1690.namprd11.prod.outlook.com ([fe80::4414:9b7c:f93:fdda%7]) with mapi id 15.20.3846.041; Mon, 15 Feb 2021 02:25:50 +0000 From: "Hyong Youb Kim (hyonkim)" To: Xueming Li CC: "dev@dpdk.org" , Viacheslav Ovsiienko , Asaf Penso , Ajit Khaparde , Somnath Kotur , "John Daley (johndale)" , Beilei Xing , Jeff Guo , Haiyue Wang , Matan Azrad , Shahaf Shuler , Thomas Monjalon , Ferruh Yigit , Andrew Rybchenko Thread-Topic: [PATCH v6 1/9] ethdev: introduce representor type Thread-Index: AQHXAoC4n494jEeXOEuDODcDzfgQLqpYffrQ Date: Mon, 15 Feb 2021 02:25:50 +0000 Message-ID: References: <1608303356-13089-2-git-send-email-xuemingl@nvidia.com> <1613272907-22563-2-git-send-email-xuemingl@nvidia.com> In-Reply-To: <1613272907-22563-2-git-send-email-xuemingl@nvidia.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: nvidia.com; dkim=none (message not signed) header.d=none;nvidia.com; dmarc=none action=none header.from=cisco.com; x-originating-ip: [218.48.73.139] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 7b8bd5d2-4ed4-4b70-e4ae-08d8d1590300 x-ms-traffictypediagnostic: DM6PR11MB4705: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:3826; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Z4stKlXEjtD1hX73fITBeA7D2DI1yUpe9xpZJzyFl80FNKf4hAHoOmg9679HZ9P0H4W8K7FIQxLShHS2ABXgGZmaOPMs/d79OpJUGfjxchYwnpPx78iO1DzACEDavEmn3UK3G26oQ+/WUdsBKcS/Q7iTkHxsaB8u1r2eOZiamT9QLrfYoEh+9Qb32VIZ0TChD+fVT/mOXi/pcyxbGkqIL+IaareWkq1zIvYhjLVTKjTC3fWI2itNnF2rLsukEZ6mPVqiOf9jKk6pjV3+Jk2RIlaDA91Y8kxOzLNBgD28EDm4x7cH0P/mae7Ws0m5BAoD3ygzCmbuAApGZuX3C7/BcF6xPdJ9IkTyDcKls4xF8Ik6USKjdMLUIchvGqvLOQVyhiNtMb+Uhubd0ggNz1Ru/FNkHImvw3S36L1cHnoxpDai1lPZxMLK0N2d6KYJTDY3gV6LVs1I4xrWvLd0qJi0yb6iXzeFwsO35e/bPX52rtkBZ/xn2ULn0N2XILFNXD6VQ8/aPjQ/myV0/HBTLBpXPw== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM5PR11MB1690.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(136003)(396003)(376002)(346002)(39860400002)(186003)(71200400001)(66476007)(66556008)(66946007)(66446008)(64756008)(9686003)(55016002)(76116006)(26005)(4326008)(5660300002)(316002)(6506007)(52536014)(6916009)(54906003)(33656002)(2906002)(8676002)(7416002)(8936002)(86362001)(7696005)(83380400001)(478600001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?9gSRwvOphHXR4x6UpXXn7+eMAGiBmD/wzg3XWNlh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hpMe+jTHbam+H+rRPfuvN1vUvrl1coUQvckmaCpOk?= =?us-ascii?Q?hdXtCi/EN7x3kn41KxoOedZLH9vlOLwLTtHchHkWNcDjDU7womdn3Vp6L+mc?= =?us-ascii?Q?yk+26zmmIy0HzyU67sYBQwg4Nd+RqF3igNedh3buwc083U/sN1Trz0xzDbmD?= =?us-ascii?Q?nqJlcfbF/Q88oypnGOpgKcApoA5PpwRAS5xGxHZniShYqHLk2RNhZ7lbbcKQ?= =?us-ascii?Q?oekvB5s61D/8BIYxGW/FWQAnO8HMx9amis4w7WXF8FoRMGxaJ3GY+99bv0l3?= =?us-ascii?Q?SrzRaYvZTxp3zvUh7Ghw+VSskyLK1BOkxuawHC4WNCuBDXAAzrYESYTnPiDU?= =?us-ascii?Q?ITSml0IvsqVR4lN6gl9XcaeFbeA/kSLFPXQYvUYq/XPQYAfCgkGNHbxaxKCg?= =?us-ascii?Q?Cf8=3D?= 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: DM5PR11MB1690.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7b8bd5d2-4ed4-4b70-e4ae-08d8d1590300 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Feb 2021 02:25:50.2871 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 5ae1af62-9505-4097-a69a-c1553ef7840e X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: CxLXDvhSHWUOvitU6DsMHSRcVk/PcZs+nw0i3CUE6Xrv3mRIAT/v/Yb9b/K5XU6sdB2x8ewEaYfpdi9Fs70zXA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR11MB4705 X-OriginatorOrg: cisco.com X-Outbound-SMTP-Client: 173.37.102.11, xch-rcd-001.cisco.com X-Outbound-Node: rcdn-core-9.cisco.com Subject: Re: [dpdk-dev] [PATCH v6 1/9] ethdev: introduce representor type 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 Sender: "dev" > -----Original Message----- > From: Xueming Li > Sent: Sunday, February 14, 2021 12:22 PM > Cc: dev@dpdk.org; Viacheslav Ovsiienko ; > xuemingl@nvidia.com; Asaf Penso ; Ajit Khaparde > ; Somnath Kotur > ; John Daley (johndale) > ; Hyong Youb Kim (hyonkim) ; > Beilei Xing ; Jeff Guo ; Haiyue > Wang ; Matan Azrad ; > Shahaf Shuler ; Thomas Monjalon > ; Ferruh Yigit ; Andrew > Rybchenko > Subject: [PATCH v6 1/9] ethdev: introduce representor type >=20 > To support more representor type, this patch introduces representor type > enum. The enum is subject to be extended to support new representor in > patches upcoming. >=20 > For each devarg structure, only one type supported. >=20 > Signed-off-by: Xueming Li [...] > diff --git a/drivers/net/enic/enic_ethdev.c b/drivers/net/enic/enic_ethde= v.c > index b3f441c8f7..def669f411 100644 > --- a/drivers/net/enic/enic_ethdev.c > +++ b/drivers/net/enic/enic_ethdev.c > @@ -1312,6 +1312,12 @@ static int eth_enic_pci_probe(struct rte_pci_drive= r > *pci_drv __rte_unused, > if (retval) > return retval; > } > + if (eth_da.nb_representor_ports > 0 && > + eth_da.type !=3D RTE_ETH_REPRESENTOR_VF) { > + ENICPMD_LOG(ERR, "unsupported representor type: %s\n", > + pci_dev->device.devargs->args); > + return -ENOTSUP; > + } > retval =3D rte_eth_dev_create(&pci_dev->device, pci_dev- > >device.name, > sizeof(struct enic), > eth_dev_pci_specific_init, pci_dev, For enic, Acked-by: Hyong Youb Kim Thanks. -Hyong