[dpdk-dev] [PATCH] kni: fix build on Linux < 3.14

Thomas Monjalon thomas at monjalon.net
Sat Oct 27 01:25:16 CEST 2018


27/10/2018 00:42, Ferruh Yigit:
> On 10/26/2018 10:56 PM, Thomas Monjalon wrote:
> > 26/10/2018 23:40, Thomas Monjalon:
> >> The atomic functions smp_load_acquire() and smp_store_release()
> >> were introduced in Linux 3.14. Older kernels miss the functions:
> >>
> >> kni_fifo.h:19:2: error:
> >> 	implicit declaration of function ‘smp_load_acquire’
> >> kni_fifo.h:30:2: error:
> >> 	implicit declaration of function ‘smp_store_release’
> >>
> >> The fallback is to drop the atomic barrier, as it was before
> >> the commit below.
> >>
> >> Fixes: 711859cd0d07 ("kni: fix kernel FIFO synchronization")
> >>
> >> Signed-off-by: Thomas Monjalon <thomas at monjalon.net>
> 
> Tested-by: Ferruh Yigit <ferruh.yigit at intel.com>

Applied




More information about the dev mailing list