netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Vinicius Costa Gomes <vinicius.gomes@intel.com>
To: David Miller <davem@davemloft.net>, rcochran@linutronix.de
Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
	intel-wired-lan@lists.osuosl.org, andre.guedes@intel.com,
	anna-maria@linutronix.de, henrik@austad.us,
	jesus.sanchez-palencia@intel.com, john.stultz@linaro.org,
	tglx@linutronix.de
Subject: Re: [PATCH RFC V1 net-next 0/6] Time based packet transmission
Date: Tue, 05 Dec 2017 13:22:07 -0800	[thread overview]
Message-ID: <87609kj2f4.fsf@intel.com> (raw)
In-Reply-To: <20170918.093436.1069699729581966538.davem@davemloft.net>

Hi David,

David Miller <davem@davemloft.net> writes:

> From: Richard Cochran <rcochran@linutronix.de>
> Date: Mon, 18 Sep 2017 09:41:15 +0200
>
>>   - The driver does not handle out of order packets.  If user space
>>     sends a packet with an earlier Tx time, then the code should stop
>>     the queue, reshuffle the descriptors accordingly, and then
>>     restart the queue.
>
> The user should simply be not allowed to do this.
>
> Once the packet is in the device queue, that's it.  You cannot insert
> a new packet to be transmitted before an already hw queued packet,
> period.
>
> Any out of order request should be rejected with an error.

Just to clarify, I agree that after after the packet is enqueued to the
HW, there's no going back, in another words, we must never enqueue
anything to the HW with a timestamp earlier than the last enqueued
packet.

But re-ordering packets at the Qdisc level is, I think, necessary: two
applications (one (A) with period of 50us and the other (B) of 100us),
if it happens that (B) enqueues its packet before (A), I think, we would
have a problem.

The problem is deciding for how long we should keep packets in the Qdisc
queue. In the implementation we are working on, this is left for the
user to decide.

Or do you have a reason for not doing *any* kind of re-ordering?

>
> I'd say the same is true for requests to send packets timed
> in the past.

+1


Cheers,
--
Vinicius

  reply	other threads:[~2017-12-05 21:22 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-18  7:41 [PATCH RFC V1 net-next 0/6] Time based packet transmission Richard Cochran
2017-09-18  7:41 ` [PATCH RFC V1 net-next 1/6] net: Add a new socket option for a future transmit time Richard Cochran
2017-09-18 14:50   ` Richard Cochran
2017-09-18 15:18   ` Eric Dumazet
2017-09-18  7:41 ` [PATCH RFC V1 net-next 2/6] net: skbuff: Add a field to support time based transmission Richard Cochran
2017-09-18 15:14   ` Eric Dumazet
2017-09-18  7:41 ` [PATCH RFC V1 net-next 3/6] net: ipv4: raw: Hook into " Richard Cochran
2017-09-18  7:41 ` [PATCH RFC V1 net-next 4/6] net: ipv4: udp: " Richard Cochran
2017-09-18  7:41 ` [PATCH RFC V1 net-next 5/6] net: packet: " Richard Cochran
2017-09-18  7:41 ` [PATCH RFC V1 net-next 6/6] net: igb: Implement " Richard Cochran
2017-09-18 16:34 ` [PATCH RFC V1 net-next 0/6] Time based packet transmission David Miller
2017-12-05 21:22   ` Vinicius Costa Gomes [this message]
2017-09-19 14:43 ` Miroslav Lichvar
2017-09-19 16:46   ` Richard Cochran
2017-09-20 17:35 ` levipearson
2017-09-20 20:11   ` Richard Cochran
2017-10-18 22:18 ` Jesus Sanchez-Palencia
2017-10-19 20:44   ` 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=87609kj2f4.fsf@intel.com \
    --to=vinicius.gomes@intel.com \
    --cc=andre.guedes@intel.com \
    --cc=anna-maria@linutronix.de \
    --cc=davem@davemloft.net \
    --cc=henrik@austad.us \
    --cc=intel-wired-lan@lists.osuosl.org \
    --cc=jesus.sanchez-palencia@intel.com \
    --cc=john.stultz@linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=rcochran@linutronix.de \
    --cc=tglx@linutronix.de \
    /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).