kni: fix build on RHEL 8
authorXiao Liang <xiliang@redhat.com>
Wed, 19 Dec 2018 07:07:58 +0000 (15:07 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 14 Jan 2019 13:02:16 +0000 (14:02 +0100)
commit4c820b22c08dea1ff6cd5db8b5a17b6568fcc4a5
tree730a3cb48eff1e1b2421f99754260293695e06cd
parentbca59f1a08aca1ca9d64925599adbbda4cdb93fc
kni: fix build on RHEL 8

'ndo_change_mtu_rh74' was changed to 'ndo_change_mtu' in RHEL8.

Build error log:
/home/dpdk-18.11/kernel/linux/kni/compat.h:107:24: error: ‘const struct
net_device_ops’ has no member named ‘ndo_change_mtu_rh74’; did you mean
‘ndo_change_mtu’?
 #define ndo_change_mtu ndo_change_mtu_rh74
                        ^~~~~~~~~~~~~~~~~~~

Cc: stable@dpdk.org
Signed-off-by: Xiao Liang <xiliang@redhat.com>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
kernel/linux/kni/compat.h
kernel/linux/kni/ethtool/igb/kcompat.h