All of lore.kernel.org
 help / color / mirror / Atom feed
From: Willem de Bruijn <willemdebruijn.kernel@gmail.com>
To: Xin Zhao <jackzxcui1989@163.com>,
	 willemdebruijn.kernel@gmail.com,  edumazet@google.com,
	 ferenc@fejes.dev
Cc: davem@davemloft.net,  kuba@kernel.org,  pabeni@redhat.com,
	 horms@kernel.org,  netdev@vger.kernel.org,
	 linux-kernel@vger.kernel.org
Subject: Re: [PATCH net-next v3] net: af_packet: Use hrtimer to do the retire operation
Date: Mon, 18 Aug 2025 05:21:59 -0400	[thread overview]
Message-ID: <willemdebruijn.kernel.45acd8edbab1@gmail.com> (raw)
In-Reply-To: <20250818071334.240913-1-jackzxcui1989@163.com>

Xin Zhao wrote:
> On Sun, 2025-08-17 at 21:28 +0800, Willem wrote:
> 
> > Here we cannot use hrtimer_add_expires for the same reason you gave in
> > the second version of the patch:
> > 
> > > Additionally, I think we cannot avoid using ktime_get, as the retire
> > > timeout for each block is not fixed. When there are a lot of network packets,
> > > a block can retire quickly, and if we do not re-fetch the time, the timeout
> > > duration may be set incorrectly.
> > 
> > Is that right?
> > 
> > Otherwise patch LGTM.
> 
> 
> Dear Willem,
> 
> While reviewing the code, I suddenly realized that previously I used 
> hrtimer_set_expires instead of hrtimer_forward_now to resolve the situation when
> handling the retire timer timeout while run into prb_open_block simultaneously.
> However, since there is now a distinction with the bool start variable in PATCH v4,
> it seems that we no longer need to use hrtimer_set_expires and can directly use
> hrtimer_forward_now instead. Therefore, I plan to make this change immediately and
> resend PATCH v4. Please take a look at it then.

Having a conversation in one thread that is not concluded yet and
already starting another thread makes back and forth communication
a bit difficult.

I'll take a look, but just send a v5 after 24 hrs.

  reply	other threads:[~2025-08-18  9:22 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-18  7:13 [PATCH net-next v3] net: af_packet: Use hrtimer to do the retire operation Xin Zhao
2025-08-18  9:21 ` Willem de Bruijn [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-08-18  5:38 Xin Zhao
2025-08-18  7:21 ` Willem de Bruijn
2025-08-17 14:47 Xin Zhao
2025-08-17 15:55 ` Willem de Bruijn
2025-08-16 17:01 Xin Zhao
2025-08-16  2:48 Xin Zhao
2025-08-16  9:34 ` Willem de Bruijn
2025-08-17 13:28 ` Willem de Bruijn

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=willemdebruijn.kernel.45acd8edbab1@gmail.com \
    --to=willemdebruijn.kernel@gmail.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=ferenc@fejes.dev \
    --cc=horms@kernel.org \
    --cc=jackzxcui1989@163.com \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.