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 68902A0549 for ; Thu, 16 Jul 2020 14:13:09 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 552681C196; Thu, 16 Jul 2020 14:13:09 +0200 (CEST) Received: from EUR05-VI1-obe.outbound.protection.outlook.com (unknown [40.107.21.74]) by dpdk.org (Postfix) with ESMTP id 842381C138; Thu, 16 Jul 2020 14:13:06 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=j8V6LHLS/GGhB3+xzs/EU0XF+axD6Foey3YA3/1YSB47+tM3HKkfcJrxTHHEK13530892md5jh8+R/cxOxDaP5ZNg1p67JkhCjdS++BpY/86xfcFL6BlHxF1o44qsXQFfgxz8eaUc7fzkHeCsOObmqCe088HEZtUgvNFWfKx6Dy4/D7ZpTX/SBYg0qDajaycBZ4vJr5plEWdVf6lE5IkwzNZL9Zav1ZzLlxRExNlKNEyjzSmY/7AaJK6sX+H9UFz2E/UHATEj08OK2pJrlYO7L5FZjVRON1TFYfD0cRnbqQok3mbNEzoYCtg8tTdM3QTv9AB/VRPaalq95dzj0p1QA== 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=VXmJ2LjtIk8NVtUvITyQZ295KYRn2bW1qhgDb61YX3w=; b=TmuMUoSHFkPkXOsXEcbXiH/JkwEyactoJ/i8ibINhcltEqoWTVqJaYcsVVoPvERfOcF/ko1Zwlsn8u/eSSWBMREfbNEcOCnYBsrEu5ISZWLXVpTDGDczpxg6tsLSZwJ38rBcTrFQwHkc6N0FJdPlGpeshp1OTZ/GAHM1FCVxI7q/0/seE95ZP69kDCVlEROGONnyQJeW6grJTwaVGxVDzLM6VJTBRQpMEP3vglhN+CZQSoOhJ1Vx9sicbT20eLkzzYobMna4UNh6vI/UW/rGEBlelv/dVd5J+24bVCXnsPxLFkrzukBo2fdD2Y0eRVupOEppiqyyvoGrXdwqoNBioQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mellanox.com; dmarc=pass action=none header.from=mellanox.com; dkim=pass header.d=mellanox.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=VXmJ2LjtIk8NVtUvITyQZ295KYRn2bW1qhgDb61YX3w=; b=dUhx0BOy8hxML44lP3omjYMnEG2xps636y/ogo2wPEXhaiu2fkWfjNX8hwITLTuJ0PERc3rGaEjmUy7rm7e1AUtPLH3Xy75VoSjMhnBW4tJXXgueIEDImnFu1dawGxVu2ux/rTzPksa9A7TJnrg1r8TtwhPPTrM2cEAWFJWTTNg= Authentication-Results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=mellanox.com; Received: from AM0PR05MB6707.eurprd05.prod.outlook.com (2603:10a6:20b:15b::17) by AM0PR05MB4403.eurprd05.prod.outlook.com (2603:10a6:208:65::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3174.21; Thu, 16 Jul 2020 12:12:47 +0000 Received: from AM0PR05MB6707.eurprd05.prod.outlook.com ([fe80::ecd3:6008:3784:4012]) by AM0PR05MB6707.eurprd05.prod.outlook.com ([fe80::ecd3:6008:3784:4012%5]) with mapi id 15.20.3174.026; Thu, 16 Jul 2020 12:12:47 +0000 From: Raslan Darawsheh To: dev@dpdk.org Cc: olivier.matz@6wind.com, stable@dpdk.org Date: Thu, 16 Jul 2020 15:12:36 +0300 Message-Id: <1594901556-11826-1-git-send-email-rasland@mellanox.com> X-Mailer: git-send-email 2.7.4 Content-Type: text/plain X-ClientProxiedBy: AM0PR10CA0132.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:208:e6::49) To AM0PR05MB6707.eurprd05.prod.outlook.com (2603:10a6:20b:15b::17) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from mellanox.com (37.142.13.130) by AM0PR10CA0132.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:208:e6::49) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3195.17 via Frontend Transport; Thu, 16 Jul 2020 12:12:46 +0000 X-Mailer: git-send-email 2.7.4 X-Originating-IP: [37.142.13.130] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 5bd244a3-4460-420b-081e-08d829818d78 X-MS-TrafficTypeDiagnostic: AM0PR05MB4403: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:475; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: CE3ivYPUakMghVIzNK1+bR952MfE2/TJ7hanPt2bPpaSRltLyffZ01zpSh0Nkv6xBm7IQ2wmRKKcF5AJiyBSOVrs1T27o+9cJ1/OteuKZXEhAAlmepDjdwq7OxA6diTSc9lEdTQKKh+uSP8dzpQw3Y+Z0HclrOUXM6J7ebFmMxX5OSOJLOVIzRUgtMJW9LJbyCgozNhsoMAv5g6EADjViQr63IrDhTrh68WsaW3Ol07bKirJQwPfYAEU6omOF870AacqPmvpGQA8LAS1WvJ2dD5m4zWMp0akj6LzkJqCEANEDbeEsGpDe2cuwkNr2OqS35+m6ue4ndPl/eg3kubRRQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM0PR05MB6707.eurprd05.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(39860400002)(346002)(136003)(396003)(366004)(376002)(2616005)(2906002)(86362001)(55016002)(6916009)(7696005)(52116002)(16526019)(186003)(478600001)(6666004)(26005)(36756003)(8676002)(956004)(8886007)(5660300002)(8936002)(316002)(4326008)(83380400001)(66476007)(66556008)(66946007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: fdklf8MBQKdAhlQpeXwV1zhBLVhCEFLTFaodLNNY3nK4UU9x9tF6jL+HBzj29pPO0yPLVE+Bt4oPcUpR2sW/RN/cvLexku8g6FYo8kpzpCozb+E5ihOT9yZAuAG0wQyPhC/PgGxThWAKDFNx3h9eHLypWxbLGRITzpP958FWmAxDv3oZ74zmLSHuF141+42v5G+6A87nuNHD0BsZrY0fCKXP44cmN23GO4aZOrmsCzSSrgCdUJpsDduQ+VgVEMHZetgtlo/qKLn3KKIN/w+eHr23ObfJh2taICTgD322XWltF4oyvv0qoMIQxc0SvE9AQs3aQ4rqJvJ0hH15o/Z/pW2PHgK57vnbhi18HhXu8KEXngCW0Wrib7tB0JkuqkOlUaua0CTS9M6Uj0qUeIyVdZDhf5DLi9J8VMRSSfzK2kppqeB4VaRf3FrwV8gczVCgpl5Db6EZ+ne6v1Ed/BsVoqTtuxVxdUu+UQie8d7Pn4U= X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5bd244a3-4460-420b-081e-08d829818d78 X-MS-Exchange-CrossTenant-AuthSource: AM0PR05MB6707.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jul 2020 12:12:47.6159 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: QnPWZ5RDkqmofz+wlgrVeaKM13cltCG4Xs9VXW8lcXQaywposPRDha2y6Nn47PZ4IUCmLbsPiots5vUtf4FntQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR05MB4403 Subject: [dpdk-stable] [PATCH] net: fix compilation with pedantic enabled X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" when trying to compile rte_mpls with pedantic enabled, it will complain about bit field defintion. error: type of bit-field 'bs' is a GCC extension [-Werror=pedantic] error: type of bit-field 'tc' is a GCC extension [-Werror=pedantic] error: type of bit-field 'tag_lsb' is a GCC extension [-Werror=pedantic] This fixes the compilation error. Fixes: e480cf487a0d ("net: add MPLS header structure") Cc: olivier.matz@6wind.com Cc: stable@dpdk.org Signed-off-by: Raslan Darawsheh --- lib/librte_net/rte_mpls.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/librte_net/rte_mpls.h b/lib/librte_net/rte_mpls.h index db91707..ecd1f64 100644 --- a/lib/librte_net/rte_mpls.h +++ b/lib/librte_net/rte_mpls.h @@ -24,13 +24,13 @@ extern "C" { struct rte_mpls_hdr { uint16_t tag_msb; /**< Label(msb). */ #if RTE_BYTE_ORDER == RTE_BIG_ENDIAN - uint8_t tag_lsb:4; /**< Label(lsb). */ - uint8_t tc:3; /**< Traffic class. */ - uint8_t bs:1; /**< Bottom of stack. */ + uint32_t tag_lsb:4; /**< Label(lsb). */ + uint32_t tc:3; /**< Traffic class. */ + uint32_t bs:1; /**< Bottom of stack. */ #else - uint8_t bs:1; /**< Bottom of stack. */ - uint8_t tc:3; /**< Traffic class. */ - uint8_t tag_lsb:4; /**< label(lsb) */ + uint32_t bs:1; /**< Bottom of stack. */ + uint32_t tc:3; /**< Traffic class. */ + uint32_t tag_lsb:4; /**< label(lsb) */ #endif uint8_t ttl; /**< Time to live. */ } __rte_packed; -- 2.7.4