kni: fix build for SLES15-SP3
authorAman Singh <aman.deep.singh@intel.com>
Tue, 19 Oct 2021 10:48:41 +0000 (11:48 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 25 Oct 2021 13:30:23 +0000 (15:30 +0200)
commitc28e2165ec360c39ea0e3a0c02b4229966697384
tree637ab6b661ebbe09335a7700fa8f4c82e789ff11
parentfd9e07a1f4d858ddb74b1263884a633558517602
kni: fix build for SLES15-SP3

As suse version numbering is inconsistent to determine Linux kernel
API to be used. In this patch we check parameter of 'ndo_tx_timeout'
API directly from the kernel source. This is done only for suse build.

Bugzilla ID: 812
Cc: stable@dpdk.org
Signed-off-by: Aman Singh <aman.deep.singh@intel.com>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
Tested-by: Longfeng Liang <longfengx.liang@intel.com>
kernel/linux/kni/compat.h
kernel/linux/kni/meson.build
kernel/linux/meson.build