From: Martin Gerbershagen <martin.gerbershagen@nokia.com>
To: Patrick McHardy <kaber@trash.net>, netdev@vger.kernel.org
Subject: [PATCH] net: 8021q: additionally pass SIOCSHWTSTAMP ioctl flag to, the real device
Date: Thu, 19 Mar 2015 11:08:36 +0100 [thread overview]
Message-ID: <550AA024.8030606@nokia.com> (raw)
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
next reply other threads:[~2015-03-19 10:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-19 10:08 Martin Gerbershagen [this message]
2015-03-19 18:50 ` [PATCH] net: 8021q: additionally pass SIOCSHWTSTAMP ioctl flag to, the real device David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=550AA024.8030606@nokia.com \
--to=martin.gerbershagen@nokia.com \
--cc=kaber@trash.net \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).