From patchwork Mon Mar 13 15:14:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petri Savolainen X-Patchwork-Id: 95263 Delivered-To: patch@linaro.org Received: by 10.140.82.71 with SMTP id g65csp1214835qgd; Mon, 13 Mar 2017 08:15:28 -0700 (PDT) X-Received: by 10.99.39.71 with SMTP id n68mr36363023pgn.85.1489418128665; Mon, 13 Mar 2017 08:15:28 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id s65si11707121pfa.163.2017.03.13.08.15.28; Mon, 13 Mar 2017 08:15:28 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id DB007634E0; Mon, 13 Mar 2017 15:15:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 9050D60CB2; Mon, 13 Mar 2017 15:15:22 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 2FE7460AE3; Mon, 13 Mar 2017 15:15:21 +0000 (UTC) Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20118.outbound.protection.outlook.com [40.107.2.118]) by lists.linaro.org (Postfix) with ESMTPS id 6CCDF60AE3 for ; Mon, 13 Mar 2017 15:15:19 +0000 (UTC) Received: from AM4PR0701CA0030.eurprd07.prod.outlook.com (10.165.102.40) by HE1PR0701MB2075.eurprd07.prod.outlook.com (10.167.190.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.977.5; Mon, 13 Mar 2017 15:15:17 +0000 Received: from VE1EUR03FT038.eop-EUR03.prod.protection.outlook.com (2a01:111:f400:7e09::209) by AM4PR0701CA0030.outlook.office365.com (2603:10a6:200:42::40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.977.5 via Frontend Transport; Mon, 13 Mar 2017 15:15:17 +0000 Received-SPF: SoftFail (protection.outlook.com: domain of transitioning linaro.org discourages use of 131.228.2.38 as permitted sender) Received: from hybrid2.ext.net.nokia.com (131.228.2.38) by VE1EUR03FT038.mail.protection.outlook.com (10.152.19.112) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.961.10 via Frontend Transport; Mon, 13 Mar 2017 15:15:16 +0000 Received: from fihe3nok1346.nsn-intra.net (10.158.36.134) by fihe3nok1349.nsn-intra.net (10.158.36.137) with Microsoft SMTP Server (TLS) id 15.1.466.34; Mon, 13 Mar 2017 17:15:15 +0200 Received: from mailrelay.int.nokia.com (10.130.128.30) by fihe3nok1346.nsn-intra.net (10.158.36.134) with Microsoft SMTP Server (TLS) id 15.1.466.34 via Frontend Transport; Mon, 13 Mar 2017 17:15:15 +0200 Received: from fihe3nok0735.emea.nsn-net.net (localhost [127.0.0.1]) by fihe3nok0735.emea.nsn-net.net (8.14.9/8.14.5) with ESMTP id v2DFEvRL000429 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 13 Mar 2017 17:14:57 +0200 Received: from 10.144.19.15 ([10.144.104.219]) by fihe3nok0735.emea.nsn-net.net (8.14.9/8.14.5) with ESMTP id v2DFEv5c000425 (version=TLSv1/SSLv3 cipher=AES128-SHA256 bits=128 verify=NOT) for ; Mon, 13 Mar 2017 17:14:57 +0200 X-HPESVCS-Source-Ip: 10.144.104.219 From: Petri Savolainen To: Date: Mon, 13 Mar 2017 17:14:57 +0200 Message-ID: <1489418097-21704-1-git-send-email-petri.savolainen@linaro.org> X-Mailer: git-send-email 2.8.1 MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:131.228.2.38; IPV:NLI; CTRY:FI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(39410400002)(39860400002)(39450400003)(39840400002)(39850400002)(2980300002)(189002)(199003)(9170700003)(86362001)(50986999)(305945005)(50466002)(48376002)(53936002)(47776003)(6916009)(77096006)(36756003)(50226002)(8936002)(81166006)(8676002)(2906002)(22756006)(33646002)(2351001)(189998001)(356003)(5003940100001)(106466001)(110136004)(38730400002)(5660300001)(105596002); DIR:OUT; SFP:1102; SCL:1; SRVR:HE1PR0701MB2075; H:hybrid2.ext.net.nokia.com; FPR:; SPF:SoftFail; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; VE1EUR03FT038; 1:6kId++E+57mAlu8XpEGMA32nwr3ngBSwpoCkXfdc4rCi2PWYy4SArjnaKEwX4NXtGDXa15Iigm/3AlaDBuw321/fI1VXiiYtTKgIx20n/F5DkF18APJWU4Ed8ZAcjBU0bKH/4FwrgSaFXw08x7tLrwflbykSyMUTODBhAapCgTYr0W/xw3O/uAtSzB6/fKbQ5kt65vhqckv3zDLfrUfHmLFWb7l3nNgQfhmRouvJ/mr/sfqqQAeYqHpZPqzLKSxF5DOTt6DjIXm+B6i2RBPNU0bKjFB5TX8HvgS+X1YJgi5VtiCd1Fl3fCZ5GFE2AF7a1oBSmbTBN6GWF9vfZdNCJ0UNYwRO3h3Heqjoqk+v/s6UFO5JphUglLJqGXFssnrneK1FfCI8ZlbHARGII83HIWmphAFQArgpoT9hrZQJMejClVLXkfdXINnl22j0OXGMmqDZEQ2dNN8jtFVAv0Mkwk+O9FYflXr8tMiqm4+nx8Q= X-MS-Office365-Filtering-Correlation-Id: a03f97d9-4d3a-4cb6-a04f-08d46a23c167 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:HE1PR0701MB2075; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0701MB2075; 3:HrvXHh/AK1nvtoxgRTXVFAFnYzmWMpWiEn9l56yFGuQumH2mL2uMT/CWbOuhLeno5fTghyfkcRKIndvvgWyzwQj8UkxFcB5HOAAMcDlVxe1dAZXb1vMzx1qTGurPwVjZLUNvJ6L90rj3LFSe3hdgzY0NZila8w2xQ61AFSuqvaDTRIAhETe8yP/AG92tCC11uv/CWX5+MXM1qdMJLQcAikflY0/vnVGaxwBBFaLW6KZtuBrfl0BJbbjQd2kCR+bdk/1ybPziMJZyzEuODG8G9Sg5exMRak5V/7b8fueam54edX6DJEGbxrywGFmVsUNG4O3BNUuWS7IaKKWgrAi18Smqv1jg6Fa605OHXRaIZN947fZb/rC6pfUatrksYG/e; 25:TjZoapVvTCxvXLU5XkJd3jXc7UxvqwlUVHLUkmL21MPshIgcdFzt0fN8gOAGksJtjOrpSu8V6eFJ/qpe4lq81Q8Uultj8QA57WRcmfov/4j4aXhBMb5nEqSunuV/D2d2lhmurXFoi6hFl3GCI4pUr3RM2FC1dpOgTRzqbp285twDyrWNFGqX/t7DxjwqbbG9+hxl4RjA3hHeF3jdHMw53CZFeejx+zG6iMrRHu6UOba0QSt9qP7agt/FyJrgY5/zrGnA+NgmI4PFLWy6SziiJ03D4RDXexGmcMaIZA8TjfQffr+z5M/pqY2vAJOa2EwAhTvAik+lrpCtiPWSeHRqyFxNFSzry+CbjB/aO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ispam-Report-Test: UriScan:(278428928389397); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(13018025)(5005006)(8121501046)(13016025)(3002001)(10201501046)(6055026)(6041248)(20161123558025)(20161123562025)(20161123560025)(20161123564025)(20161123555025)(6072148); SRVR:HE1PR0701MB2075; BCL:0; PCL:0; RULEID:; SRVR:HE1PR0701MB2075; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0701MB2075; 4:V7zInORZPvU6b4AmirGmxwsegMFhdeUiR4H7qOxhrTqgahClElNvRPPaOcIA/WuWrqPTY5lMm7ovvj8cizvsumQavNaMCiq2ai9EM6o1YOb3makRm5f5VrU2oaqH/xp77OqtS+t0G2802leZBfhOKKwUPkFDwwCdv7fg/Z4U8NY9Uz5lmTWzrClKahO2xqNsuv48MWPd8WNdahmL+tjOLY9a1LAp/XpEcK9GEo+ROWrmQKeUQILbmJU9CCtoBFtVvK3lkVX75AmlH+Sg50GLU0nL/pLFQIJ6h+Q9bMq/Xbo6s1AxI/wz5ZRsp32zxEhAY7aaOkQcQjhL2TGcACGP5q/xjrlcS8qCJ7hr5kohVtCJeIbMzTlvrMZUcPG12x81hnmfjDv9hpmTRPL0kZhmFCPYuqQXLdYdgAhQHV4hYX02CrVzLVI/GSISzrwAcpiH/IwpalIO6HroxXVXuZvwxmw/pUSjcPaa729TPGw2tCrV0ei/fTza3x4a8PZWT43hci4EJlGAMwjtq4FeG7yopxlQcR0i0Pkwjof+MbINcs2cNeBuNyEmxYLP4XiCif8qwlcB3DgbQVLXWYqUMN02/vD3hhyESnfoP6pyhHqLe7GXk08NF7G5tsjDhv+3xp5Q0+D2JNgHNXd7945W6UfthH1K5itpCM0wMvQll0Uj86EMy+0cH1Fp+eOPEuDdT5HGB3OOWEJp2KT+xMOlpMyXTQ== X-Forefront-PRVS: 0245702D7B X-Microsoft-Exchange-Diagnostics: 1; HE1PR0701MB2075; 23:UKTPcVRIOYjL6FaRPEqMcAvq7hZosGzu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oORo4arMLVSrlGCd3HSy0oKNTQLbtN8i/vfTe5IZa476Lor6RHp0t3Hho981Ctc3+Uy5jehZBkdfVXW9PSSPXSLML2+6Fcgc1IRJdT/hJvcXSgWHYfrg4I//Q/2yCSP/WjahTdBQwbNCihvQunM7Ev1hEblKYpzJSX3If52vA9jS/++FMM5QlKNALKP5BkKPMbSvapm8IUDmc7ZcusTsDijGq9ASURw2MhZty4U6OcGvyQWcUBaBopRcVrBm57mEgqn7PLcgXWjNMJfg960wBf9oC/d4s6OzahJ7AiMJkd+D9kF8Ezd4xtoFx2ekpzYFyNjTAN0o=; 5:opBDpmNTYBfqpcDYg0cHzedITYmHWF0wz+Ybvj2GfOwkDSi72EW3gCpW8rYRYmPbL+jYuIRRuPzivjPnk0x/pdLFPYZmrfzzXumTzehPEWKA/1bgkdEW+RugZM58+boPCbeQ8lzrs67sMshgbYSqaw==; 24:EPp41vbtpetxTj23+FUE+LWO2jqqRcIBuXEUcAICcxl8UEI6cui7Y9y+U4InIMzqCkmbcdouOBgxU/ZMgo+Z4zFqJdhFXGE2vQZnHFeMwWQ= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; HE1PR0701MB2075; 7:9RcTfEcFLiQJIRc2aBTb86qNtH4jmqvV90h4ncwC5vWTT86kbgr6UXNoT/McxznXbTZ+0xsTbmBTXiTB/iymeZRDbO7xizj1RXlFnROceP0B1RlHalbodbwtEZWrJoAPHAklZTsEkRSKKevVqgSJu1D2b26G6GsmC/6PEe2HH364hHupaKPWFYd+IrRAAugR/7Nqm2H0XHWasmlbBvB2qLP2f23KezW4YELIHTqAOi163rnxeY+KKl4wZVOEpvtiG/7UAyoe2K7ZaxwMBYys1K3UtzdrncKdtc34baS7RGnFSjo8t5wEep7G0NkMo/hHbXTDf5u9fk7YcYo1AJ3KVg== X-OriginatorOrg: nokia.onmicrosoft.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Mar 2017 15:15:16.6338 (UTC) X-MS-Exchange-CrossTenant-Id: 5d471751-9675-428d-917b-70f44f9630b0 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5d471751-9675-428d-917b-70f44f9630b0; Ip=[131.228.2.38]; Helo=[hybrid2.ext.net.nokia.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0701MB2075 Subject: [lng-odp] [PATCH] linux-gen: packet: make inline table visible X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" Add visibility markers to make inline offset table visible applications linking against an installed copy of the library. Signed-off-by: Petri Savolainen --- platform/linux-generic/odp_packet.c | 4 ++++ 1 file changed, 4 insertions(+) -- 2.8.1 Reviewed-by: Bill Fischofer diff --git a/platform/linux-generic/odp_packet.c b/platform/linux-generic/odp_packet.c index 60eef3a..b8aac6b 100644 --- a/platform/linux-generic/odp_packet.c +++ b/platform/linux-generic/odp_packet.c @@ -24,6 +24,8 @@ /* Initial packet segment data length */ #define BASE_LEN CONFIG_PACKET_MAX_SEG_LEN +#include + /* Fill in packet header field offsets for inline functions */ const _odp_packet_inline_offset_t _odp_packet_inline ODP_ALIGNED_CACHE = { .data = offsetof(odp_packet_hdr_t, buf_hdr.seg[0].data), @@ -43,6 +45,8 @@ const _odp_packet_inline_offset_t _odp_packet_inline ODP_ALIGNED_CACHE = { }; +#include + static inline odp_packet_hdr_t *packet_hdr(odp_packet_t pkt) { return (odp_packet_hdr_t *)(uintptr_t)pkt;