public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
From: Kurt Kanzenbach <kurt@linutronix.de>
To: Ferenc Fejes <ferenc.fejes@ericsson.com>,
	"netdev@vger.kernel.org" <netdev@vger.kernel.org>
Cc: "vinicius.gomes@intel.com" <vinicius.gomes@intel.com>,
	"hawk@kernel.org" <hawk@kernel.org>
Subject: Re: igc: AF_PACKET and SO_TXTIME question
Date: Mon, 19 Feb 2024 09:38:35 +0100	[thread overview]
Message-ID: <875xykalx0.fsf@kurt.kurt.home> (raw)
In-Reply-To: <ea5f43e1c4c2403211f89ab014c88a7af4fe53ca.camel@ericsson.com>

[-- Attachment #1: Type: text/plain, Size: 921 bytes --]

Hi Ferenc,

On Fri Feb 16 2024, Ferenc Fejes wrote:
> We simply placed the ETF qdisc as the root qdisc and assumed that this
> would enable offload on all TX queues. Apparently this is not the case.
> According to the code, it was only enabled for queue 0. Another mistake
> we made is we used multiq qdisc with skbedit queue_mapping without
> bypass - which works since the tx action is executed.
> However, with qdisc baypass, the TX queue selection for the packets
> sent to the AF_PACKET socket looks like this
>
> tx_queue = cpu_id of task % num_tx_queues.
>
> With taskset, we were able to explicitly send packets to TX queue 0 in
> the bypass case, and that essentially solved the problem.
>
> So we switched to mqprio and enabled offloading on all queues and with
> that we always see the delayed packet transmission with launchtime
> enabled.

Glad it worked out. Thanks for sharing your solution!

Thanks,
Kurt

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 861 bytes --]

      reply	other threads:[~2024-02-19  8:38 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-14 14:00 igc: AF_PACKET and SO_TXTIME question Ferenc Fejes
2024-02-14 14:10 ` Ferenc Fejes
2024-02-14 14:51 ` Kurt Kanzenbach
2024-02-15  8:38   ` Ferenc Fejes
2024-02-16  7:16     ` Ferenc Fejes
2024-02-19  8:38       ` Kurt Kanzenbach [this message]

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=875xykalx0.fsf@kurt.kurt.home \
    --to=kurt@linutronix.de \
    --cc=ferenc.fejes@ericsson.com \
    --cc=hawk@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=vinicius.gomes@intel.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