Commit a6785bd7 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by David S. Miller
Browse files

octeontx2-nicvf: fix ioctl callback



The mii ioctls are now handled by the ndo_eth_ioctl() callback,
not the old ndo_do_ioctl(), but octeontx2-nicvf introduced the
function for the old way.

Move it over to ndo_eth_ioctl() to actually allow calling it from
user space.

Fixes: 43510ef4 ("octeontx2-nicvf: Add PTP hardware clock support to NIX VF")
Fixes: a7605370 ("dev_ioctl: split out ndo_eth_ioctl")
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 9dcc0071
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -501,7 +501,7 @@ static const struct net_device_ops otx2vf_netdev_ops = {
	.ndo_set_features = otx2vf_set_features,
	.ndo_get_stats64 = otx2_get_stats64,
	.ndo_tx_timeout = otx2_tx_timeout,
	.ndo_do_ioctl	= otx2_ioctl,
	.ndo_eth_ioctl	= otx2_ioctl,
};

static int otx2_wq_init(struct otx2_nic *vf)