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

* Re: [PATCH] net: 8021q: additionally pass SIOCSHWTSTAMP ioctl flag to, the real device
  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
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2015-03-19 18:50 UTC (permalink / raw)
  To: martin.gerbershagen; +Cc: kaber, netdev

From: Martin Gerbershagen <martin.gerbershagen@nokia.com>
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 <martin.gerbershagen@nokia.com>

Please only submit patches against current sources.

Not only is the SIOCSHWTSTAMP there in vlan_dev_ioctl() already, unlike
your patch SIOCGHWTSTAMP is handled and passed down as well.

In fact it's been that way since 3.17 which was released in October 2014,
that's 5 months ago.

You want everyone reading your patch posting to care enough to review
it properly and integrate it if it is valid, yet you don't care enough
about your own change and the time invested by the developers here
reviewing your work to base your work againt current sources?

^ permalink raw reply	[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).