Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
if (grep -wq "ETH_FLAG_TXVLAN" ${KLIB_BUILD}/include/linux/ethtool.h > /dev/null 2>&1 || grep -wq "ETH_FLAG_TXVLAN" /lib/modules/${KVERSION}/source/include/linux/ethtool.h > /dev/null 2>&1); then
set_config CONFIG_COMPAT_IS_ETH_FLAG_TXVLAN y
fi
+
+if (grep -wq "^struct kthread_work;" ${KLIB_BUILD}/include/linux/kthread.h > /dev/null 2>&1 || grep -wq "^struct kthread_work;" /lib/modules/${KVERSION}/source/include/linux/kthread.h > /dev/null 2>&1); then
+ set_config CONFIG_COMPAT_IS_KTHREAD y
+fi