1
0
mirror of https://github.com/corundum/corundum.git synced 2025-01-16 08:12:53 +08:00

modules/mqnic: Add kernel version check for ndetdev ioctl change

Signed-off-by: Alex Forencich <alex@alexforencich.com>
This commit is contained in:
Alex Forencich 2022-05-05 11:19:53 -07:00
parent c2fea3a616
commit 7ee0a661bd

View File

@ -350,7 +350,11 @@ static const struct net_device_ops mqnic_netdev_ops = {
.ndo_get_stats64 = mqnic_get_stats64,
.ndo_validate_addr = eth_validate_addr,
.ndo_change_mtu = mqnic_change_mtu,
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 15, 0)
.ndo_eth_ioctl = mqnic_ioctl,
#else
.ndo_do_ioctl = mqnic_ioctl,
#endif
};
int mqnic_create_netdev(struct mqnic_if *interface, struct net_device **ndev_ptr,