[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <550AA024.8030606@nokia.com>
Date: Thu, 19 Mar 2015 11:08:36 +0100
From: Martin Gerbershagen <martin.gerbershagen@...ia.com>
To: Patrick McHardy <kaber@...sh.net>, netdev@...r.kernel.org
Subject: [PATCH] net: 8021q: additionally pass SIOCSHWTSTAMP ioctl flag
to, the real device
If vlan devices were used, hardware timestamping did not work. The
problem was that the SIOCSHWTSTAMP ioctl flag was not passed to the real
device. This is fixed with this patch.
Signed-off-by: Martin Gerbershagen <martin.gerbershagen@...ia.com>
---
net/8021q/vlan_dev.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/net/8021q/vlan_dev.c b/net/8021q/vlan_dev.c
index 1f26a1b..91f97b1 100644
--- a/net/8021q/vlan_dev.c
+++ b/net/8021q/vlan_dev.c
@@ -385,6 +385,7 @@ static int vlan_dev_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
case SIOCGMIIPHY:
case SIOCGMIIREG:
case SIOCSMIIREG:
+ case SIOCSHWTSTAMP:
if (netif_device_present(real_dev) && ops->ndo_do_ioctl)
err = ops->ndo_do_ioctl(real_dev, &ifrr, cmd);
break;
--
1.8.4.5
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists