From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR03-AM5-obe.outbound.protection.outlook.com (mail-eopbgr30066.outbound.protection.outlook.com [40.107.3.66]) by dpdk.org (Postfix) with ESMTP id 7481E1B7B8 for ; Wed, 31 Jan 2018 14:45:00 +0100 (CET) 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=Jeu7WzXULjrVjA4NH0UTR1qRU9JbtmptQna3Yq6Fs/g=; b=HF28Qejqea9kgz6nRrSycxjZVbpbWJ5762U3enkUzWVjWHN/Szo3C458yg9RupxyhQW9Uc1SleQb7Gq0yb0fWvwPvVbDIEwslPvVCYELt4l8w5wBxzCFcR0H65PEWwe+7AXXAd39SNmGdjc3VAUQhoe8FzJeWdVqN6+aP61DmVw= Received: from mellanox.com (37.142.13.130) by VI1PR0502MB3888.eurprd05.prod.outlook.com (2603:10a6:803:c::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.444.14; Wed, 31 Jan 2018 13:44:56 +0000 From: Ophir Munk To: dev@dpdk.org, Pascal Mazon Cc: Thomas Monjalon , Olga Shern , Ophir Munk , Jerin Jacob , Viktorin , Jianbo Liu Date: Wed, 31 Jan 2018 13:44:46 +0000 Message-Id: <1517406286-4306-1-git-send-email-ophirmu@mellanox.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [37.142.13.130] X-ClientProxiedBy: AM6PR0502CA0005.eurprd05.prod.outlook.com (2603:10a6:209:1::18) To VI1PR0502MB3888.eurprd05.prod.outlook.com (2603:10a6:803:c::21) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: d8003cd7-ec8b-49dd-989c-08d568b0d110 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(48565401081)(5600026)(4604075)(2017052603307)(7153060)(7193020); SRVR:VI1PR0502MB3888; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0502MB3888; 3:8QLxq5fsy/HTUIhthhuYF+n+3mA/gNDlbpzqFt8L6y8J13xCBY7CsTBFtROAISRB2723GzNOkBofhyCg9M0nAtgx2D3+6Sei7RSYRQ8glXIpr/JiGm65dcPkzn/uxK5uSn73Y7I7XvOWpTUC6z5x1uQXsUe4BPd/3d3VwqGO88lhRuhaOJtMJqZnMAxuJlIW46trCtfKcNehkPVKcYCvz6HEhJOGCFttFD3+nqmSfiyBvbTiZiX0brh8Ys42w3aV; 25:qyFtbKnL9TucBHiBlbNc0vW6LEEaU+fC94FRFbIF/QBhmQ3jGxoTcsOE6Ju9OUncMcGpc/7mMcZOOQcgxvCPDBjY470Jm4t4LhPfbcUMDJUG/GyHcnkerHnPBoICmoMg1IQB+7KFsWurrO+S05bxUQLmWI/jMVGtCpueMsejJc5C92DpazBORBd8MzYXaGMdVYTaky+7WgnQ9NGLxdMOz5R1SN/fF8QV6MNNBFNRGHWhfk4jQW4/dbz7ODVNQJ9rK37v8EcwoZHzE1rQymH7Yq51HlFbNgIlhk3lVAV4EW2yUWVjXXeUgIXCo39EqPskTsA2bdL6ceB1xc2dHIT/yg==; 31:4uWaYrQoq+VACEf3Ky+QVhzj4gyf8E3bBE0mB2z8HwkFmnuLM89G2XIanzWOdRJ9ds+pJGHjy1hgD1xONjNj1KJVCjRzGxCyu48XcucgU/J3V+NhalsvmutgINXlx4HiFd/gV/FM1vTtAWgFYUeWbEyvefBSNMly6t8g+HQuh+mhmfPSDjlYC/o/lijkhc4A7BQaMxFSkGJcTLQJM99EkleDvDk7Rw/g7/i2zqCC3mI= X-MS-TrafficTypeDiagnostic: VI1PR0502MB3888: Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=ophirmu@mellanox.com; X-LD-Processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr X-Microsoft-Exchange-Diagnostics: 1; VI1PR0502MB3888; 20:tH+Xbwy0M86Fdnyhhf5qLuHPL+0VDjnckdoxWl39dIss+fL8XVVZUy4O0rZjQRheO99B5TDrOYh+PozdfKe9p6jc68Y0RpFZCyI1E6/HDzi7WV+NJOwtoDNB5R7gc14C21ClfmvMG0cWdjgDfQkk1glRuiE03p2xUesWqXeXMDGXTmWOfzupAlAldAdQMSH6mTwJb+IVI89aNasUfBFIL9ZxPG2cARAyG7kDSJLF1WL4haIFguIn/rsM1tsDiyv8i2LrxwT9vkRDiC+40m/G0xvJZC5b59TqoAEpITsZSPs9Rqd13uRmVBklGhO0OsU63YEiMN4URkiGo2xcyFUJhngYYeKX0G92Hm/KlXy3J/jxNkhnakpT3Y0KKGdf8qi4aewupbp9zE4hIoUWEWt0afag92k/yhQf7VCze9EKu3QNM4n/UqLLnJIP+k/Y74IjpAy20TJA3hyBkcAIjrLeszNFb5Cx6oKCYiPWpulOK3Cfi0Vh185Q3z4m4XQAS+Ti; 4:NXxFsc216j5KJizA59Z8BtHa1ISjpp6/sjPDOa7jYK7dp86fq9IflwYUO7EH5wzsill2a66ZgDWl3BDuP9gt5NK9WsfofjNEkQNKo0BsS0o4ea28bbqxE3hmkkDijqeFl7ZZzxVoGzcCGoIY7B0QCBtXm7VHuSW/d+dPVb2umkTn0IckzvpZ7Pn+im1pNkpS03/6tEDLMnpxw8E1FvGoG1dA5+Th/eZ0XG0TBrN9x3x03g6YlraKzCw6z+vFgRxab1IBsL/B1sK/a7Qp/ptfeQ== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040501)(2401047)(8121501046)(5005006)(93006095)(93001095)(3231101)(2400082)(944501161)(3002001)(10201501046)(6055026)(6041288)(20161123564045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(6072148)(201708071742011); SRVR:VI1PR0502MB3888; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0502MB3888; X-Forefront-PRVS: 056929CBB8 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(396003)(39380400002)(39860400002)(366004)(346002)(376002)(199004)(189003)(81166006)(25786009)(21086003)(55016002)(3846002)(478600001)(6116002)(4326008)(105586002)(53936002)(36756003)(33026002)(2906002)(106356001)(66066001)(305945005)(5660300001)(59450400001)(47776003)(97736004)(7736002)(86362001)(68736007)(8676002)(26005)(386003)(6666003)(51416003)(7696005)(8936002)(50226002)(4720700003)(81156014)(6916009)(69596002)(50466002)(54906003)(16586007)(16526019)(186003)(48376002)(316002)(52116002); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0502MB3888; H:mellanox.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR0502MB3888; 23:kww2n8ocQWCzAGorcxG1Wa4zzYuhAwH8u2wGgM/?= =?us-ascii?Q?ceMNBGPDXj25bHsVyYoJ8Kc3BSZgJSFT5pwrN2mc3hZ6/TgFwKj02bllQTBH?= =?us-ascii?Q?NByELUavR1W36eLVXySJ4Q4LTD9PqUIbQh1aUOkqOwnTetlrpbW+ltMwY0er?= =?us-ascii?Q?MS3nc63l8LZFARkaFiZeqRusl2g5dvsEemmRlNEe1bjU74aTcm+nnG9nHY2Q?= =?us-ascii?Q?vTHxMDNlRo33Gi3xzWUgnuqq/o1+KTwe/8KJDNVYzfAQQS1qdPbB1ubn1FDc?= =?us-ascii?Q?kgArYGFc69i6YhTwRH7CZgVi3/loBUZOGM7iUvyZwNhSG7IpvG/+Izx7jtg2?= =?us-ascii?Q?SHOEDDB3rpWqEgAyt0LaCU3RZTKOUZRg+OY3caHQQe47tTFLehLntkmUhdVM?= =?us-ascii?Q?mmvUMmkZvgPw4h00eGf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kNF2gjVGYc6O79fawMPf+NIas/3JZd1ah/qpCgojrruWzq73DFt+I/Q8nAnx62TyF2VMA4FB2Fsd1S9kCx6NqE/KH4cuPgPsK5mI+xeawaveO5qMvP3AryJnJ6MKAi94L1Oln0YvgU9IBtPZmwmfuIGhXKYM2F4j9KoafXKuuy6AcsFe3h0z1Va9ie2fq/BRWrCBLzawB6RqF9BPIqUx28Q/VD49vdxDBuVrhYyo5IX702n4UhVoR6K9M8IfL8jOjlc1f9KbRevtb0BAB+qmOTWd6mZGTI/r/6oro=; 5:qIVc8W4SFk5in9BZ7RZlBgPqIbNFzFwRNq1vk6xPAfAPIQZj8D5bngx6DZsrGYtSIBNv+50m3ZXrYpHj28lDu4nR4EqjfL1vNp8/t3ilmTLfBukyDtuTAutFiptchlO4fp+PFQruxWiY3sTDMD3B28DEM3xUXpbJ+WszQSgkJOY=; 24:X1dHSao58tMpMV8OuVbJg4Y2GgyPULXBy54NrD7fqiU38bf4teITw2BbB1bT6CzQ2ift7sK99tWw5mTmjpr+qaY6T+cHdxrEcHNoCrO13Nc=; 7:yAfsonpR29r41VFXN+P6wUKGKNvxrqCeofDJUNoDuhG0jgo10snkK8ILGGJ59kZWHHR/2fd0J6aC4uFbnsl+R0HDCMG7Blu36J0WKXun2AEyqMR4xWsvxKXP3pE+R3Y/lQkv1fWwjesrA2Nt49AFLLHdSzOPdn7agQ+KBX2fA1gxFXLhgHWUNsmCvP2hHZ2jiazRUbp7hU/h3oEqkdpsnhLO0P+Dfzk5Z+r2cGnHmaeF0+o+KAlSBYWP4k+K+MYT SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Jan 2018 13:44:56.0570 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d8003cd7-ec8b-49dd-989c-08d568b0d110 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0502MB3888 Subject: [dpdk-dev] [PATCH v1] net/tap: add eBPF ARM and POWERPC architectures support 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, 31 Jan 2018 13:45:00 -0000 This commit adds eBPF system call definitions for ARM and POWERPC architectures. Old Linux header files may not define eBPF system call numbers. In order to enable a successful eBPF compilation on all Linux platforms - the missing system call definitions are explicitly added. #elif defined(__powerpc__) # define __NR_bpf 361 #elif defined(__arm__) # define __NR_bpf 386 Signed-off-by: Ophir Munk --- drivers/net/tap/tap_bpf.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/tap/tap_bpf.h b/drivers/net/tap/tap_bpf.h index 8d6f9a2..58e6d25 100644 --- a/drivers/net/tap/tap_bpf.h +++ b/drivers/net/tap/tap_bpf.h @@ -97,6 +97,10 @@ union bpf_attr { # define __NR_bpf 349 # elif defined(__s390__) # define __NR_bpf 351 +# elif defined(__powerpc__) +# define __NR_bpf 361 +# elif defined(__arm__) +# define __NR_bpf 386 # else # error __NR_bpf not defined # endif -- 2.7.4