netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH]    net: 8021q: additionally pass SIOCSHWTSTAMP ioctl flag to, the real device
@ 2015-03-19 10:08 Martin Gerbershagen
  2015-03-19 18:50 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Martin Gerbershagen @ 2015-03-19 10:08 UTC (permalink / raw)
  To: Patrick McHardy, netdev


   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@nokia.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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-03-19 18:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-19 10:08 [PATCH] net: 8021q: additionally pass SIOCSHWTSTAMP ioctl flag to, the real device Martin Gerbershagen
2015-03-19 18:50 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).