From: Stefan Sørensen Date: Fri, 27 Jun 2014 09:59:11 +0000 (+0200) Subject: vlan: Pass SIOC[SG]HWTSTAMP ioctls to real device X-Git-Tag: v3.17-rc1~106^2~231^2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a6111d3c93d05bfaf3fbf70ed2a0b84cb0d65406;p=karo-tx-linux.git vlan: Pass SIOC[SG]HWTSTAMP ioctls to real device This allows applications to enable hardware timestamping without being aware of it being a vlan device and figuring out the real device. Signed-off-by: Stefan Sørensen Signed-off-by: David S. Miller --- diff --git a/net/8021q/vlan_dev.c b/net/8021q/vlan_dev.c index ad2ac3c00398..9d0223b16b46 100644 --- a/net/8021q/vlan_dev.c +++ b/net/8021q/vlan_dev.c @@ -385,6 +385,8 @@ static int vlan_dev_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) case SIOCGMIIPHY: case SIOCGMIIREG: case SIOCSMIIREG: + case SIOCSHWTSTAMP: + case SIOCGHWTSTAMP: if (netif_device_present(real_dev) && ops->ndo_do_ioctl) err = ops->ndo_do_ioctl(real_dev, &ifrr, cmd); break;