From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0102.outbound.protection.outlook.com [104.47.1.102]) by dpdk.org (Postfix) with ESMTP id 25DE22BC9 for ; Wed, 29 Jun 2016 15:26:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nokia.onmicrosoft.com; s=selector2-nokia-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=0hz8pIilceivMjnGHN9+Qoc0cP//gucV5jrfmSnoghI=; b=lTbRJpNULZNNVK0J5DIHAiRc0qw2209HpCptmAJTfgUwauAGsZMwFLJXCVheqqrWDH0PCHbUmaYsHG3wJorNdzhrOsqtpjaczG8lN7PdYJAH65H9+MGQ5baPbzHNtvzYrdtoeE+if5g6H/MJ7IuUl+WuvwHUUurelJ3WzF5xxJg= Received: from VI1PR0701MB1853.eurprd07.prod.outlook.com (10.167.197.13) by VI1PR0701MB1854.eurprd07.prod.outlook.com (10.167.197.14) with Microsoft SMTP Server (TLS) id 15.1.528.16; Wed, 29 Jun 2016 13:26:23 +0000 Received: from VI1PR0701MB1853.eurprd07.prod.outlook.com ([10.167.197.13]) by VI1PR0701MB1853.eurprd07.prod.outlook.com ([10.167.197.13]) with mapi id 15.01.0528.017; Wed, 29 Jun 2016 13:26:23 +0000 From: "Elo, Matias (Nokia - FI/Espoo)" To: "dev@dpdk.org" CC: "ferruh.yigit@intel.com" , "damarion@cisco.com" Thread-Topic: Re: [dpdk-dev] weak functions in some drivers Thread-Index: AdHSCZQoR6GYNdkSRvu3W/r/8PPBUg== Date: Wed, 29 Jun 2016 13:26:22 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=matias.elo@nokia-bell-labs.com; x-originating-ip: [131.228.2.28] x-ms-office365-filtering-correlation-id: abb03e72-1cd2-4579-41e9-08d3a020f6e4 x-microsoft-exchange-diagnostics: 1; VI1PR0701MB1854; 6:JirR0Btf2TRCl5o5TQiF2GUkEgaI7V4GUfH8X7SYsFY76HcrlRtBwRi5m9kdwIult2Q1K4IcINVKCtzMDb7v0n08rkMMW4Q1/jsaV6BBqOux4NILs0uulQjbg3UwTCAUg0Mxa3yk7g66fS8MsvAttgOFzMnI7/dNqyUfx1qE42IP/bcwZn/I/prPw9FyVIeycRuY4Ky96pr0NOpEebUdxJnGmqOHZQWdMElxGWCoXEgaausf7c3sZSB4kuhck/wSZVLVa/4BXvxcxy+QffWEODh1dYnPnTH2OsXWzCjRj/U=; 5:mMY8TQeMo13k+Kg8Tfm6qZMZuvXjr0HbQQQ++0MaT2SbA+v6SZWI276IVore4L+SkcACV29ymmHB03LB3og+ruCZHsowpA8RP0jmkk7pk/ohzwQljQ+nERW+0YgTvp8qUeQc1z/eZDV814OYwBEKNA==; 24:B/hqIV4o/nQ16GkEN5SGRZZfvzuSJW+vmRTjCZkOYWGE4A6AIsooQiV+twY5KBo8PCJnyTexIIlojRcuOtQMfqViHld4j0mkmfSxtexvzH0=; 7:df0B41P06DK5O6HfV4I1lBrVHwiE8vd35LxDulc3HLdbeExdOGrGRDWp3dAaizUFYYXwPChmR+fQmZ0Y3LqqzMnHkfpDw4ckLVUjZH0cN0kbal9xG8rbT1MiS0qIytSF2alnH49oqRgm2woMaKuZ3U+F1fe1FcJcjXvtdkOM3u3OoEhaqIz+JaCxtM88A6OR/pe5zMEdcXstyqhc3MJuojZI9L5SsL9EW/Aj2amJBEgjJIFA5o4La55tT5SykhYP x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:VI1PR0701MB1854; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001); SRVR:VI1PR0701MB1854; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0701MB1854; x-forefront-prvs: 09888BC01D x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(6009001)(7916002)(199003)(189002)(4326007)(2351001)(86362001)(54356999)(102836003)(50986999)(106356001)(10400500002)(33656002)(6116002)(122556002)(586003)(74316001)(77096005)(3846002)(87936001)(76576001)(2906002)(11100500001)(101416001)(66066001)(105586002)(2501003)(2900100001)(8936002)(7736002)(305945005)(92566002)(110136002)(3280700002)(3660700001)(5002640100001)(189998001)(7696003)(68736007)(19580395003)(81166006)(5003600100003)(81156014)(5640700001)(1730700003)(7846002)(97736004)(8676002)(9686002)(90052001); DIR:OUT; SFP:1102; SCL:1; SRVR:VI1PR0701MB1854; H:VI1PR0701MB1853.eurprd07.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; A:0; MX:1; LANG:en; received-spf: None (protection.outlook.com: nokia-bell-labs.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nokia-bell-labs.com X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Jun 2016 13:26:22.8842 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 5d471751-9675-428d-917b-70f44f9630b0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0701MB1854 Subject: Re: [dpdk-dev] weak functions in some drivers X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Jun 2016 13:26:24 -0000 >> What is not clear to me is motivation to use weak here instead of simply= using >CONFIG_RTE_I40E_INC_VECTOR >> macro to exclude stubs in i40e_rxtx.c. It will make library smaller and = avoid issues like this one >> which are quite hard to troubleshoot. > >Since this issue seen in fd.io, I didn't investigated more, but I don't >want to clock your valid question, this is an attempt to resurrect the >question ... Hi, We are having exactly the same problem. For us the aforementioned workaroun= d doesn't seem to work and vector mode is always disabled with the i40e dri= vers. If I modify i40e_rxtx.c and exclude the stub functions using CONFIG_R= TE_I40E_INC_VECTOR everything works as expected. We are building DPDK with the CONFIG_RTE_BUILD_COMBINE_LIBS option enabled = and link DPDK library to our application. Any other ideas how this could be fixed? Regards, Matias