From: Vinicius Costa Gomes <vinicius.gomes@intel.com>
To: Miroslav Lichvar <mlichvar@redhat.com>,
Jesus Sanchez-Palencia <jesus.sanchez-palencia@intel.com>
Cc: netdev@vger.kernel.org, john.stultz@linaro.org,
Richard Cochran <rcochran@linutronix.de>,
jiri@resnulli.us, ivan.briano@intel.com,
richardcochran@gmail.com, henrik@austad.us, jhs@mojatatu.com,
levi.pearson@harman.com, intel-wired-lan@lists.osuosl.org,
xiyou.wangcong@gmail.com, tglx@linutronix.de,
anna-maria@linutronix.de
Subject: Re: [Intel-wired-lan] [RFC v2 net-next 01/10] net: Add a new socket option for a future transmit time.
Date: Tue, 23 Jan 2018 13:22:37 -0800 [thread overview]
Message-ID: <877es81d9e.fsf@intel.com> (raw)
In-Reply-To: <20180118084227.GL1175@localhost>
Hi,
Miroslav Lichvar <mlichvar@redhat.com> writes:
> On Wed, Jan 17, 2018 at 03:06:12PM -0800, Jesus Sanchez-Palencia wrote:
>> From: Richard Cochran <rcochran@linutronix.de>
>>
>> This patch introduces SO_TXTIME. User space enables this option in
>> order to pass a desired future transmit time in a CMSG when calling
>> sendmsg(2).
>>
>> A new field is added to struct sockcm_cookie, and the tstamp from
>> skbuffs will be used later on.
>
> In the discussion about the v1 patchset, there was a question if the
> cmsg should include a clockid_t. Without that, how can an application
> prevent the packet from being sent using an incorrect clock, e.g.
> the system clock when it expects it to be a PHC, or a different PHC
> when the socket is not bound to a specific interface?
>
> At least in some applications it would be preferred to not sent a
> packet at all instead of sending it at a wrong time.
Including the clockid in a CMSG field does make sense. Will add it in
the next version of this series.
What I think would be the ideal scenario would be if the clockid
parameter to the TBS Qdisc would not be necessary (if offload was
enabled), but that's not quite possible right now, because there's no
support for using the hrtimer infrastructure with dynamic clocks
(/dev/ptp*).
What I am thinking is to keep the clockid parameter for the Qdisc (and
add support for expressing the clockid in friendlier ways, as requested
later in this thread), but I can't think of a way to add support for
using /dev/ptp* clocks without first having hrtimer support them.
And the behavior would be to drop any packets with a clockid not
matching the Qdisc clockid.
How does this sound?
>
> Please keep in mind that the PHCs and the system clock don't have to
> be synchronized to each other. If I understand the rest of the series
> correctly, there is an assumption that the PHCs are keeping time in
> TAI and CLOCK_TAI can be used as a fallback.
You understand correctly, that's because of whole hrtimer issue.
>
> --
> Miroslav Lichvar
Cheers,
next prev parent reply other threads:[~2018-01-23 21:22 UTC|newest]
Thread overview: 43+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-17 23:06 [RFC v2 net-next 00/10] Time based packet transmission Jesus Sanchez-Palencia
2018-01-17 23:06 ` [RFC v2 net-next 01/10] net: Add a new socket option for a future transmit time Jesus Sanchez-Palencia
2018-01-18 8:42 ` [Intel-wired-lan] " Miroslav Lichvar
2018-01-18 17:13 ` Richard Cochran
2018-02-01 0:49 ` Jesus Sanchez-Palencia
2018-02-01 4:16 ` Richard Cochran
2018-02-01 9:27 ` Miroslav Lichvar
2018-02-01 20:55 ` Jesus Sanchez-Palencia
2018-01-23 21:22 ` Vinicius Costa Gomes [this message]
2018-01-24 3:04 ` Richard Cochran
2018-01-24 22:46 ` Vinicius Costa Gomes
2018-01-26 2:12 ` Richard Cochran
2018-02-12 22:39 ` Jesus Sanchez-Palencia
2018-02-13 9:56 ` Miroslav Lichvar
2018-01-18 17:11 ` Richard Cochran
2018-01-23 18:12 ` Jesus Sanchez-Palencia
2018-01-19 21:15 ` Willem de Bruijn
2018-01-20 2:09 ` Richard Cochran
2018-01-25 9:12 ` [Intel-wired-lan] " Miroslav Lichvar
2018-01-25 16:52 ` Richard Cochran
2018-01-23 18:24 ` Jesus Sanchez-Palencia
2018-01-23 20:02 ` Willem de Bruijn
2018-01-17 23:06 ` [RFC v2 net-next 02/10] net: ipv4: raw: Hook into time based transmission Jesus Sanchez-Palencia
2018-01-18 0:28 ` Eric Dumazet
2018-01-17 23:06 ` [RFC v2 net-next 03/10] net: ipv4: udp: " Jesus Sanchez-Palencia
2018-01-17 23:06 ` [RFC v2 net-next 04/10] net: packet: " Jesus Sanchez-Palencia
2018-01-17 23:06 ` [RFC v2 net-next 05/10] net/sched: Allow creating a Qdisc watchdog with other clocks Jesus Sanchez-Palencia
2018-01-17 23:06 ` [RFC v2 net-next 06/10] net/sched: Introduce the TBS Qdisc Jesus Sanchez-Palencia
2018-01-18 13:35 ` Jamal Hadi Salim
2018-01-18 13:44 ` Jamal Hadi Salim
2018-01-23 21:45 ` Jesus Sanchez-Palencia
2018-01-18 17:18 ` Richard Cochran
2018-01-23 22:01 ` Jesus Sanchez-Palencia
2018-01-19 21:18 ` Willem de Bruijn
2018-01-17 23:06 ` [RFC v2 net-next 07/10] igb: Refactor igb_configure_cbs() Jesus Sanchez-Palencia
2018-01-17 23:06 ` [RFC v2 net-next 08/10] igb: Only change Tx arbitration when CBS is on Jesus Sanchez-Palencia
2018-01-17 23:06 ` [RFC v2 net-next 09/10] igb: Refactor igb_offload_cbs() Jesus Sanchez-Palencia
2018-01-17 23:06 ` [RFC v2 net-next 10/10] igb: Add support for TBS offload Jesus Sanchez-Palencia
2018-01-23 5:23 ` [RFC v2 net-next 00/10] Time based packet transmission Richard Cochran
2018-01-23 5:26 ` Richard Cochran
2018-01-23 18:07 ` Jesus Sanchez-Palencia
2018-01-24 1:43 ` Levi Pearson
2018-01-27 0:04 ` Jesus Sanchez-Palencia
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=877es81d9e.fsf@intel.com \
--to=vinicius.gomes@intel.com \
--cc=anna-maria@linutronix.de \
--cc=henrik@austad.us \
--cc=intel-wired-lan@lists.osuosl.org \
--cc=ivan.briano@intel.com \
--cc=jesus.sanchez-palencia@intel.com \
--cc=jhs@mojatatu.com \
--cc=jiri@resnulli.us \
--cc=john.stultz@linaro.org \
--cc=levi.pearson@harman.com \
--cc=mlichvar@redhat.com \
--cc=netdev@vger.kernel.org \
--cc=rcochran@linutronix.de \
--cc=richardcochran@gmail.com \
--cc=tglx@linutronix.de \
--cc=xiyou.wangcong@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).