From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-eopbgr50068.outbound.protection.outlook.com [40.107.5.68]) by dpdk.org (Postfix) with ESMTP id 3B2FE23C for ; Sun, 6 May 2018 08:06:50 +0200 (CEST) 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; bh=tsILhKo4b0xLynk5/+CrM73oGQmsCiFP4/k2bQylGkg=; b=gOGKx6pF1+Z71BeqVetGvCiDnl9z1zXxymk02y8rinXg/PEhLwOEbLDmJ8gpZy5P0PtGnWNIyUVHnZCTNUIG5Vl0+lWKAVFhjJgVMsoIywz4srZI1WJuqlMXBm6SMBWMGyvRXOy66Extk6UKSP/0jI0CV6YSNjOemRCgx3xfnzA= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=shahafs@mellanox.com; Received: from mellanox.com (141.226.120.58) by AM6PR05MB4422.eurprd05.prod.outlook.com (2603:10a6:209:43::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.735.16; Sun, 6 May 2018 06:06:48 +0000 From: Shahaf Shuler To: bluca@debian.org Cc: stable@dpdk.org, nelio.laranjeiro@6wind.com, yskoh@mellanox.com, adrien.mazarguil@6wind.com Date: Sun, 6 May 2018 09:05:46 +0300 Message-Id: <5625c7bf51b0f21dbc02f9a6e58d17c83c13f5b3.1525586526.git.shahafs@mellanox.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [141.226.120.58] X-ClientProxiedBy: LO2P265CA0008.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:62::20) To AM6PR05MB4422.eurprd05.prod.outlook.com (2603:10a6:209:43::15) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(48565401081)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:AM6PR05MB4422; X-Microsoft-Exchange-Diagnostics: 1; AM6PR05MB4422; 3:mic4ViAUhLzjlxEUb1RjNDXB3fqVhi2KFLZwUAlL0KLkvHP0OIVqmNjVaWbW5ez4HBc1QsYuHmt3BrneeMBzSL7djP1AMO7yT+J9561zGI5q/lpzpt3QeogY8LqfK/bov/VEvvQgsSlf1onysjWQSpF2qsss9w7kfbAwPc7ynbSq29FKu5zR7bfKj1t8cTFjL29q2Qf7cSBB6l98rT+Enrwo9A48SjvGza7bzvHbOkQOJVvZowqP52sTqaJuYt6b; 25:uHLsNbj/OdGtv1/KtlxHjhclQSTgqRHYcfNyGNz2PKrNb5qyh5cSoPhfv2Jm6zwH9t4FJArspYCjEO19DpvSB+ZoSgu92JmwJ+bIDVkHnCuHrsLmQqZDSmFbb804TXnaJw9TTXq4ePqXWJGhukxSOuHX8LseQr0byHYyGW2G6Z7UFDPs/kVqXuuAJxLU9OlrfzLsJZnIBJoxA0MmtgvbKpUj/eAzFL8s/gGfVwQ7rhR2+qP3TPXVd5xHGSWzTkOzI62OpTFvzWKbiw42uqNXAN5egBp5eXE0tUxF0PVAaDyjKxHy5Xjsu5XKhInS1afLnaK+TuEBpgpgZ/UO4p699g==; 31:bes3AdgO5tsTs1FnvbCY5L2WDuTZLesYz0C0om1cW3Ny35mQclAPgwOZuAFiuhQT369P8ksdd0jEX1+Von1MxTSvg/f7WuAENfo0PtKUKtUdAk10A1QBPn9tjpaMFAQBQ+XzhOAve0CJdjBsjzfZKo+Nowy3nz3KEpM6Ha01GWLHZGwkiHJHbZ0dJEA/wtC0VPt/t4Crq8ZclkILZSwDa+kCW4bzHm6R1yQrscQpi0A= X-MS-TrafficTypeDiagnostic: AM6PR05MB4422: X-LD-Processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr X-Microsoft-Exchange-Diagnostics: 1; AM6PR05MB4422; 20:r5B+wH81FSVAuezwZGUYmxlJqB/lOvt7TDq/IK6xcFeL/+sPfPCkrx8+lenO4CQWByLZoqNC1UJ6wHXGUoJKs2lo4TC9PbILYYCtlyRjMet/RrEDxnJ+JRfkn1GuboRrrwHLFg/sONi1jbgLUDZ31k7TmYv+V0RS6CAoOVKbAQj9LzVAlFk7AQtq1cHwiwlFk1WXWHVAC+eU8PYRC2CHzkRHYETDb3hRlvy3MIKEhFtFiFx3Mmicj6aNe/cJ0xeTT0pDjLCvOrGa+PFaakY62lWwycHl5CxA0K0MmiId7F/PApkAn4aObKXZZcwrDTYPMuT0XHmuCxYsnUsnki9nF66wGt/yNHQc5GMQWZMgWCMj0hEtlB/2ESgbt0611PMBmKSUdeo4rAAQN5Cn/QRCJ+HHY0lt9rti+Rg6Wg+iPG4+drq+AWng1vyLrJ5/QOKZFTBLZpYys6qfQLCHKlNTw1aj91CsCtVK7C55IKbt805M7YPrMXvXhzhmvDcft/Wx; 4:ynz/lh/6fqqkp9WlNFWnYSmJAbld9VTNEKqug5vIcQrLuJ1MDPkXd8jXF/5ylUk103zK6ozb9oCFJ74lUmtDHsH7KJEqNtv/oDrseBmynRxgLmtPa6g1tQyGR5Q3KDH4O3c2A0FOkLWSCfErajHqwp+g/I3NRLerI+5D4mvqa9i7Ai3knG4gyZNSdFGwTDKSEBXM6IpfGOWyi77MCDc4jQ6aVcspgrOmuVTKOywlmvmsII3m2C6WZJ+aoeLdhyQ3EiCwMhO6EDMqvymiWuXbJw== 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)(10201501046)(3002001)(3231254)(944501410)(52105095)(93006095)(93001095)(6055026)(6041310)(20161123564045)(20161123562045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(6072148)(201708071742011); SRVR:AM6PR05MB4422; BCL:0; PCL:0; RULEID:; SRVR:AM6PR05MB4422; X-Forefront-PRVS: 06640999CA X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(366004)(376002)(39380400002)(396003)(346002)(39860400002)(189003)(199004)(105586002)(8676002)(16586007)(8936002)(316002)(2351001)(53936002)(86362001)(575784001)(2361001)(6116002)(3846002)(106356001)(118296001)(66066001)(36756003)(47776003)(81156014)(55016002)(2906002)(50226002)(4326008)(68736007)(305945005)(7736002)(81166006)(50466002)(25786009)(486006)(5660300001)(476003)(2616005)(48376002)(69596002)(16526019)(26005)(59450400001)(386003)(97736004)(956004)(186003)(478600001)(7696005)(52116002)(6916009)(21086003)(51416003)(446003)(11346002)(76176011); DIR:OUT; SFP:1101; SCL:1; SRVR:AM6PR05MB4422; H:mellanox.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM6PR05MB4422; 23:nffyj3gIvkNXvzbFAzMet9KR/fvsBtWMSh+4tdqxi?= =?us-ascii?Q?NuOx0PDoaV8OADX7smVeAjQ782dH4WhBkR0SxBaHqD8e3xKwr2dQEX8aTBPR?= =?us-ascii?Q?4NVf2rNxxLUcyAagDFaEOnsnmfvt2DRnasw3dLMQcgr31oJHJxYdFIw7UKVP?= =?us-ascii?Q?/tuJsrPpkMAnCLR+MYSJFHT8C05jxMdiYyPqvNG5CRV6qan56A/S6kK5zrQT?= =?us-ascii?Q?9vhVZpgniSkhDtMJEc1VotFrk7KUE+Z8aiVQbNdRbq/gjMoV+sIq5dzrkghE?= =?us-ascii?Q?iy9y6LwStRRCshFAWeGdCa3HPbsrtnB7C6xJ4iwgQGwbsfyh1jGZEYQsH0NI?= =?us-ascii?Q?POZSZ/6jtRiDaAh6UaYAdBAJaPEVSQckysIpkI06gk9hqYvIot1o3EY217SU?= =?us-ascii?Q?Q+3+a+fS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jzBkPy+9fu?= =?us-ascii?B?Zz09?= X-Microsoft-Antispam-Message-Info: j4i9gWWcovjf6v4i8ZX4IdioCZMasV/RvUzX7i64Y8Ldi5uPcTAMSmJABcBDNAlhCK8RvbnuMWb8SQipvQMpIc05G8/CaDGgH5jlTqCWMvBD13H1VwseAG+ouxNLHcy5eQyxhc6kYF+G3rdMrcBueSFAw0/3Nrzzq0ovRXRWcpetBR9KCHm1/I0zcULP+XXw X-Microsoft-Exchange-Diagnostics: 1; AM6PR05MB4422; 6:v9byh6kLlyAwgFGQkojH20zyU7GM0PP/R02gYrtbSFeuhx9h5thIYDSG6pDdlnqoS0+jWh6gaWwyKLsaUY7003y/wAGdbkJNPp/db9bKAYMEB8DEojxW61reqMy1EY44KgLY1uWiCVeFiYEiEjNPCmzRdhgzlWQAmi6RwIhy42hym5V5HSNrlNRc/SigUoHY6dOMP14im6q8fFvyxwTXTJJgPagTpiCh61Lj5B2s8xWJZk1FBgIiQpo0MCdH/6WLN4IOCNW/SvJIe053XqfqZ7eHoLxEC2marbomBAjCpTmtEwmdAMm/hKB9hm29JF8VeuI4ETanfi7FhcvGJ/y/hNbS5R5/CbNDyzkcZ9Cw1zRaEzriBsE5DfUeHbEj3BoODmJtGQRt9XmW+pwbqCDVyp7Y+UOVvkI97bw1NQS8/3fCZ0r7nATWxDk0ye2Wgzl7E+SBf4C2Y79kyeVjLrS9qA==; 5:r5ZHaT2teHKmnhkwBQGA1up6vYbjIUUKxQvLFqovNtpfPa4/tjyqh2+OIVJQfIKB8EHwruGOErEL0odP8IvB/Cn5bASS/YkrjqX2bffdM7aZu6YluCVfw69AsbAH/wgEFaFsOoazUzDjCB6UTcU6wEbvlsyc1LzjhRigTaaAtck=; 24:cSXUp978Ls2S0xBAxXjB0SNOusRcDPHh75tnnC36dMuDwoABLvitsnaBvye8fgI41MUFPopH/8/CwFatftVqp5xGPwy7gj1mXtjrnf7tbDA= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM6PR05MB4422; 7:fIJWHqKiijFyu5Q10hcwtdo9U6IXlLBNOsHb5PKvZ6GczR/OqUH3wMMQ5/aZBHC4sNH6mPyCwSECI0HCWubJyb21zZr8N2lHbdQ5MAazRG5Q/HUrSKLa0LG/cIY7LY3H/5w4eotFRAZMlNOqoW6FFZJR/gKp9KPeP+ibliE/+XUSYhjyB7qzpRlJg11r7VduHhsMhlB9tjYLIguT7b46VX2A6kO3OsvUYV344dWaWp3pVfLdk9++NclTRYaa0Qvw X-MS-Office365-Filtering-Correlation-Id: cd83cecf-161f-4fb7-aafa-08d5b3178dda X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 May 2018 06:06:48.2862 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: cd83cecf-161f-4fb7-aafa-08d5b3178dda X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR05MB4422 Subject: [dpdk-stable] [PATCH 17/33] net/mlx5: fix ARM build 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: , X-List-Received-Date: Sun, 06 May 2018 06:06:50 -0000 From: Yongseok Koh [ upstream commit 264713ba1025e18436433a00fb14da8fc3f27101 ] rdma-core v16 has a bug. The following compilation error occurs on ARM hosts. In file included from drivers/net/mlx5/mlx5_glue.h:16:0, from drivers/net/mlx5/mlx5_glue.c:11: /usr/include/infiniband/mlx5dv.h:144:2: error: unknown type name 'off_t' off_t uar_mmap_offset; ^ As a temporary fix, sys/types.h is included in PMD. This has been fixed in rdma-core v17. This can be removed when all the Linux distros are shipped with rdma-core v17 or back-ported fix. As of now, RedHat 7.5 is known to have rdma-core v16. Cc: stable@dpdk.org Signed-off-by: Yongseok Koh Acked-by: Adrien Mazarguil --- drivers/net/mlx5/mlx5_glue.c | 6 ++++++ drivers/net/mlx5/mlx5_vlan.c | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/drivers/net/mlx5/mlx5_glue.c b/drivers/net/mlx5/mlx5_glue.c index 1c4396adaa..be684d3787 100644 --- a/drivers/net/mlx5/mlx5_glue.c +++ b/drivers/net/mlx5/mlx5_glue.c @@ -7,6 +7,12 @@ #include #include +/* + * Not needed by this file; included to work around the lack of off_t + * definition for mlx5dv.h with unpatched rdma-core versions. + */ +#include + /* Verbs headers do not support -pedantic. */ #ifdef PEDANTIC #pragma GCC diagnostic ignored "-Wpedantic" diff --git a/drivers/net/mlx5/mlx5_vlan.c b/drivers/net/mlx5/mlx5_vlan.c index 3246c0a387..93ccb178d2 100644 --- a/drivers/net/mlx5/mlx5_vlan.c +++ b/drivers/net/mlx5/mlx5_vlan.c @@ -8,6 +8,12 @@ #include #include +/* + * Not needed by this file; included to work around the lack of off_t + * definition for mlx5dv.h with unpatched rdma-core versions. + */ +#include + /* Verbs headers do not support -pedantic. */ #ifdef PEDANTIC #pragma GCC diagnostic ignored "-Wpedantic" -- 2.12.0