From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id D5E0D3977 for ; Mon, 30 May 2016 12:58:47 +0200 (CEST) Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 25BFD80F75; Mon, 30 May 2016 10:58:47 +0000 (UTC) Received: from sopuli.koti.laiskiainen.org (vpn1-6-170.ams2.redhat.com [10.36.6.170]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u4UAwjWl017427; Mon, 30 May 2016 06:58:46 -0400 To: zr@semihalf.com References: <1464601185-7330-1-git-send-email-zr@semihalf.com> Cc: dev@dpdk.org From: Panu Matilainen Message-ID: <89305686-998b-9f36-d2c2-dc6ec123c5c5@redhat.com> Date: Mon, 30 May 2016 13:58:45 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 MIME-Version: 1.0 In-Reply-To: <1464601185-7330-1-git-send-email-zr@semihalf.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.68 on 10.5.11.27 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Mon, 30 May 2016 10:58:47 +0000 (UTC) Subject: Re: [dpdk-dev] [PATCH v2 1/2] ethdev: add callback to get register size in bytes 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: Mon, 30 May 2016 10:58:48 -0000 On 05/30/2016 12:39 PM, zr@semihalf.com wrote: > From: Zyta Szpak > > Version 2 of fixing the fixed register width assumption. > rte_eth_dev_get_reg_length and rte_eth_dev_get_reg callbacks > do not provide register size to the app in any way. It is > needed to allocate proper number of bytes before retrieving > registers content with rte_eth_dev_get_reg. > > Signed-off-by: Zyta Szpak [...] > diff --git a/lib/librte_ether/rte_ether_version.map b/lib/librte_ether/rte_ether_version.map > index 214ecc7..288bc63 100644 > --- a/lib/librte_ether/rte_ether_version.map > +++ b/lib/librte_ether/rte_ether_version.map > @@ -130,5 +130,6 @@ DPDK_16.04 { > rte_eth_tx_buffer_drop_callback; > rte_eth_tx_buffer_init; > rte_eth_tx_buffer_set_err_callback; > + rte_eth_dev_get_reg_width; > > } DPDK_2.2; This symbol did not exist in DPDK 16.04 so it must not be added there. Add a new section for 16.07 which inherits from DPDK_16.04. - Panu -