From: Richard Cochran <richardcochran@gmail.com>
To: Vladimir Oltean <olteanv@gmail.com>
Cc: "Keller, Jacob E" <jacob.e.keller@intel.com>,
"davem@davemloft.net" <davem@davemloft.net>,
"jakub.kicinski@netronome.com" <jakub.kicinski@netronome.com>,
"f.fainelli@gmail.com" <f.fainelli@gmail.com>,
"vivien.didelot@gmail.com" <vivien.didelot@gmail.com>,
"andrew@lunn.ch" <andrew@lunn.ch>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>
Subject: Re: [PATCH net] net: dsa: sja1105: Fix double delivery of TX timestamps to socket error queue
Date: Thu, 26 Dec 2019 17:52:32 -0800 [thread overview]
Message-ID: <20191227015232.GA6436@localhost> (raw)
In-Reply-To: <CA+h21hrBLedLHCfP3oY2U96BJXqMQO=Uof3tsjji_Fp-b0smHQ@mail.gmail.com>
On Thu, Dec 26, 2019 at 08:24:19PM +0200, Vladimir Oltean wrote:
> How will these drivers not transmit a second hw TX timestamp to the
> stack, if they don't check whether TX timestamping is enabled for
> their netdev?
Ah, so they are checking SKBTX_HW_TSTAMP on the socket without
checking for HWTSTAMP first? Yeah, that won't work with DSA time
stamping. But who cares? Most of the real world doesn't have gigabit
DSA switches in front of MACs that provide 10 gigabit links or higher.
> Of course, at least that breakage is going to be much more binary and
> obvious: PTP simply won't work at all for drivers stacked on top of
> them until they are fixed.
Right, you can fix individual MAC drivers to work with DSA, one by
one. You are free to try to get the maintainers to ack your fixes.
(But, here is a friendly hint: don't start out by declaring their
drivers "broken").
> Does the TI PHYTER driver count?
No. It really doesn't count. It won't work together with MAC time
stamping, but this is a known limitation. That part is 100 mbit only,
and there are very few implementations. Unfortunately the
so_timestamping API did not foresee the possibility of simultaneous
MAC and PHY time stamping. Too bad, that's life. I didn't invent the
API, and I don't have to defend it, either.
Thanks,
Richard
next prev parent reply other threads:[~2019-12-27 1:52 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-16 22:33 [PATCH net] net: dsa: sja1105: Fix double delivery of TX timestamps to socket error queue Vladimir Oltean
2019-12-17 19:57 ` Keller, Jacob E
2019-12-17 20:07 ` Vladimir Oltean
2019-12-17 22:21 ` Keller, Jacob E
2019-12-24 19:05 ` Richard Cochran
2019-12-26 18:24 ` Vladimir Oltean
2019-12-27 1:52 ` Richard Cochran [this message]
2019-12-27 15:19 ` Richard Cochran
2019-12-27 15:30 ` Vladimir Oltean
2019-12-27 17:39 ` Richard Cochran
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=20191227015232.GA6436@localhost \
--to=richardcochran@gmail.com \
--cc=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=f.fainelli@gmail.com \
--cc=jacob.e.keller@intel.com \
--cc=jakub.kicinski@netronome.com \
--cc=netdev@vger.kernel.org \
--cc=olteanv@gmail.com \
--cc=vivien.didelot@gmail.com \
/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).