From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v2] kni: fix build on Centos 7.4 when Ethtool enabled Date: Tue, 22 May 2018 22:13:29 +0200 Message-ID: <2066106.EVIWKkP5ao@xps> References: <20180522181008.6327-1-dg@adax.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Cc: dev@dpdk.org, Ferruh Yigit To: Dan Gora Return-path: Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by dpdk.org (Postfix) with ESMTP id 295F92629 for ; Tue, 22 May 2018 22:13:31 +0200 (CEST) In-Reply-To: List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 22/05/2018 20:50, Ferruh Yigit: > On 5/22/2018 7:10 PM, Dan Gora wrote: > > Fix compilation errors on Centos 7.4 when CONFIG_RTE_KNI_KMOD_ETHTOOL > > is set to 'y'. > >=20 > > Centos 7.4 needs HAVE_NDO_BRIDGE_GETLINK_FILTER_MASK_VLAN_FILL: > >=20 > > igb_main.c: In function =E2=80=98igb_ndo_bridge_getlink=E2=80=99: > > igb_main.c:2289:2: error: too few arguments to function > > =E2=80=98ndo_dflt_bridge_getlink=E2=80=99 > > return ndo_dflt_bridge_getlink(skb, pid, seq, dev, mode, 0, 0, nlflag= s); > > ^ > >=20 > > Centos 7.4 needs HAVE_VF_VLAN_PROTO and needs to redefine > > ndo_set_vf_vlan to .extended.ndo_set_vf_vlan: > >=20 > > igb_main.c:2318:2: error: unknown field =E2=80=98ndo_set_vf_vlan=E2=80= =99 specified > > in initializer > > .ndo_set_vf_vlan =3D igb_ndo_set_vf_vlan, > > ^ > >=20 > > Signed-off-by: Dan Gora >=20 > Acked-by: Ferruh Yigit Applied, thanks