From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.tuxdriver.com (charlotte.tuxdriver.com [70.61.120.58]) by dpdk.org (Postfix) with ESMTP id 5C5365683 for ; Mon, 13 Jul 2015 12:42:22 +0200 (CEST) Received: from voip-107-15-76-160.kyn.rr.com ([107.15.76.160] helo=localhost) by smtp.tuxdriver.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.63) (envelope-from ) id 1ZEbBi-0003HC-Nu; Mon, 13 Jul 2015 06:42:20 -0400 Date: Mon, 13 Jul 2015 06:42:18 -0400 From: Neil Horman To: John McNamara Message-ID: <20150713104218.GB9631@hmsreliant.think-freely.org> References: <1436783185-8279-1-git-send-email-john.mcnamara@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1436783185-8279-1-git-send-email-john.mcnamara@intel.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-Spam-Score: -2.9 (--) X-Spam-Status: No Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH] ethdev: fix ABI breakage in lro code 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, 13 Jul 2015 10:42:22 -0000 On Mon, Jul 13, 2015 at 11:26:25AM +0100, John McNamara wrote: > Fix for ABI breakage introduced in LRO addition. Moves > lro bitfield to the end of the struct/member. > > Fixes: 8eecb3295aed (ixgbe: add LRO support) > > Signed-off-by: John McNamara > --- > lib/librte_ether/rte_ethdev.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/lib/librte_ether/rte_ethdev.h b/lib/librte_ether/rte_ethdev.h > index 79bde89..1c3ace1 100644 > --- a/lib/librte_ether/rte_ethdev.h > +++ b/lib/librte_ether/rte_ethdev.h > @@ -1578,9 +1578,9 @@ struct rte_eth_dev_data { > uint8_t port_id; /**< Device [external] port identifier. */ > uint8_t promiscuous : 1, /**< RX promiscuous mode ON(1) / OFF(0). */ > scattered_rx : 1, /**< RX of scattered packets is ON(1) / OFF(0) */ > - lro : 1, /**< RX LRO is ON(1) / OFF(0) */ > all_multicast : 1, /**< RX all multicast mode ON(1) / OFF(0). */ > - dev_started : 1; /**< Device state: STARTED(1) / STOPPED(0). */ > + dev_started : 1, /**< Device state: STARTED(1) / STOPPED(0). */ > + lro : 1; /**< RX LRO is ON(1) / OFF(0) */ > }; > > /** > -- > 1.8.1.4 > > I presume the ABI checker stopped complaining about this with the patch, yes? Also, it would be great if someone could check this on ppc or a ppc cross compile, as I recall bitfields follow endianess order. Neil