]> git.baikalelectronics.ru Git - kernel.git/commitdiff
octeontx2-nicvf: fix ioctl callback
authorArnd Bergmann <arnd@arndb.de>
Fri, 5 Nov 2021 09:29:40 +0000 (10:29 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 5 Nov 2021 14:23:21 +0000 (14:23 +0000)
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: b43d73887cd8 ("octeontx2-nicvf: Add PTP hardware clock support to NIX VF")
Fixes: 4eb077dbce52 ("dev_ioctl: split out ndo_eth_ioctl")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/nic/otx2_vf.c

index e6cb8cd0787d3094a97413e3a96467a4ec09cd63..78944ad3492ff0a6cc698883826fab1e3488686f 100644 (file)
@@ -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)