From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v2] testpmd: fix build on FreeBSD Date: Wed, 23 Mar 2016 16:17:12 +0100 Message-ID: <2055843.IvPtHn5Ksq@xps13> References: <1458524684-13539-1-git-send-email-yong.liu@intel.com> <1458629413-24771-1-git-send-email-yong.liu@intel.com> <9BB6961774997848B5B42BEC655768F8DDB9F2@SHSMSX104.ccr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: "Wu, Jingjing" , "Liu, Yong" Return-path: Received: from mail-wm0-f46.google.com (mail-wm0-f46.google.com [74.125.82.46]) by dpdk.org (Postfix) with ESMTP id 813092B96 for ; Wed, 23 Mar 2016 16:18:55 +0100 (CET) Received: by mail-wm0-f46.google.com with SMTP id l68so238578503wml.0 for ; Wed, 23 Mar 2016 08:18:55 -0700 (PDT) In-Reply-To: <9BB6961774997848B5B42BEC655768F8DDB9F2@SHSMSX104.ccr.corp.intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2016-03-23 02:17, Wu, Jingjing: > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Marvin Liu > > Build log: > > /root/dpdk/app/test-pmd/cmdline.c:6687:45: error: no member named > > 's6_addr32' in 'struct in6_addr' > > rte_be_to_cpu_32(res->ip_value.addr.ipv6.s6_addr32[i]); > > > > This is caused by macro "s6_addr32" not defined on FreeBSD and testpmd > > swap big endian parameter to host endian. Move the swap action to i40e > > ethdev will fix this issue. > > > > Fixes: 7b1312891b69 ("ethdev: add IP in GRE tunnel") > > > > Signed-off-by: Marvin Liu > Acked-by: Jingjing Wu It looks good but something is missing to decide that it is the right fix: the API do not state wether these fields (and others) are big endian or something else. Please Jingjing, fix the ethdev comments for these fields and others rte_eth_ipv*_flow in a separate patch.