[dpdk-dev] [PATCH] kni: fix build with kernel < 3.3 with netdev_features_t backport

Thomas Monjalon thomas.monjalon at 6wind.com
Fri Jul 26 15:21:30 CEST 2013


26/07/2013 13:25, Adrien Mazarguil :
> The netdev_features_t typedef appeared in Linux 3.3, but checking the
> kernel version isn't enough with some distributions (such as Debian
> Wheezy) that backported it into 3.2, causing a compilation failure due to
> redefinition.
> 
> Since the presence of a typedef can't be tested at compile time, this
> commit adds type kni_netdev_features_t, which, depending on the kernel
> version, translates either to u32 or netdev_features_t.
> 
> Signed-off-by: Adrien Mazarguil <adrien.mazarguil at 6wind.com>

acked and applied

-- 
Thomas


More information about the dev mailing list