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 33E30A00C4; Sun, 10 May 2020 14:24:07 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C5D521D167; Sun, 10 May 2020 14:24:06 +0200 (CEST) Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-eopbgr140057.outbound.protection.outlook.com [40.107.14.57]) by dpdk.org (Postfix) with ESMTP id D225E1D162 for ; Sun, 10 May 2020 14:24:04 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=U45klJMTltzTt7FxUMipzHZmhVV+YWvgM1nJZJ/eIFFOJGcwnSD3t9fQPf8rHTnTtzlANog8xbLeyz4SLKsi52BPRNUn2L1HHZcwAID7W9+p79pvAYVW3+pMpDaae2Sk0/8gQNZsDTefvCtyDtvVQ2n8XcHRcGHQ93uAVMGexSZwGxLeUtwvh7/LAoB2ZzJXuUQTR7OwZ4cePo/Uu81F+pGrd7+XkAc3sJjrjLD26LjCc5wjhYas3ipPV6blWVsJ6xiSw85HSnFoCNbR2XLZgOlCx1jdoOrS2/LXEi+A21vFAbdFo4FfA8YmmnvusV4XcI1eToqz88GrwCEfgd+drA== 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=ZmLfqjlJbdioky/CQQWbC6rd5WZ+Xk2cqdbBhr/mtEM=; b=Dkz931yNXRtwYSVgAWJOAenqqvKBIfJmrN8+VTzIPUxhGDM7xE3mtUCI6kBCwNbDgzMobQPUbXePFtnQEOH0+xo+O7jnWpDWpq8/L6KhrDPmsMDrsX2RySkoyCIc5V5Si0ihrrdALoNsb09mLYdfr9zwhNlWMhv3AcxRPbge0RIledI65PnyB/m2MIOUq+sl/rB6z28YUQIlJZoBzJrRBkKYEtjeNCyQz2bP+85VeNSwu1t9siAnAY91Pn0x1odVqzLcygdPWDVZibDjugVThsThgfRMET/sYoxUVy8axUgGATBPRVM3tlcbRlxXzrzHF+r7cEh66yRVuQKpQze5Jw== 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=ZmLfqjlJbdioky/CQQWbC6rd5WZ+Xk2cqdbBhr/mtEM=; b=rbdB8g1yYxcHuT19vTqUZReoIxuhY0MiJ28rpg7zw9dwuYDOqQeOmht9kTMN6MI5QCLUWHZEEHcGnH7arQX8/9xdqL4ZwjMVEpsy8vzTXheb8rm7LGgyGIXPUlZXgcmeTjJt3k2l81YyvzTVRQ/U+QU/XGbstUlDcLLWEBVtLxA= Authentication-Results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=mellanox.com; Received: from AM0PR05MB6707.eurprd05.prod.outlook.com (2603:10a6:20b:15b::17) by AM0PR05MB5202.eurprd05.prod.outlook.com (2603:10a6:208:f3::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2979.34; Sun, 10 May 2020 12:24:02 +0000 Received: from AM0PR05MB6707.eurprd05.prod.outlook.com ([fe80::508:747b:cc12:5f6e]) by AM0PR05MB6707.eurprd05.prod.outlook.com ([fe80::508:747b:cc12:5f6e%5]) with mapi id 15.20.2979.033; Sun, 10 May 2020 12:24:02 +0000 From: Raslan Darawsheh To: ferruh.yigit@intel.com Cc: dev@dpdk.org, stephen@networkplumber.org Date: Sun, 10 May 2020 15:23:47 +0300 Message-Id: <20200510122347.2742-1-rasland@mellanox.com> X-Mailer: git-send-email 2.26.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: AM3PR05CA0104.eurprd05.prod.outlook.com (2603:10a6:207:1::30) To AM0PR05MB6707.eurprd05.prod.outlook.com (2603:10a6:20b:15b::17) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from mellanox.com (188.161.229.217) by AM3PR05CA0104.eurprd05.prod.outlook.com (2603:10a6:207:1::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.2979.27 via Frontend Transport; Sun, 10 May 2020 12:24:02 +0000 X-Mailer: git-send-email 2.26.0 X-Originating-IP: [188.161.229.217] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: dfac48d8-a4b8-417a-50ab-08d7f4dd0638 X-MS-TrafficTypeDiagnostic: AM0PR05MB5202: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6108; X-Forefront-PRVS: 039975700A X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: nZcTbCo9E9fcztZRGQLosDqwa6qD3BSZ9nZTFnxdW43Ni3A4z7T+/b55GdSk0zcP1wbkxBNSjsArvmMys0yH/ttyaPWCFzdJb/QGdqldL2Q7il379aq5WIMEDV4rOEJPpBKltXwOZ2TwRsBv07Yiax/k+LuGfO0S2RCjPBvAUh+yUXbL+FdH9YiX76gvsgW+5VXmvQYWzguyCte80nRMva1QF4D5ETLa3d0+wjMBPlINGefYgQljWfYNsZgfl4LRD/fwAAyRcvf1jUl0dp1ZqKqDgcJI8IX59EIWuz25EIrUvObBQd2A1AUFdlh89/Jzi3CWOgOTIWhNVyJRcIg/7rMgElNHFgqlXIi//32fFsHPa2kE08VfVkqG0OS1Mw+3QlLO+PlNvTTIJ+qCf5/6m+G7UKHDlWK2ExbUvLKBDQShiBWopcxsz7MH+gvIJqfRnBCCt5JrqEJxPh+W/D4650fb+sYTVvMmMPE2Oe/QXIZXaNMBhZjRG/YBl/X56v8BH6djZn1L3cXBLU0hbj3lEQ== 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)(136003)(376002)(366004)(39860400002)(396003)(346002)(33430700001)(478600001)(66556008)(186003)(86362001)(52116002)(7696005)(2906002)(36756003)(66946007)(66476007)(33440700001)(4326008)(316002)(1076003)(8676002)(6916009)(16526019)(26005)(2616005)(55016002)(8886007)(956004)(5660300002)(6666004)(8936002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: Hqvgnk75xIQ0FO3aybhd+CYuFnj+JcriacafkMvP9NOBLU4Kqe+hhvbmo/LFRz4zJ+Sz3NrSyjpy220PTgBpIdEi7AjK6oHUBJvzeQ+zYcylsq1vgEOfhRL2Uhrh5ohFsXRqgqljJh8nmTbCdh5e/QB1e8u/g/6tOkggMlc5LZ95/XP1oXtaR8pDSPeKMV8/GTb4yUsaO0CLgbva9aOHRUdl5BUm9MZeCn4WTg9NwJlwl9hjK+Q6X8568MhxpzoVdb2IzhdeY/GEnzrk4R99MGatCzNG0D1L+XB3mtC/RzOP6c0BI1qAjFWUvgZlEtKeBCUGG4oEhOfTrcZuR6DGAVdrb/PClNzm3C+P8h/yMPREEqaR09AOKQKmrI975eurNJCi4HSILvvbYy4A5/p/sRTY09rOF67ZArFwRZJ8NQSrrfN4ac+D0Bz51sPJbRK6BDCSbjx9IxTvb6y0QYoYwmm9PFECRFputtcGVCmqx3HzNSz1xkaEpKzFp4YkafFv X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: dfac48d8-a4b8-417a-50ab-08d7f4dd0638 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 May 2020 12:24:02.8415 (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: Sr5xolPVYXlE1fqtIUHCu+Ep6v8uaUKu4AMrcVwmxAcV14zaAUqhRvAPik1r97oWZzV3EF/BAjum0LIqFw8K/w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR05MB5202 Subject: [dpdk-dev] [PATCH] net/tap: fix compilation issue glibc < 2.24 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" When trying to compile with glibc < 2.24 that doesn't support SOL_NETLINK it will cause compilation failure: drivers/net/tap/tap_netlink.c:70:17: error: 'SOL_NETLINK' undeclared (first use in this function) setsockopt(fd, SOL_NETLINK, NETLINK_EXT_ACK, &one, sizeof(one)); Fixes: b9cf1a882820 ("net/tap: use netlink extended ack support") Cc: stephen@networkplumber.org Signed-off-by: Raslan Darawsheh --- drivers/net/tap/tap_netlink.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/net/tap/tap_netlink.c b/drivers/net/tap/tap_netlink.c index b73802b51..dcd7ab99b 100644 --- a/drivers/net/tap/tap_netlink.c +++ b/drivers/net/tap/tap_netlink.c @@ -17,6 +17,11 @@ #include "tap_log.h" +/*define SOL_NETLINK for old kernels usage. */ +#ifndef SOL_NETLINK +#define SOL_NETLINK 270 +#endif + /* Must be quite large to support dumping a huge list of QDISC or filters. */ #define BUF_SIZE (32 * 1024) /* Size of the buffer to receive kernel messages */ #define SNDBUF_SIZE 32768 /* Send buffer size for the netlink socket */ -- 2.26.0