From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0085.outbound.protection.outlook.com [104.47.37.85]) by dpdk.org (Postfix) with ESMTP id 0825FA823; Wed, 18 Apr 2018 17:31:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=qsqfp6+i59G2VyWtSN29pj7UqJmaQBpTaRxO5FK5hsE=; b=HHgF1+Ijvr9X29hi1ntcV0mG2sC/a4U0sc4a3tLkEHVRtExu0eurDtcGAIGlX2w5Ik62tosZbUMV5fmPVaIZfbZsqm53Woy4UZLTktgkWmBa9nsDp77Qdzi3TBNknhaYADJ7gHXI0TrgsYmjVx0Vsbv2mY+4IKMuxEepGz527G8= Authentication-Results: monjalon.net; dkim=none (message not signed) header.d=none;monjalon.net; dmarc=none action=none header.from=caviumnetworks.com; Received: from localhost.localdomain (111.93.218.67) by DM5PR07MB3466.namprd07.prod.outlook.com (2603:10b6:4:67::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.675.11; Wed, 18 Apr 2018 15:31:06 +0000 From: Pavan Nikhilesh To: thomas@monjalon.net, jerin.jacob@caviumnetworks.com, techboard@dpdk.org Cc: dev@dpdk.org, Pavan Nikhilesh Date: Wed, 18 Apr 2018 21:00:35 +0530 Message-Id: <20180418153035.5972-2-pbhagavatula@caviumnetworks.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180418153035.5972-1-pbhagavatula@caviumnetworks.com> References: <20180418153035.5972-1-pbhagavatula@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: SG2PR06CA0095.apcprd06.prod.outlook.com (2603:1096:3:14::21) To DM5PR07MB3466.namprd07.prod.outlook.com (2603:10b6:4:67::21) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:DM5PR07MB3466; X-Microsoft-Exchange-Diagnostics: 1; DM5PR07MB3466; 3:FQubuv0Ga7cdY9spgup0UuglC2bQRfKU39YEg2bhmC++4zetfD9tMNV0/Ib6M7nSSjIEGY1DmR14zQnLiflDFGC44efdYrexj20hVNqzdRan/1mkx5YgHbdZwK/wYdBjJrolCLUlPgG/bxEA3PSIvA5CUFN2SCXwNpjy8j48zH5+CXcWekvppExkS8PQSEei8ahDr47s/xNRTbkNo8WSBP3wLncMLKnYkyxN+cQ/f57h0aYYjVd8cSNw7VkKY/s4; 25:1iI34M0j56YDImf5kBItoHckRsUNoWbEY22qp9RF0j257rizM+qG/gTROGfDgEx5BVuNXsOjorgOfiWmgTjXyURm6EQAEoOuUWoSmDlYVjuK2IqHZ33zRpcadSwbtcG4vX2xnHjUEvY1A36Ag/Mz6rxPMU8FK1EO2vXlFv8eAXO6rxaAPpgnwc7LvOrdmbnWhFk83BIUCPGeeoA+GQTlTXowpX/7F94KeijK8XyX2ZOl6e3OWb9C9tjy93qSOH4hYMNR0/ZNpVlbZDLEChreRJR9qTcN8anPHdaDWVWVF+1BwU9EIY0MmAAq0GPSc7ysTojbr3oquMwPdwA0EsVn2w==; 31:C6+EnICAmUkxE6GdbZ2JDGOiy5Bs/91L5qLQ5h0IPqefVZ88USxnAzz2LxwUBf0NDsDr0hTbtPtifhgqscaIRJmFqSQybpwAgHWBmPpwVtJi5bM+WnVHmEpfu6z9hmLbPpwgt5w1ed0gLvLHMzJ6L6ZD4wQZIs0bTTedQuKaEFleMR8z+dRKEeX51bkj0z8xLiLyRgkOyIFlhqLig+2uMLxSY+UckmLu7vIsN0uMcuo= X-MS-TrafficTypeDiagnostic: DM5PR07MB3466: X-Microsoft-Exchange-Diagnostics: 1; DM5PR07MB3466; 20:m1kjethwwdb6vZd8pBtnpjQbjS9XLQCkzWHC5j5SfstLCNfcel3U6rJ9YtTlyeCWCEP2vvD10wE8jolUgU7xfHYMQtFQuPiR48ks3QZDQh6MGWNNC1ed7mq5MFY0sUX8Cy0OUodspNFR3yG3f27kZ/Y58sFFru3ZHIf4tkEG6tozw8VtF+ZCvjnBV0KOYDjcXd3kNvGgo/NL4XxZUCFXfAs/v2KFJH+0fbH9niRW2C/u06IEc1D3n/9EYAEefvBglkLBAR6+jLAshcv4TWtBRcm8dizSLwc5YUmKYBMmzw/U2BFXPefgqV0ynF5sMoacXrxkeYtqF/PmA+3i29n0M1pE0ZAlkzWXZuvNrmdRgr4DkjrljOF7BWZZldSilYsd+8rLQomo0xndX3b8K2Sj55KbFXQpnwvDsGGSSIN/GVfzMuQR5gQOMXYAI48tqCmG3FLur4G0dscSvt7MKvMFPHKvwDdy5T1hZC2lkCtc4ILiiYPWX5KRAbiT4wbJp/kyntu/j5t+brwNOZK3Ln8/hPX29qJtGBnzrbeR7wpX+b1uz8sIu9CLT/w1q6JLqKZZEVcFO5xfYO5yXMOwxnNpJBbUvqxiExgdNJx935MFstk=; 4:lC0ywZG74SXwNfw5HO94IzVnWjYCSbdURpAot5NMeM3hXxQ3/0ViSjd77KUw9uIx7OEKtInBjWx5W92BUTdGaitrHFfnp01npqmZuoPzBDBllHAJtFRnueDHXPDvQIEcKP7DDj1jheH3c9FWyG9xF//XIXGcbvNb7o77BAJMQJqpFP2t0hvi3iliHWF65/GNFwRbetHNo9XX3jsLv9EHPzQqi41dM8QoMed4YIvZNB4nvawxpeWdAyRm3iaL87a5HKTjFZ2ZKv0AeOymtTIYOA== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231232)(944501327)(52105095)(93006095)(3002001)(10201501046)(6041310)(20161123560045)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(6072148)(201708071742011); SRVR:DM5PR07MB3466; BCL:0; PCL:0; RULEID:; SRVR:DM5PR07MB3466; X-Forefront-PRVS: 06469BCC91 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(39380400002)(366004)(346002)(39860400002)(376002)(6512007)(66066001)(25786009)(2906002)(107886003)(53936002)(6116002)(1076002)(6486002)(16526019)(4326008)(956004)(50226002)(186003)(2616005)(446003)(72206003)(26005)(5660300001)(42882007)(8936002)(59450400001)(476003)(1857600001)(478600001)(11346002)(50466002)(48376002)(16586007)(6506007)(386003)(7736002)(8676002)(575784001)(76176011)(305945005)(47776003)(6666003)(36756003)(81166006)(42262002); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR07MB3466; H:localhost.localdomain; FPR:; SPF:None; LANG:en; MLV:sfv; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR07MB3466; 23:WnM13043vbLgJgDMCe5gx+PPC+Yn4kdeD2f+ZMWx+?= =?us-ascii?Q?Au6aTsPHL3tSO7zZJV+CbiCxa/SMTWGYnuJJEmIUvfW0rg53QhwPPXf6xDqR?= =?us-ascii?Q?uIMzmIMVXM5IJyy+HeOGkG7cUk9Enc/pf9oj3Po4iShliu7+dMWSq9gRPFks?= =?us-ascii?Q?0lR7ojIrsLjC+zTsQF3cAxuR4Hx/JiT3Yb8JA3SJBVBgLyb1Xk2rIevmdyOv?= =?us-ascii?Q?i77WFG+hqzl+17trFErnoKIcgaR4Y78olD30rnUq8vnBjfRdZQahIzRzb3Dq?= =?us-ascii?Q?d7/FBg0ZXH49DtwE4ee32G9Uk1hkFE8Av6TyZuj34RS8XOH56AyjBhGzSdB1?= =?us-ascii?Q?CN03VT0kjGfhylTKAlK7s5bEsYRwlddv3yCTGbRrafv5VWJYc/haZo7p7gFC?= =?us-ascii?Q?Y9IuzOfiT7wE634qZhKyUU55J7q3chCp09NX97y2wmai8KBYPL46ghGpfhv3?= =?us-ascii?Q?vwEjzOnC7hEeGekJu+WSosH0U2rGqLpKBxInsTmosx5WCa5LJ2e5mV3UZIl9?= =?us-ascii?Q?+314atMCxS+0GE1VqHkuNTtBk7uK8QwX2rhwKHgYRX2meGLvQSxFAsK1owf+?= =?us-ascii?Q?PKycOho7N8gUUbbCPSxnWjeoHO/wigLDqPLn/6spgkn/qRNcQzpn7io15kQl?= =?us-ascii?Q?L8+aaT9mhzIYrAnHsm5igwlUX9X2xAE5RA8u2Of11TfJ9xZEngSaht2rDruE?= =?us-ascii?Q?jJ+vRExvn/94wYARkSRu/gS2bLLSvNDCFF3ZnPZg8Y/bM4bF3PvETT1XFY8g?= =?us-ascii?Q?754D+wbHMEoBe20kp3q4e28XIeHN2ZSyAU9HmA+2LT1nVSvZciaqOxB7Sxab?= =?us-ascii?Q?KhlfPGb4V5eURTEdR6ECuc4HvoFtzembbOdGu1YpM7uMqAgM8qb6380yc4Dy?= =?us-ascii?Q?jzV899fdlRh/9Pt5HI/pxezUbyRUB2i9G8B4kXeAzS6yP+fa4/BNDcQ+0TUS?= =?us-ascii?Q?B1xaTNZm8VNwInEZ4hsYsoSTM4cHto7ubhvNXYJxyvf76kl8xTaQbqkeMyVd?= =?us-ascii?Q?F2FBqBAnUuK4TXfQjHLNnYhMr1L6dRuMaRu7j4BAorgC8QzAa54LwDvrWPp3?= =?us-ascii?Q?12eB7X6ZxrH8naPnRDNHlCLDR+M?= X-Microsoft-Antispam-Message-Info: jxABahVBRk83LPiEQ/7lR2duzkVxIT8X1P9zzNWVwQXUuWbvQoAejcihWV/ASztCMrSq6NVpXKykVgbF6OUJApUA66ik3xNXiZnghqe37ORHjTwS5A260oElD9LcIpZi1ZLwEffhX31Rd2Xi6YRfs7OJRCANqBuAYLizZw8ANlq9QSsuKFGwDAg9Up9UjDK/ X-Microsoft-Exchange-Diagnostics: 1; DM5PR07MB3466; 6:AhXSVRkpQ7+K+2BxuLvjsButlLqcsYCFZH+5J7T/xh7H0bCcYJ/hc9agDtQejWqTivAMtgZGZrbBGqttm+185Gx6DxHDd8ZL7b6O+aoH1U7VyELnDuGqgTDKJwCiyoiOWAxEBEisCdFWUFcTWtModKvwUiddKp4Km2hI7AfAtSeqDkOS5N220wXQ6cm3BbAhOVd94x8WwWx3lL3EGy+2FWlgOfYo/0LmDdhmH9NB5CSHo8FwS5YpH58+tPCRZ9yfY0wLvtJwstGiLCEyQKS3kJBeL1KJsjX500dwCAdVI5XiE40c+sQknE4BEQaOhR0XUxfBP2Urc/A6w1mCvVysq1ckXJiDZusv4bSGsfzHiQw+uu8bNrtmEnCQo62r2C1aHEgeDnbaAmSBKno5oScX3TF8zRDpgI3EtIRJyQpA6PMGMNIOvcKrlHTPlplGQip899MPm7uShlden9v5N9g/FA==; 5:6ZGUVYdTNoIPzHIAdWoOEeVarymTC5JmKlU5URMLRmJkKwW0sTcLpC+kIPfJdfs5RVp6XmsM7iJAAtvDr2Eqj6ALkqUXSlI0durL3tndg2h+74ehGqBJJWPD+7tSmKDPJIkXNEu+1IC/jlRjzyrbOwJq/2AgiARZl0YFP4itL0Y=; 24:6k5SLfzjLSA8pnlRcYY8FOUIazQB9kuaZx+AA8qc92TGscHr60uCkUq18NYfT5ca5k0eRCFDXCYqEeP72Wo5cVa3dYOL/iyvpPyZu7TmXEw= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM5PR07MB3466; 7:RUgeuVoEuHgWmD/dxxSPuOSOCFm6ZEikIEylS0mrLFDlHW9R5oxrrsdoWEtJJWFJY1sDUVLHBrAvp/X1L7Jo7SyPsmgCSJuYZ9tvKkkkrQBxxSPrrIQ6DGMK0GCVNoDFcjzmY9nxV41mbTvAwl8LRTwO2YmjC2acJQTHWyppUrUG6iL+aj9JpksCTXUFuwgBykrLgBtkjvUB7ymlkX4LkYuUZRSGgVLR4AtE3RNYSFbHFmbQ+MNwTE2/BqM2Fice X-MS-Office365-Filtering-Correlation-Id: 88129173-c88f-41f6-253b-08d5a54169ed X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Apr 2018 15:31:06.9524 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 88129173-c88f-41f6-253b-08d5a54169ed X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR07MB3466 Subject: [dpdk-dev] [PATCH 2/2] drivers: mark logtype variables as read mostly 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: , X-List-Received-Date: Wed, 18 Apr 2018 15:31:13 -0000 Signed-off-by: Pavan Nikhilesh --- drivers/bus/dpaa/dpaa_bus.c | 8 ++++---- drivers/bus/fslmc/fslmc_bus.c | 2 +- drivers/bus/vdev/vdev.c | 2 +- drivers/common/octeontx/octeontx_mbox.c | 2 +- drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c | 2 +- drivers/event/dpaa2/dpaa2_eventdev.c | 2 +- drivers/event/octeontx/ssovf_evdev.c | 2 +- drivers/event/octeontx/timvf_evdev.c | 2 +- drivers/event/opdl/opdl_ring.c | 2 +- drivers/event/sw/sw_evdev.c | 2 +- drivers/mempool/dpaa2/dpaa2_hw_mempool.c | 2 +- drivers/mempool/octeontx/octeontx_fpavf.c | 4 ++-- drivers/net/avf/avf_ethdev.c | 4 ++-- drivers/net/avp/avp_ethdev.c | 2 +- drivers/net/axgbe/axgbe_ethdev.c | 4 ++-- drivers/net/bnx2x/bnx2x_ethdev.c | 4 ++-- drivers/net/bnxt/bnxt_ethdev.c | 2 +- drivers/net/dpaa2/dpaa2_ethdev.c | 2 +- drivers/net/e1000/em_ethdev.c | 4 ++-- drivers/net/ena/ena_ethdev.c | 4 ++-- drivers/net/enic/enic_ethdev.c | 4 ++-- drivers/net/fm10k/fm10k_ethdev.c | 4 ++-- drivers/net/i40e/i40e_ethdev.c | 4 ++-- drivers/net/ixgbe/ixgbe_ethdev.c | 4 ++-- drivers/net/liquidio/lio_ethdev.c | 4 ++-- drivers/net/mlx5/mlx5.c | 2 +- drivers/net/nfp/nfp_net.c | 4 ++-- drivers/net/octeontx/octeontx_ethdev.c | 6 +++--- drivers/net/qede/qede_ethdev.c | 4 ++-- drivers/net/sfc/sfc_ethdev.c | 2 +- drivers/net/szedata2/rte_eth_szedata2.c | 4 ++-- drivers/net/thunderx/nicvf_ethdev.c | 6 +++--- drivers/net/virtio/virtio_ethdev.c | 4 ++-- drivers/net/vmxnet3/vmxnet3_ethdev.c | 4 ++-- drivers/raw/skeleton_rawdev/skeleton_rawdev.c | 2 +- lib/librte_member/rte_member.c | 2 +- lib/librte_rawdev/rte_rawdev.c | 2 +- 37 files changed, 60 insertions(+), 60 deletions(-) diff --git a/drivers/bus/dpaa/dpaa_bus.c b/drivers/bus/dpaa/dpaa_bus.c index ffc90a702..3758960d9 100644 --- a/drivers/bus/dpaa/dpaa_bus.c +++ b/drivers/bus/dpaa/dpaa_bus.c @@ -41,10 +41,10 @@ #include #include -int dpaa_logtype_bus; -int dpaa_logtype_mempool; -int dpaa_logtype_pmd; -int dpaa_logtype_eventdev; +int dpaa_logtype_bus __rte_read_mostly; +int dpaa_logtype_mempool __rte_read_mostly; +int dpaa_logtype_pmd __rte_read_mostly; +int dpaa_logtype_eventdev __rte_read_mostly; struct rte_dpaa_bus rte_dpaa_bus; struct netcfg_info *dpaa_netcfg; diff --git a/drivers/bus/fslmc/fslmc_bus.c b/drivers/bus/fslmc/fslmc_bus.c index d0b32611f..2a9f23725 100644 --- a/drivers/bus/fslmc/fslmc_bus.c +++ b/drivers/bus/fslmc/fslmc_bus.c @@ -20,7 +20,7 @@ #include #include "fslmc_logs.h" -int dpaa2_logtype_bus; +int dpaa2_logtype_bus __rte_read_mostly; #define VFIO_IOMMU_GROUP_PATH "/sys/kernel/iommu_groups" diff --git a/drivers/bus/vdev/vdev.c b/drivers/bus/vdev/vdev.c index f8dd1f5e6..b062b8766 100644 --- a/drivers/bus/vdev/vdev.c +++ b/drivers/bus/vdev/vdev.c @@ -23,7 +23,7 @@ #include "rte_bus_vdev.h" #include "vdev_logs.h" -int vdev_logtype_bus; +int vdev_logtype_bus __rte_read_mostly; /* Forward declare to access virtual bus name */ static struct rte_bus rte_vdev_bus; diff --git a/drivers/common/octeontx/octeontx_mbox.c b/drivers/common/octeontx/octeontx_mbox.c index 93e6e8579..e3468959e 100644 --- a/drivers/common/octeontx/octeontx_mbox.c +++ b/drivers/common/octeontx/octeontx_mbox.c @@ -59,7 +59,7 @@ struct mbox_ram_hdr { }; }; -int octeontx_logtype_mbox; +int octeontx_logtype_mbox __rte_read_mostly; RTE_INIT(otx_init_log); static void diff --git a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c index 23012e35a..77fe45724 100644 --- a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c +++ b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c @@ -56,7 +56,7 @@ enum rta_sec_era rta_sec_era = RTA_SEC_ERA_8; static uint8_t cryptodev_driver_id; -int dpaa2_logtype_sec; +int dpaa2_logtype_sec __rte_read_mostly; static inline int build_proto_fd(dpaa2_sec_session *sess, diff --git a/drivers/event/dpaa2/dpaa2_eventdev.c b/drivers/event/dpaa2/dpaa2_eventdev.c index f50bb8dc6..84652836a 100644 --- a/drivers/event/dpaa2/dpaa2_eventdev.c +++ b/drivers/event/dpaa2/dpaa2_eventdev.c @@ -48,7 +48,7 @@ */ /* Dynamic logging identified for mempool */ -int dpaa2_logtype_event; +int dpaa2_logtype_event __rte_read_mostly; static uint16_t dpaa2_eventdev_enqueue_burst(void *port, const struct rte_event ev[], diff --git a/drivers/event/octeontx/ssovf_evdev.c b/drivers/event/octeontx/ssovf_evdev.c index 2df70b52a..7a261e174 100644 --- a/drivers/event/octeontx/ssovf_evdev.c +++ b/drivers/event/octeontx/ssovf_evdev.c @@ -20,7 +20,7 @@ #include "ssovf_evdev.h" #include "timvf_evdev.h" -int otx_logtype_ssovf; +int otx_logtype_ssovf __rte_read_mostly; static uint8_t timvf_enable_stats; RTE_INIT(otx_ssovf_init_log); diff --git a/drivers/event/octeontx/timvf_evdev.c b/drivers/event/octeontx/timvf_evdev.c index b20a2f1f5..a4c69ddb5 100644 --- a/drivers/event/octeontx/timvf_evdev.c +++ b/drivers/event/octeontx/timvf_evdev.c @@ -5,7 +5,7 @@ #include "timvf_evdev.h" -int otx_logtype_timvf; +int otx_logtype_timvf __rte_read_mostly; RTE_INIT(otx_timvf_init_log); static void diff --git a/drivers/event/opdl/opdl_ring.c b/drivers/event/opdl/opdl_ring.c index 8aca481c9..1d2e8f633 100644 --- a/drivers/event/opdl/opdl_ring.c +++ b/drivers/event/opdl/opdl_ring.c @@ -30,7 +30,7 @@ #define OPDL_OPA_MASK (0xFF) #define OPDL_OPA_OFFSET (0x38) -int opdl_logtype_driver; +int opdl_logtype_driver __rte_read_mostly; /* Types of dependency between stages */ enum dep_type { diff --git a/drivers/event/sw/sw_evdev.c b/drivers/event/sw/sw_evdev.c index dcb655108..4733e6600 100644 --- a/drivers/event/sw/sw_evdev.c +++ b/drivers/event/sw/sw_evdev.c @@ -949,7 +949,7 @@ RTE_PMD_REGISTER_PARAM_STRING(event_sw, NUMA_NODE_ARG "= " SCHED_QUANTA_ARG "=" CREDIT_QUANTA_ARG "="); /* declared extern in header, for access from other .c files */ -int eventdev_sw_log_level; +int eventdev_sw_log_level __rte_read_mostly; RTE_INIT(evdev_sw_init_log); static void diff --git a/drivers/mempool/dpaa2/dpaa2_hw_mempool.c b/drivers/mempool/dpaa2/dpaa2_hw_mempool.c index ce7a4c577..3659d9eb7 100644 --- a/drivers/mempool/dpaa2/dpaa2_hw_mempool.c +++ b/drivers/mempool/dpaa2/dpaa2_hw_mempool.c @@ -33,7 +33,7 @@ struct dpaa2_bp_info rte_dpaa2_bpid_info[MAX_BPID]; static struct dpaa2_bp_list *h_bp_list; /* Dynamic logging identified for mempool */ -int dpaa2_logtype_mempool; +int dpaa2_logtype_mempool __rte_read_mostly; static int rte_hw_mbuf_create_pool(struct rte_mempool *mp) diff --git a/drivers/mempool/octeontx/octeontx_fpavf.c b/drivers/mempool/octeontx/octeontx_fpavf.c index 7aecaa85d..48df4c73e 100644 --- a/drivers/mempool/octeontx/octeontx_fpavf.c +++ b/drivers/mempool/octeontx/octeontx_fpavf.c @@ -105,8 +105,8 @@ struct octeontx_fpadev { static struct octeontx_fpadev fpadev; -int octeontx_logtype_fpavf; -int octeontx_logtype_fpavf_mbox; +int octeontx_logtype_fpavf __rte_read_mostly; +int octeontx_logtype_fpavf_mbox __rte_read_mostly; RTE_INIT(otx_pool_init_log); static void diff --git a/drivers/net/avf/avf_ethdev.c b/drivers/net/avf/avf_ethdev.c index a1ae3a23a..f2e3f62f0 100644 --- a/drivers/net/avf/avf_ethdev.c +++ b/drivers/net/avf/avf_ethdev.c @@ -72,8 +72,8 @@ static int avf_dev_rx_queue_intr_enable(struct rte_eth_dev *dev, static int avf_dev_rx_queue_intr_disable(struct rte_eth_dev *dev, uint16_t queue_id); -int avf_logtype_init; -int avf_logtype_driver; +int avf_logtype_init __rte_read_mostly; +int avf_logtype_driver __rte_read_mostly; static const struct rte_pci_id pci_id_avf_map[] = { { RTE_PCI_DEVICE(AVF_INTEL_VENDOR_ID, AVF_DEV_ID_ADAPTIVE_VF) }, diff --git a/drivers/net/avp/avp_ethdev.c b/drivers/net/avp/avp_ethdev.c index 5b3c4cebf..4a039da37 100644 --- a/drivers/net/avp/avp_ethdev.c +++ b/drivers/net/avp/avp_ethdev.c @@ -32,7 +32,7 @@ #include "avp_logs.h" -int avp_logtype_driver; +int avp_logtype_driver __rte_read_mostly; static int avp_dev_create(struct rte_pci_device *pci_dev, struct rte_eth_dev *eth_dev); diff --git a/drivers/net/axgbe/axgbe_ethdev.c b/drivers/net/axgbe/axgbe_ethdev.c index 7a3ba2e7b..0707127b1 100644 --- a/drivers/net/axgbe/axgbe_ethdev.c +++ b/drivers/net/axgbe/axgbe_ethdev.c @@ -32,8 +32,8 @@ static void axgbe_dev_info_get(struct rte_eth_dev *dev, #define AMD_PCI_AXGBE_DEVICE_V2A 0x1458 #define AMD_PCI_AXGBE_DEVICE_V2B 0x1459 -int axgbe_logtype_init; -int axgbe_logtype_driver; +int axgbe_logtype_init __rte_read_mostly; +int axgbe_logtype_driver __rte_read_mostly; static const struct rte_pci_id pci_id_axgbe_map[] = { {RTE_PCI_DEVICE(AMD_PCI_VENDOR_ID, AMD_PCI_AXGBE_DEVICE_V2A)}, diff --git a/drivers/net/bnx2x/bnx2x_ethdev.c b/drivers/net/bnx2x/bnx2x_ethdev.c index e08ef779f..207edb4b9 100644 --- a/drivers/net/bnx2x/bnx2x_ethdev.c +++ b/drivers/net/bnx2x/bnx2x_ethdev.c @@ -14,8 +14,8 @@ #include #include -int bnx2x_logtype_init; -int bnx2x_logtype_driver; +int bnx2x_logtype_init __rte_read_mostly; +int bnx2x_logtype_driver __rte_read_mostly; /* * The set of PCI devices this driver supports diff --git a/drivers/net/bnxt/bnxt_ethdev.c b/drivers/net/bnxt/bnxt_ethdev.c index 1d4ff54b7..a81646c7c 100644 --- a/drivers/net/bnxt/bnxt_ethdev.c +++ b/drivers/net/bnxt/bnxt_ethdev.c @@ -30,7 +30,7 @@ #define DRV_MODULE_NAME "bnxt" static const char bnxt_version[] = "Broadcom Cumulus driver " DRV_MODULE_NAME "\n"; -int bnxt_logtype_driver; +int bnxt_logtype_driver __rte_read_mostly; #define PCI_VENDOR_ID_BROADCOM 0x14E4 diff --git a/drivers/net/dpaa2/dpaa2_ethdev.c b/drivers/net/dpaa2/dpaa2_ethdev.c index 54ab9eb15..fcb8c9d55 100644 --- a/drivers/net/dpaa2/dpaa2_ethdev.c +++ b/drivers/net/dpaa2/dpaa2_ethdev.c @@ -57,7 +57,7 @@ static int dpaa2_dev_set_link_up(struct rte_eth_dev *dev); static int dpaa2_dev_set_link_down(struct rte_eth_dev *dev); static int dpaa2_dev_mtu_set(struct rte_eth_dev *dev, uint16_t mtu); -int dpaa2_logtype_pmd; +int dpaa2_logtype_pmd __rte_read_mostly; static int dpaa2_vlan_filter_set(struct rte_eth_dev *dev, uint16_t vlan_id, int on) diff --git a/drivers/net/e1000/em_ethdev.c b/drivers/net/e1000/em_ethdev.c index de7db2650..3f301764a 100644 --- a/drivers/net/e1000/em_ethdev.c +++ b/drivers/net/e1000/em_ethdev.c @@ -106,8 +106,8 @@ static int eth_em_set_mc_addr_list(struct rte_eth_dev *dev, static enum e1000_fc_mode em_fc_setting = e1000_fc_full; -int e1000_logtype_init; -int e1000_logtype_driver; +int e1000_logtype_init __rte_read_mostly; +int e1000_logtype_driver __rte_read_mostly; /* * The set of PCI devices this driver supports diff --git a/drivers/net/ena/ena_ethdev.c b/drivers/net/ena/ena_ethdev.c index ab4e2af91..ec40690e4 100644 --- a/drivers/net/ena/ena_ethdev.c +++ b/drivers/net/ena/ena_ethdev.c @@ -186,8 +186,8 @@ static const struct ena_stats ena_stats_ena_com_strings[] = { #define ENA_TX_OFFLOAD_NOTSUP_MASK \ (PKT_TX_OFFLOAD_MASK ^ ENA_TX_OFFLOAD_MASK) -int ena_logtype_init; -int ena_logtype_driver; +int ena_logtype_init __rte_read_mostly; +int ena_logtype_driver __rte_read_mostly; static const struct rte_pci_id pci_id_ena_map[] = { { RTE_PCI_DEVICE(PCI_VENDOR_ID_AMAZON, PCI_DEVICE_ID_ENA_VF) }, diff --git a/drivers/net/enic/enic_ethdev.c b/drivers/net/enic/enic_ethdev.c index 801f4704c..cd0bcbb8b 100644 --- a/drivers/net/enic/enic_ethdev.c +++ b/drivers/net/enic/enic_ethdev.c @@ -20,8 +20,8 @@ #include "vnic_enet.h" #include "enic.h" -int enicpmd_logtype_init; -int enicpmd_logtype_flow; +int enicpmd_logtype_init __rte_read_mostly; +int enicpmd_logtype_flow __rte_read_mostly; #define PMD_INIT_LOG(level, fmt, args...) \ rte_log(RTE_LOG_ ## level, enicpmd_logtype_init, \ diff --git a/drivers/net/fm10k/fm10k_ethdev.c b/drivers/net/fm10k/fm10k_ethdev.c index 34affd1cc..d288ab916 100644 --- a/drivers/net/fm10k/fm10k_ethdev.c +++ b/drivers/net/fm10k/fm10k_ethdev.c @@ -40,8 +40,8 @@ #define GLORT_FD_MASK GLORT_PF_MASK #define GLORT_FD_INDEX GLORT_FD_Q_BASE -int fm10k_logtype_init; -int fm10k_logtype_driver; +int fm10k_logtype_init __rte_read_mostly; +int fm10k_logtype_driver __rte_read_mostly; static void fm10k_close_mbx_service(struct fm10k_hw *hw); static void fm10k_dev_promiscuous_enable(struct rte_eth_dev *dev); diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c index 180ac7449..453a028b4 100644 --- a/drivers/net/i40e/i40e_ethdev.c +++ b/drivers/net/i40e/i40e_ethdev.c @@ -392,8 +392,8 @@ static void i40e_tunnel_filter_restore(struct i40e_pf *pf); static void i40e_filter_restore(struct i40e_pf *pf); static void i40e_notify_all_vfs_link_status(struct rte_eth_dev *dev); -int i40e_logtype_init; -int i40e_logtype_driver; +int i40e_logtype_init __rte_read_mostly; +int i40e_logtype_driver __rte_read_mostly; static const struct rte_pci_id pci_id_i40e_map[] = { { RTE_PCI_DEVICE(I40E_INTEL_VENDOR_ID, I40E_DEV_ID_SFP_XL710) }, diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c index a5e2fc0ca..0626ac0df 100644 --- a/drivers/net/ixgbe/ixgbe_ethdev.c +++ b/drivers/net/ixgbe/ixgbe_ethdev.c @@ -400,8 +400,8 @@ static void ixgbe_l2_tunnel_conf(struct rte_eth_dev *dev); (r) = (h)->bitmap[idx] >> bit & 1;\ } while (0) -int ixgbe_logtype_init; -int ixgbe_logtype_driver; +int ixgbe_logtype_init __rte_read_mostly; +int ixgbe_logtype_driver __rte_read_mostly; /* * The set of PCI devices this driver supports diff --git a/drivers/net/liquidio/lio_ethdev.c b/drivers/net/liquidio/lio_ethdev.c index a13a566f9..1ece118ba 100644 --- a/drivers/net/liquidio/lio_ethdev.c +++ b/drivers/net/liquidio/lio_ethdev.c @@ -14,8 +14,8 @@ #include "lio_ethdev.h" #include "lio_rxtx.h" -int lio_logtype_init; -int lio_logtype_driver; +int lio_logtype_init __rte_read_mostly; +int lio_logtype_driver __rte_read_mostly; /* Default RSS key in use */ static uint8_t lio_rss_key[40] = { diff --git a/drivers/net/mlx5/mlx5.c b/drivers/net/mlx5/mlx5.c index 68783c3ac..e35a6e1e0 100644 --- a/drivers/net/mlx5/mlx5.c +++ b/drivers/net/mlx5/mlx5.c @@ -82,7 +82,7 @@ #endif /** Driver-specific log messages type. */ -int mlx5_logtype; +int mlx5_logtype __rte_read_mostly; /** * Retrieve integer value from environment variable. diff --git a/drivers/net/nfp/nfp_net.c b/drivers/net/nfp/nfp_net.c index bedd4b668..df2ccab4a 100644 --- a/drivers/net/nfp/nfp_net.c +++ b/drivers/net/nfp/nfp_net.c @@ -3307,8 +3307,8 @@ static int nfp_pf_pci_probe(struct rte_pci_driver *pci_drv __rte_unused, return ret; } -int nfp_logtype_init; -int nfp_logtype_driver; +int nfp_logtype_init __rte_read_mostly; +int nfp_logtype_driver __rte_read_mostly; static const struct rte_pci_id pci_id_nfp_pf_net_map[] = { { diff --git a/drivers/net/octeontx/octeontx_ethdev.c b/drivers/net/octeontx/octeontx_ethdev.c index 6d67d257c..c5d4805f2 100644 --- a/drivers/net/octeontx/octeontx_ethdev.c +++ b/drivers/net/octeontx/octeontx_ethdev.c @@ -42,9 +42,9 @@ enum octeontx_link_speed { OCTEONTX_LINK_SPEED_RESERVE2 }; -int otx_net_logtype_mbox; -int otx_net_logtype_init; -int otx_net_logtype_driver; +int otx_net_logtype_mbox __rte_read_mostly; +int otx_net_logtype_init __rte_read_mostly; +int otx_net_logtype_driver __rte_read_mostly; RTE_INIT(otx_net_init_log); static void diff --git a/drivers/net/qede/qede_ethdev.c b/drivers/net/qede/qede_ethdev.c index 12023002e..4959438b2 100644 --- a/drivers/net/qede/qede_ethdev.c +++ b/drivers/net/qede/qede_ethdev.c @@ -12,8 +12,8 @@ #include /* Globals */ -int qede_logtype_init; -int qede_logtype_driver; +int qede_logtype_init __rte_read_mostly; +int qede_logtype_driver __rte_read_mostly; static const struct qed_eth_ops *qed_ops; static int64_t timer_period = 1; diff --git a/drivers/net/sfc/sfc_ethdev.c b/drivers/net/sfc/sfc_ethdev.c index 47d7a8609..a13a78e96 100644 --- a/drivers/net/sfc/sfc_ethdev.c +++ b/drivers/net/sfc/sfc_ethdev.c @@ -27,7 +27,7 @@ #include "sfc_dp.h" #include "sfc_dp_rx.h" -uint32_t sfc_logtype_driver; +uint32_t sfc_logtype_driver __rte_read_mostly; static struct sfc_dp_list sfc_dp_head = TAILQ_HEAD_INITIALIZER(sfc_dp_head); diff --git a/drivers/net/szedata2/rte_eth_szedata2.c b/drivers/net/szedata2/rte_eth_szedata2.c index d105e50f3..63b352159 100644 --- a/drivers/net/szedata2/rte_eth_szedata2.c +++ b/drivers/net/szedata2/rte_eth_szedata2.c @@ -102,8 +102,8 @@ struct szedata2_tx_queue { volatile uint64_t err_pkts; }; -int szedata2_logtype_init; -int szedata2_logtype_driver; +int szedata2_logtype_init __rte_read_mostly; +int szedata2_logtype_driver __rte_read_mostly; static struct ether_addr eth_addr = { .addr_bytes = { 0x00, 0x11, 0x17, 0x00, 0x00, 0x00 } diff --git a/drivers/net/thunderx/nicvf_ethdev.c b/drivers/net/thunderx/nicvf_ethdev.c index 75e9d16c5..9fcbc1cd7 100644 --- a/drivers/net/thunderx/nicvf_ethdev.c +++ b/drivers/net/thunderx/nicvf_ethdev.c @@ -42,9 +42,9 @@ #include "nicvf_svf.h" #include "nicvf_logs.h" -int nicvf_logtype_mbox; -int nicvf_logtype_init; -int nicvf_logtype_driver; +int nicvf_logtype_mbox __rte_read_mostly; +int nicvf_logtype_init __rte_read_mostly; +int nicvf_logtype_driver __rte_read_mostly; static void nicvf_dev_stop(struct rte_eth_dev *dev); static void nicvf_dev_stop_cleanup(struct rte_eth_dev *dev, bool cleanup); diff --git a/drivers/net/virtio/virtio_ethdev.c b/drivers/net/virtio/virtio_ethdev.c index 41042cb23..a4d416db1 100644 --- a/drivers/net/virtio/virtio_ethdev.c +++ b/drivers/net/virtio/virtio_ethdev.c @@ -79,8 +79,8 @@ static int virtio_dev_queue_stats_mapping_set( uint8_t stat_idx, uint8_t is_rx); -int virtio_logtype_init; -int virtio_logtype_driver; +int virtio_logtype_init __rte_read_mostly; +int virtio_logtype_driver __rte_read_mostly; static void virtio_notify_peers(struct rte_eth_dev *dev); static void virtio_ack_link_announce(struct rte_eth_dev *dev); diff --git a/drivers/net/vmxnet3/vmxnet3_ethdev.c b/drivers/net/vmxnet3/vmxnet3_ethdev.c index 456852108..f5cc103d3 100644 --- a/drivers/net/vmxnet3/vmxnet3_ethdev.c +++ b/drivers/net/vmxnet3/vmxnet3_ethdev.c @@ -76,8 +76,8 @@ static int vmxnet3_mac_addr_set(struct rte_eth_dev *dev, struct ether_addr *mac_addr); static void vmxnet3_interrupt_handler(void *param); -int vmxnet3_logtype_init; -int vmxnet3_logtype_driver; +int vmxnet3_logtype_init __rte_read_mostly; +int vmxnet3_logtype_driver __rte_read_mostly; /* * The set of PCI devices this driver supports diff --git a/drivers/raw/skeleton_rawdev/skeleton_rawdev.c b/drivers/raw/skeleton_rawdev/skeleton_rawdev.c index 6bdbbb50d..0d2a7fa9d 100644 --- a/drivers/raw/skeleton_rawdev/skeleton_rawdev.c +++ b/drivers/raw/skeleton_rawdev/skeleton_rawdev.c @@ -29,7 +29,7 @@ #include "skeleton_rawdev.h" /* Dynamic log type identifier */ -int skeleton_pmd_logtype; +int skeleton_pmd_logtype __rte_read_mostly; /* Count of instances */ uint16_t skeldev_init_once; diff --git a/lib/librte_member/rte_member.c b/lib/librte_member/rte_member.c index e147dd1f1..2d0e8aeb5 100644 --- a/lib/librte_member/rte_member.c +++ b/lib/librte_member/rte_member.c @@ -14,7 +14,7 @@ #include "rte_member_ht.h" #include "rte_member_vbf.h" -int librte_member_logtype; +int librte_member_logtype __rte_read_mostly; TAILQ_HEAD(rte_member_list, rte_tailq_entry); static struct rte_tailq_elem rte_member_tailq = { diff --git a/lib/librte_rawdev/rte_rawdev.c b/lib/librte_rawdev/rte_rawdev.c index d314ef96b..38445e854 100644 --- a/lib/librte_rawdev/rte_rawdev.c +++ b/lib/librte_rawdev/rte_rawdev.c @@ -33,7 +33,7 @@ #include "rte_rawdev_pmd.h" /* dynamic log identifier */ -int librawdev_logtype; +int librawdev_logtype __rte_read_mostly; struct rte_rawdev rte_rawdevices[RTE_RAWDEV_MAX_DEVS]; -- 2.17.0