mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-04-23 23:03:59 +00:00
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 <stefan.sorensen@spectralink.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
ae5c6c6d7b
commit
a6111d3c93
1 changed files with 2 additions and 0 deletions
|
@ -385,6 +385,8 @@ static int vlan_dev_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
|
||||||
case SIOCGMIIPHY:
|
case SIOCGMIIPHY:
|
||||||
case SIOCGMIIREG:
|
case SIOCGMIIREG:
|
||||||
case SIOCSMIIREG:
|
case SIOCSMIIREG:
|
||||||
|
case SIOCSHWTSTAMP:
|
||||||
|
case SIOCGHWTSTAMP:
|
||||||
if (netif_device_present(real_dev) && ops->ndo_do_ioctl)
|
if (netif_device_present(real_dev) && ops->ndo_do_ioctl)
|
||||||
err = ops->ndo_do_ioctl(real_dev, &ifrr, cmd);
|
err = ops->ndo_do_ioctl(real_dev, &ifrr, cmd);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Reference in a new issue