kni: fix build on Linux 4.19
authorFerruh Yigit <ferruh.yigit@intel.com>
Wed, 24 Oct 2018 11:10:10 +0000 (12:10 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 26 Oct 2018 13:29:41 +0000 (15:29 +0200)
commita9460a0b2efb80a913d8770dc188e816b227622f
treecea10f0e7d8aef303ee4716c3beaaa041ad0174f
parentefde55f4d13128928f2093d006fe0e906903778e
kni: fix build on Linux 4.19

The build error observed with Linux kernel 4.19 when KNI ethtool
support enabled (CONFIG_RTE_KNI_KMOD_ETHTOOL=y)

.../build/build/kernel/linux/kni/kni_ethtool.c:193:3:
   error: ‘struct ethtool_ops’ has no member named ‘get_settings’;
  .get_settings  = kni_get_settings,
   ^~~~~~~~~~~~

.../build/build/kernel/linux/kni/kni_ethtool.c:194:3:
   error: ‘struct ethtool_ops’ has no member named ‘set_settings’;
  .set_settings  = kni_set_settings,
   ^~~~~~~~~~~~

With kernel 4.19 ethtool_ops `get_settings` & `set_settings` are
replaced with `get_link_ksettings` & `set_link_ksettings`
Commit 9b3004953503 ("ethtool: drop get_settings and set_settings callbacks")

This fix practically removes `get_settings` & `set_settings` support
for the kernel versions that have the new ethtool_ops without
implementing the new ones.

Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
kernel/linux/kni/ethtool/igb/igb_ethtool.c
kernel/linux/kni/ethtool/ixgbe/ixgbe.h
kernel/linux/kni/ethtool/ixgbe/ixgbe_ethtool.c
kernel/linux/kni/kni_ethtool.c