summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorDan Gora <dg@adax.com>2018-09-13 18:46:52 -0300
committerThomas Monjalon <thomas@monjalon.net>2018-10-02 17:57:00 +0200
commit12ce2da88f032efb7bf2e3ed4e1037f220869251 (patch)
tree6b0f69d5c5e256804703687a63d0842940fc4036 /kernel
parentedd2fafbc0b89bd98b23d4e34402bb79363cb70a (diff)
downloaddpdk-draft-windows-12ce2da88f032efb7bf2e3ed4e1037f220869251.zip
dpdk-draft-windows-12ce2da88f032efb7bf2e3ed4e1037f220869251.tar.gz
dpdk-draft-windows-12ce2da88f032efb7bf2e3ed4e1037f220869251.tar.xz
kni: return failure for all ioctls
Modify kni_net_ioctl() to return -EOPNOTSUPP for all ioctls instead of 0. This is necessary because the Wicked (and possibly other) network interface managers will perform the SIOCGIWNAME ioctl to check if the interface is a wireless interface. If the KNI module returns success, Wicked will incorrectly interpret the interface as a wireless interface. Signed-off-by: Dan Gora <dg@adax.com> Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/linux/kni/kni_net.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/linux/kni/kni_net.c b/kernel/linux/kni/kni_net.c
index 7fcfa10..3a542d7 100644
--- a/kernel/linux/kni/kni_net.c
+++ b/kernel/linux/kni/kni_net.c
@@ -597,7 +597,7 @@ kni_net_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
pr_debug("kni_net_ioctl group:%d cmd:%d\n",
((struct kni_dev *)netdev_priv(dev))->group_id, cmd);
- return 0;
+ return -EOPNOTSUPP;
}
static void