Skip to content

Commit a6111d3

Browse files
ssorensendavem330
authored andcommitted
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent ae5c6c6 commit a6111d3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

net/8021q/vlan_dev.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,8 @@ static int vlan_dev_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
385385
case SIOCGMIIPHY:
386386
case SIOCGMIIREG:
387387
case SIOCSMIIREG:
388+
case SIOCSHWTSTAMP:
389+
case SIOCGHWTSTAMP:
388390
if (netif_device_present(real_dev) && ops->ndo_do_ioctl)
389391
err = ops->ndo_do_ioctl(real_dev, &ifrr, cmd);
390392
break;

0 commit comments

Comments
 (0)