From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM04-CO1-obe.outbound.protection.outlook.com (mail-eopbgr690051.outbound.protection.outlook.com [40.107.69.51]) by dpdk.org (Postfix) with ESMTP id 33A275398 for ; Mon, 8 Oct 2018 12:42:40 +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:X-MS-Exchange-SenderADCheck; bh=4LLVcmUOzP8MxP455bIbvojZqc1DnivsUVW7sNJtJqE=; b=VIBTfFcBe7UfLVdvs1cyqb1arOCVNb6O2fxoTwx7/ALumst0i53sgaPauuX+wmlYxEszUQVw3jmnpBBWpt6WXOTg7ClNnM4Vq2ii9ZlrN8eyDHjXpDcOQCuRB3FZHBL2g6+tUr19v2YizMksbPUOvTOtxiwjdMDkBrFFXpV+xmA= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Anoob.Joseph@cavium.com; Received: from ajoseph83.caveonetworks.com.com (115.113.156.2) by DM6PR07MB4908.namprd07.prod.outlook.com (2603:10b6:5:a3::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1207.27; Mon, 8 Oct 2018 10:42:36 +0000 From: Anoob Joseph To: Bruce Richardson , Pablo de Lara Cc: Anoob Joseph , Jerin Jacob , Narayana Prasad , dev@dpdk.org Date: Mon, 8 Oct 2018 16:11:25 +0530 Message-Id: <1538995285-2040-9-git-send-email-anoob.joseph@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1538995285-2040-1-git-send-email-anoob.joseph@caviumnetworks.com> References: <1538995285-2040-1-git-send-email-anoob.joseph@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [115.113.156.2] X-ClientProxiedBy: MA1PR01CA0105.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:1::21) To DM6PR07MB4908.namprd07.prod.outlook.com (2603:10b6:5:a3::13) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3b129a25-d924-4a64-d78d-08d62d0ac45f X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(2017052603328)(7153060)(7193020); SRVR:DM6PR07MB4908; X-Microsoft-Exchange-Diagnostics: 1; DM6PR07MB4908; 3:FKPmfKAc4g80AzSrcrff4unqSHIgsVwoCMtKjMvu+vMkUmaaQjRdv9pniyP9BtqqtKF4p0XBh6/FGm9Vt7ujnBhVGdUUJLlA3hvl7TBbS14lK0iC+yuQos9IGsBXTfhj5mSfI2xBW+/N3D53NGbHlf8a1P914TB5LBfMfJyBzIUZsyIHoIKm49mJ5wRmgd4T281GBaiPxG8HNs1XO65gfTDRIMazX8pFtQ8UbaqnDtT4vHvI+n3VA6JRuzwdNsND; 25:8mAvsPfoBXmpP5H7b+Ub5ptxrJGgJlX+ZcCe/ADvS+Leop5afGJaKAvSLaNTGPH9FnvpB9xOZ3WZUvNfyfXx7KSN5hOuTDHIVO2SsMjGpZ91UnMaDKkRGydSUqwqqrLDjblaSbgGW8Fy9353G/iypjc5yb/elhpDtz1Jt5eBGW4OkNyvv/imvT1Kpl76s0hOzFHOq8ahENRrGXqTPPKEx/CL+kErV2u3U1hKVqPZrd/3rcuCJ1CMXtFgrKKKo/veEKhU12ubHyGtijvf+X1gyhJSTneU1kgrvEw6T9Ck2G4bAP04zhmJmuhaKS6BIA5Y1Aiu7cEWQPo0OjJqSTlHGA==; 31:5+IupTOv5c1fuZEBngM5iIFufr8/+CafrUA/4Qwf/a1zf9SN0tVlamn+YTjiO59oCSXILf+i2CW3ZiESj4YT6BRf7QrezockDq7y8Zh5UhBDKSy1+2uHQ9V41FaSjMckdpEjCs602URECNdEuBOtFh4PLUFSO+5QgOB78fJbjxYQp5NvmZIYmhPIzZVI/YXpOYNgLTTtYGuLqD7uK9TMlQTVn1pnYFi2dDlTChTGfj0= X-MS-TrafficTypeDiagnostic: DM6PR07MB4908: X-Microsoft-Exchange-Diagnostics: 1; DM6PR07MB4908; 20:UXL6EQpJgMHhP263664aL7E5ITnhQnAvjO4SGEA7lrBttT7fP3EaD3NHgLtvEgzO36zEKh+B+9FvydydvH/7kYyQN2vS8J80oYptprT8OTsr0kvGcKOepODqRA9bZDR5A3CrNyk/2BWHiJFyLKBXuLNjtkoz4V1I7ilEFMWJdfiwIdAejnNVCIvX9N9cxy1aHRPlJgz1A6je1v/+EaE9YSpH23byX2OEzJ/k92pLZwCNVULKcTzru4YTpJ73KW/i/qpkEta58+LwSuTMaKSRFxJeg1YLB5S1CoW8whHOE8BxYEjaAVVibWEPvEHhm7BYzOZMr8dNXc2MknGYtnB5x4TFSvxeUaor4n9jlF/kOeIvjz64WQ794EsSKAEPUmn0wZEGLPEx62wM60zjkwxBPOLdS1X5C943u3g23wQguNFfmmcG8vIqXc0unGjtNKt/S3WWlNxIwCIuHn592g7hBqFL8Z7gw10tV7/sd1Sp6PT02y6yW/qSxL0pAsvTm74/it4DaBS4yY6JCYpUgzkBQ2M4opEDy1v7a+PkY1xecxpWnDUUf6+RG6bYnIt0LgHjHjdI6VQ1JkM0J8Z0VxKXeVHljS64A5xubUZl1qHKaUE=; 4:V31mMTI2tb82gUzZb0x+/aDg6h5oKGMguivqlgEmaDC1OFS193m7dK3djBrOO9aULxy0MEq7LfN1sfOTOySKX9jAdMvzsZTOYNxJGMcHYLKtRN0JFmNIH+szrAojNcwA8BVYGpLq54m2igBhT74tZY4d9wNb9MduzySoDHYzaIpAXuCAnIbwCfhuz5IAPWL+YrCByQhYnx/xmuJld3Wf8A8IN73YL0mELPurU/Ct5BcEY2elQdb89MqeuTEFBL8ncFCpWcYSnlzeE/xn9gJy+g== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(93006095)(10201501046)(3002001)(3231355)(944501410)(52105095)(149066)(150057)(6041310)(20161123560045)(20161123562045)(20161123564045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051); SRVR:DM6PR07MB4908; BCL:0; PCL:0; RULEID:; SRVR:DM6PR07MB4908; X-Forefront-PRVS: 081904387B X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(366004)(136003)(396003)(376002)(39860400002)(346002)(199004)(189003)(47776003)(316002)(6506007)(386003)(16586007)(106356001)(105586002)(72206003)(2906002)(55236004)(7736002)(6486002)(68736007)(575784001)(305945005)(66066001)(6512007)(53936002)(81156014)(48376002)(6666003)(8936002)(50226002)(3846002)(36756003)(50466002)(97736004)(25786009)(6116002)(446003)(486006)(478600001)(476003)(42882007)(11346002)(54906003)(186003)(44832011)(110136005)(5660300001)(4326008)(16526019)(81166006)(51416003)(2616005)(26005)(8676002)(52116002)(76176011)(956004); DIR:OUT; SFP:1101; SCL:1; SRVR:DM6PR07MB4908; H:ajoseph83.caveonetworks.com.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM6PR07MB4908; 23:4vQblJpZoRyNlv48x41EKywkQ+HvSbM7Gsso32gn2?= =?us-ascii?Q?GPgNFzAfTgH3bn4A0PQciQkJOFnQQKNueK+rFULz8lC0PQ1YWlDKsQDIMjXi?= =?us-ascii?Q?G4Tk073vfYNBtJ68eJaKdCD3tYDGn2oMOI2LZqQ85swcMWK2J0jLO5YgwoPK?= =?us-ascii?Q?T8AMhXlaFKEVhQKO/O23qyM4DiwNHhDKPPYCrcrmymfXbkYk9t4GCYdYbxzC?= =?us-ascii?Q?RfIfXqQqAC8Kz/rjMf/QN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IFBJjE032bFpliLnA==; 5:CuxHtuf1m4naIz8mmC88zgbl0ZE7a6fmttLByaPAMyiTHOhPYMPpMq/QmWNrJ7bg33FNFqL8omsbtaGXxsuZQlIa9NiV0rL+R4OSdsGYQxwB9NUkQaOU9GkDI1aj3vHQrdcb17xchtN59oFNRsPeM0gvKxfiThDEOUkZuDEqV/c=; 7:lTiy22nfYc6nARvJD5Uyrq5mqc0Wnn5DZtLoA35oazDt9/gboMgmOuKsV4PTEzuKv4MeJ9gY83T6G9KlCjS8NCQv6S1C638rmTry4qmMPEs3YYn/3TFCFEG+cs6wGmQOHRE2g3Xjm4CzG5xXwz7BOEU0A+n8xc5u/MV7C41YIEs4vguFjhJoT2NZBqqygJVy67lPDvqmpWrzkn3ynROMxZJJbpx+b8ipUVhfTIi7bZrZfDkKiTYhlsjU+5Fp+KBd SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Oct 2018 10:42:36.4566 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3b129a25-d924-4a64-d78d-08d62d0ac45f X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR07MB4908 Subject: [dpdk-dev] [PATCH 8/8] examples/l2fwd: remove null initialisation 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: Mon, 08 Oct 2018 10:42:40 -0000 Do not initialise statis/globals to NULL. Signed-off-by: Anoob Joseph --- examples/l2fwd/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/l2fwd/main.c b/examples/l2fwd/main.c index efb0b59..1a1960c 100644 --- a/examples/l2fwd/main.c +++ b/examples/l2fwd/main.c @@ -62,7 +62,7 @@ static uint16_t nb_txd = RTE_TEST_TX_DESC_DEFAULT; static struct ether_addr l2fwd_ports_eth_addr[RTE_MAX_ETHPORTS]; /* mask of enabled ports */ -static uint32_t l2fwd_enabled_port_mask = 0; +static uint32_t l2fwd_enabled_port_mask; /* list of enabled ports */ static uint32_t l2fwd_dst_ports[RTE_MAX_ETHPORTS]; @@ -88,7 +88,7 @@ static struct rte_eth_conf port_conf = { }, }; -struct rte_mempool * l2fwd_pktmbuf_pool = NULL; +struct rte_mempool *l2fwd_pktmbuf_pool; /* Per-port statistics struct */ struct l2fwd_port_statistics { -- 2.7.4