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 65957436E7; Thu, 14 Dec 2023 01:02:08 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DEFF0402BC; Thu, 14 Dec 2023 01:02:07 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id C1F7840283 for ; Thu, 14 Dec 2023 01:02:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1702512126; x=1734048126; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=/XZEAy8J3+/Ua/OLRSxnCycrS92jam6VLtJ/l4O4IKg=; b=ZqJORctbouvDyS+KUJQ5Z6eTSO8XVG7m5ctAbOZWjTf9XIijTa+njwV3 i//H19qGrDyR2cnoO1pZ2Hiqee85S+2Gv5laWFCuxVsPqFuLEzt7uzRu5 s39pSNmR7rl+Oiyi+84ZkyVDztuVvcUgczKyxaF4BPhoIq8w0JBcHkuWu aLqKHV98ILRu+QvhxitAnitJWp5rCVaFdx7c3X4jbyEC9zJyFxa3nHbWs mGBUG4qAg6iZdUxRD9KY67SOCZ7lPxlzVFquXitvc5Mg/btAUtPNDuMtO wZumwatmXs+fEoVMsvxmoUPDcVlUyJUQh10dUxc17ZG7ix5pExDpxwCyz A==; X-IronPort-AV: E=McAfee;i="6600,9927,10923"; a="459366298" X-IronPort-AV: E=Sophos;i="6.04,274,1695711600"; d="scan'208";a="459366298" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Dec 2023 16:02:04 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10923"; a="723849900" X-IronPort-AV: E=Sophos;i="6.04,274,1695711600"; d="scan'208";a="723849900" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by orsmga003.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 13 Dec 2023 16:02:03 -0800 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Wed, 13 Dec 2023 16:02:03 -0800 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35 via Frontend Transport; Wed, 13 Dec 2023 16:02:03 -0800 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.169) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Wed, 13 Dec 2023 16:02:02 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Z4/ZsmxsPpqC5vfB3cf3p3Z/jWcEJOnKrQ7HS+vCeRLUXzbsIJfCsu0KTRMdGeduLEHDrkpTj9gkOvel6zfsedgETQC+ZSTE2rGzFLjj1i/+NM4wdBM6Nw2uJ6qbzhZDt6AKmAuZ/4jbne5UF0IF9PBz/Xvw9bw8hZkJw/XCEjGmJWNX1byOvsSpTJ7uPScDejfGW3QQi0+WxeRU59Z7Cxj9i1zccXqINJ8gC5L34xXkojAGNC1CWoSEomkQeGjXup83/FL1lX1pZBlmtd+m7MYW69izPekZtj4o8ZERUTaZcHkDNWc017lF+/Y9Wo7HTxuO+/adN4dDfQuWU7rlMw== 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=wFRKW7l3ZcIViuuI87Mvpic3SF06TvgEuwTFWqJ6R28=; b=PQwhqQZdgoK7kajI7FAMgtga7Tfg2CDhmQi1uXxJZ1dezdqjJE7PPDyZ3ejcg4HqyLWyE2znc7cC343B5rhHXaiC+sorBYDgNu0eEQl+OcOl3emteqSPiwikkl92u2K3Fbtnl9MJn1N+tSVqGsSQsBGUNTYWszKfmE3zlT8kDlW/kqVot3gEqyxFdR3cpLt4MNEJuUZ4reXgsrkVsGXwssfbKCkmCesegG76smsTTbrWLz2C/lGaPuxIny00DrutIxXbrSfj0etdDalNnN37xq1oh6w1+KFcLHlJxCjD34uKLzAh6W9L1jhNvmZkEzdYgl8dS48c8S6hmTwblYueQA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from DM6PR11MB4252.namprd11.prod.outlook.com (2603:10b6:5:201::26) by MW4PR11MB6690.namprd11.prod.outlook.com (2603:10b6:303:1e8::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7068.33; Thu, 14 Dec 2023 00:01:55 +0000 Received: from DM6PR11MB4252.namprd11.prod.outlook.com ([fe80::4653:6321:d211:ee18]) by DM6PR11MB4252.namprd11.prod.outlook.com ([fe80::4653:6321:d211:ee18%5]) with mapi id 15.20.7091.028; Thu, 14 Dec 2023 00:01:55 +0000 From: "Xu, Rosen" To: Stephen Hemminger , "dev@dpdk.org" CC: Tianfei Zhang Subject: RE: [PATCH v3 30/37] raw/ifpga: replace PMD logtype with dynamic type Thread-Topic: [PATCH v3 30/37] raw/ifpga: replace PMD logtype with dynamic type Thread-Index: AQHaLeMcpF3mRtlb3U6OotXDbm1EtrCn5aBA Date: Thu, 14 Dec 2023 00:01:55 +0000 Message-ID: References: <20231213014408.612051-1-stephen@networkplumber.org> <20231213163820.894987-1-stephen@networkplumber.org> <20231213163820.894987-31-stephen@networkplumber.org> In-Reply-To: <20231213163820.894987-31-stephen@networkplumber.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DM6PR11MB4252:EE_|MW4PR11MB6690:EE_ x-ms-office365-filtering-correlation-id: c117579d-817d-42b8-4bba-08dbfc37e24c x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: lMRJ9QgiFY8rMlenZqRRxb6dr4s8EBiTmfvHoX0I+4IM4s9X6SMSSPAG0eBZyfWA/QFP43OqqMvPEu/c07r2XvmEVRUEIPI7tzys0S7KUCngxhmE9um4VYBdFI2nAuSF5eJ1AEIIK0zKkwxs1J2wZtjmUoWfeLHV9Zx5Q5JtfKuJAYHNOxIyQ2tJirCqA3P1vdp6Ys99K3wff5DY+1lFJDUUWhHtCSwYe6q+IrO5w7e8g/ZYNztq7y+fgSVcNvoK0X+lJ3khHCPcn1fv5l49fG2C8+Y8M3aEVf50iIyqMyaqwAUiWp8wB5ITsIjOfHqu28UMtdR4KJYXLW8zSbwq6RLTbICx+t8mjbx+x1xjlwue/+mjDQ8670u2HNmOVYCrF/groQ+3tB3Djr6QnvJ5y+dOAK5NM9nG6Vtz68FaSQsiBE81F2L4gM/5jFas5M9jv+HJ+obz2yeHbuqQbZ6IYybgn2Axi6WI5Ew/egeNo7SsuJxPauinduYHEgfWWSSlVav5hbf/Z+HWMLvByE07XyR+WKfdNG+kftkMX9cs20zXtgDbnV08FK7sW8tBVLnzefOcKQ7wz24p82yknYJ12R9EO60+a7NhmmZF2CSbJaNxq6ZE3gwJoNA43bbXJ/6w x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR11MB4252.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(346002)(396003)(366004)(376002)(39860400002)(136003)(230922051799003)(64100799003)(451199024)(186009)(1800799012)(55016003)(6506007)(53546011)(9686003)(107886003)(7696005)(478600001)(71200400001)(64756008)(4326008)(66446008)(66946007)(66476007)(8676002)(316002)(86362001)(66556008)(110136005)(52536014)(76116006)(82960400001)(33656002)(38100700002)(122000001)(26005)(8936002)(83380400001)(38070700009)(5660300002)(41300700001)(2906002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?BDnmIbJHqARxYd2QH5AEpTk6nwJT5HIzV+JEkEHcoTNLRHbWvAdBQSdq9Wcn?= =?us-ascii?Q?nmSpHkv9hxdvRC+iupz1RfWscA8zL5J9bMW1Ju9iFS9jIf6jlMwgHGwEoRXD?= =?us-ascii?Q?CnXhGnE4NicV0TQV59LTJsmBEoKIwe4ECcgFQ1oZWIIXnGvzwVl0GTaODTtT?= =?us-ascii?Q?44Z41a7XWrfZuC7LFqJFwaV+AH3ANa0lO5ItzSLnZaRKC9GgTDAcTY/w0uE6?= =?us-ascii?Q?JQ3jw5j2oYjDqvdQWjY8w6n/HomWoyZNu8oFwmwZtTWrSmLi0YFU5T4NiIp8?= =?us-ascii?Q?k2k5C2MmCFi7mpHOt5FTUgbEtCpQtRZACSWjbTR59CdsgJVUTgLwhU0Y0UGp?= =?us-ascii?Q?1GNfxhYULe5TF7ol1yRntddfFnDPX3B327Se4IvPsl2lnsaFOUUOQgpLzZSi?= =?us-ascii?Q?IuRmbZnmd+FeNRrn4wvzJB7C452GtANl42SoUw2E9YUz21gROTj8recuAW40?= =?us-ascii?Q?Qatx88mvKoGjYD+nTWkXDH81cH9g7lsjr6LHuIK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q?b/hly2tIePSDYJGT6IHs332Lg4oIEQhLNM35nLHOMzz6YZ4b6ZofvIDZDNl0?= =?us-ascii?Q?ZT3ebB+o+qfHYgTFL+UxyuquREej5LMjgudydAKBVoKucOH8L3zY0t9ZGtIR?= =?us-ascii?Q?ifxbdOuNVqGCphTemINoTrL6XBGoxbNtM6Ltuul8qTcVPfS79LOB2V3bAOjR?= =?us-ascii?Q?qVbaf7AxLJkAboV8bPw=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: DM6PR11MB4252.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: c117579d-817d-42b8-4bba-08dbfc37e24c X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Dec 2023 00:01:55.2494 (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: WOqLE1oO/jo8bA59l84WnL10mrkRZF/AI1K+LHjEft5W4hAyChMO9uLzJ+2Jj1K4oqQtRULlNF9lsJg5vI6Xhw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR11MB6690 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 Hi, > -----Original Message----- > From: Stephen Hemminger > Sent: Thursday, December 14, 2023 12:36 AM > To: dev@dpdk.org > Cc: Stephen Hemminger ; Xu, Rosen > ; Tianfei Zhang > Subject: [PATCH v3 30/37] raw/ifpga: replace PMD logtype with dynamic typ= e >=20 > Driver should not be using PMD logtype, they should have their own logtyp= e. >=20 > Signed-off-by: Stephen Hemminger > --- > drivers/raw/ifpga/base/osdep_rte/osdep_generic.h | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) >=20 > diff --git a/drivers/raw/ifpga/base/osdep_rte/osdep_generic.h > b/drivers/raw/ifpga/base/osdep_rte/osdep_generic.h > index 33041c907e19..ad885107ab7d 100644 > --- a/drivers/raw/ifpga/base/osdep_rte/osdep_generic.h > +++ b/drivers/raw/ifpga/base/osdep_rte/osdep_generic.h > @@ -16,8 +16,10 @@ > #include > #include >=20 > +extern int ifpga_rawdev_logtype; > + > #define dev_printf(level, fmt, args...) \ > - RTE_LOG(level, PMD, "osdep_rte: " fmt, ## args) > + rte_log(RTE_LOG_ ## level, ifpga_rawdev_logtype, "osdep_rte: " > fmt, ## > +args) >=20 > #define osdep_panic(...) rte_panic(...) >=20 > -- > 2.43.0 Reviewed-by: Rosen Xu