Subject: [PATCH] net: 8021q: additionally pass SIOCSHWTSTAMP ioctl flag to, the real device

From: Martin Gerbershagen <[email-masked]>
Date: Thu, 19 Mar 2015 11:08:36 +0100

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 <[email-masked]>
---
 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