From: Bruce Richardson <bruce.richardson@intel.com>
To: Joshua Washington <joshwash@google.com>
Cc: dev <dev@dpdk.org>, Stephen Hemminger <stephen@networkplumber.org>
Subject: Re: [PATCH v3 02/16] net/i40e: use common division round up macro
Date: Wed, 30 Sep 2026 08:31:31 +0100 [thread overview]
Message-ID: <ary607xzhLs-QpIV@bricha3-mobl1.ger.corp.intel.com> (raw)
In-Reply-To: <CALuQH+VtGnhmPoq4KpLuphM_tmXs2zu42dVDP5=M0Hiqvx2FkA@mail.gmail.com>
On Tue, Sep 29, 2026 at 03:44:02PM -0700, Joshua Washington wrote:
>
> On Wed, Sep 23, 2026, 00:35 Bruce Richardson
> <[1]bruce.richardson@intel.com> wrote:
>
> On Wed, Sep 23, 2026 at 08:30:18AM +0100, Bruce Richardson wrote:
> > On Tue, Sep 22, 2026 at 06:07:25PM -0700, Joshua Washington wrote:
> > > The RTE_DIV_ROUND_UP in rte_common.h makes DIV_ROUND_UP
> redundant.
> > >
> > > Signed-off-by: Joshua Washington <[2]joshwash@google.com>
> > > Reviewed-by: Stephen Hemminger <[3]stephen@networkplumber.org>
> > Acked-by: Bruce Richardson <[4]bruce.richardson@intel.com>
> > > ---
> > > drivers/net/intel/i40e/base/i40e_osdep.h | 3 +--
> > > 1 file changed, 1 insertion(+), 2 deletions(-)
> > >
> FYI: Just a note for i40e and the other intel drivers: the osdep.h
> files
> have moved in the repo in next-net-intel tree, so this patch will
> conflict
> once those changes are merged to main. Therefore, I'd suggest not
> merging
> this till after the pull, and then adjusting the paths in the patch
> on
> apply for simplicity of merge.
> Thanks,
> /Bruce
> > > diff --git a/drivers/net/intel/i40e/base/i40e_osdep.h
> b/drivers/net/intel/i40e/base/i40e_osdep.h
> > > index 9c5a94f055..93620f5c50 100644
> > > --- a/drivers/net/intel/i40e/base/i40e_osdep.h
> > > +++ b/drivers/net/intel/i40e/base/i40e_osdep.h
> > > @@ -227,12 +227,11 @@ struct i40e_spinlock {
> > > #define i40e_memset(a, b, c, d) memset((a), (b), (c))
> > > #define i40e_memcpy(a, b, c, d) memcpy((a), (b), (c))
> > >
> > > -#define DIV_ROUND_UP(n,d) (((n) + (d) - 1) / (d))
> > > #define DELAY(x) rte_delay_us_sleep(x)
> > > #define i40e_usec_delay(x) DELAY(x)
> > > #define i40e_msec_delay(x) DELAY(1000 * (x))
> > > #define udelay(x) DELAY(x)
> > > #define msleep(x) DELAY(1000*(x))
> > > -#define usleep_range(min, max) msleep(DIV_ROUND_UP(min, 1000))
> > > +#define usleep_range(min, max) msleep(RTE_DIV_ROUND_UP(min,
> 1000))
> > >
> > > #endif /* _I40E_OSDEP_H_ */
> > > --
> > > 2.55.0.1082.g2b9226bbc0-goog
> > >
>
> Ah, I missed this. Thanks for the update. I will hold off on a v3 if it
> is necessary until the main branch is updated.
>
The next-net-intel tree has been pulled, so the move of the osdep files is
completed now. Maybe respin this patch so it applies cleanly again?
next prev parent reply other threads:[~2026-09-30 7:31 UTC|newest]
Thread overview: 69+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-12 22:30 [PATCH] eal: introduce division round up macro Joshua Washington
2026-08-13 1:29 ` Stephen Hemminger
2026-08-13 17:22 ` [PATCH v2 00/14] Introduce RTE_DIV_ROUND_UP Joshua Washington
2026-08-13 17:22 ` [PATCH v2 01/14] eal: introduce division round up macro Joshua Washington
2026-08-13 17:22 ` [PATCH v2 02/14] net/i40e: use common " Joshua Washington
2026-08-13 17:22 ` [PATCH v2 03/14] net/idpf: " Joshua Washington
2026-08-13 17:22 ` [PATCH v2 04/14] net/ice: " Joshua Washington
2026-08-13 17:22 ` [PATCH v2 05/14] net/qede: " Joshua Washington
2026-08-13 17:22 ` [PATCH v2 06/14] net/rnp: " Joshua Washington
2026-08-13 17:22 ` [PATCH v2 07/14] net/hns3: " Joshua Washington
2026-08-13 17:22 ` [PATCH v2 08/14] net/hinic: " Joshua Washington
2026-08-13 17:22 ` [PATCH v2 09/14] net/bnx2x: " Joshua Washington
2026-08-13 17:22 ` [PATCH v2 10/14] net/cxgbe: " Joshua Washington
2026-08-13 17:22 ` [PATCH v2 11/14] net/ena: " Joshua Washington
2026-08-13 17:22 ` [PATCH v2 12/14] raw/ifpga/base: " Joshua Washington
2026-08-13 17:22 ` [PATCH v2 13/14] drivers: " Joshua Washington
2026-08-13 17:22 ` [PATCH v2 14/14] app/procinfo: " Joshua Washington
2026-08-15 15:32 ` [PATCH v2 00/14] Introduce RTE_DIV_ROUND_UP Stephen Hemminger
2026-09-22 0:36 ` Stephen Hemminger
2026-09-23 1:07 ` [PATCH v3 00/16] " Joshua Washington
2026-09-23 1:07 ` [PATCH v3 01/16] eal: introduce division round up macro Joshua Washington
2026-09-23 7:29 ` Bruce Richardson
2026-09-24 7:47 ` fengchengwen
2026-09-23 1:07 ` [PATCH v3 02/16] net/i40e: use common " Joshua Washington
2026-09-23 7:30 ` Bruce Richardson
2026-09-23 7:35 ` Bruce Richardson
2026-09-29 22:44 ` Joshua Washington
2026-09-30 7:31 ` Bruce Richardson [this message]
2026-09-23 1:07 ` [PATCH v3 03/16] net/idpf: " Joshua Washington
2026-09-23 7:31 ` Bruce Richardson
2026-09-23 1:07 ` [PATCH v3 04/16] net/ice: " Joshua Washington
2026-09-23 7:31 ` Bruce Richardson
2026-09-23 1:07 ` [PATCH v3 05/16] net/qede: " Joshua Washington
2026-09-23 1:07 ` [PATCH v3 06/16] net/rnp: " Joshua Washington
2026-09-23 1:07 ` [PATCH v3 07/16] net/hns3: " Joshua Washington
2026-09-24 7:48 ` fengchengwen
2026-09-23 1:07 ` [PATCH v3 08/16] net/hinic: " Joshua Washington
2026-09-23 1:07 ` [PATCH v3 09/16] net/bnx2x: " Joshua Washington
2026-09-23 1:07 ` [PATCH v3 10/16] net/cxgbe: " Joshua Washington
2026-09-23 1:07 ` [PATCH v3 11/16] net/ena: " Joshua Washington
2026-09-23 1:07 ` [PATCH v3 12/16] raw/ifpga/base: " Joshua Washington
2026-09-23 1:07 ` [PATCH v3 13/16] net/nfp: " Joshua Washington
2026-09-23 1:07 ` [PATCH v3 14/16] app/procinfo: " Joshua Washington
2026-09-24 7:49 ` fengchengwen
2026-09-23 1:07 ` [PATCH v3 15/16] app/test: " Joshua Washington
2026-09-23 7:36 ` Bruce Richardson
2026-09-24 7:51 ` fengchengwen
2026-09-23 1:07 ` [PATCH v3 16/16] app/test-compress-perf: " Joshua Washington
2026-09-23 7:36 ` Bruce Richardson
2026-09-24 7:51 ` fengchengwen
2026-09-23 17:32 ` [PATCH v3 00/16] Introduce RTE_DIV_ROUND_UP Stephen Hemminger
2026-10-06 2:30 ` [PATCH v4 00/15] " Joshua Washington
2026-10-06 2:30 ` [PATCH v4 01/15] eal: introduce division round up macro Joshua Washington
2026-10-06 2:30 ` [PATCH v4 02/15] net/i40e: use common " Joshua Washington
2026-10-06 2:30 ` [PATCH v4 03/15] net/idpf: " Joshua Washington
2026-10-06 2:30 ` [PATCH v4 04/15] net/ice: " Joshua Washington
2026-10-06 2:30 ` [PATCH v4 05/15] net/qede: " Joshua Washington
2026-10-06 2:30 ` [PATCH v4 06/15] net/rnp: " Joshua Washington
2026-10-06 2:30 ` [PATCH v4 07/15] net/hns3: " Joshua Washington
2026-10-06 2:30 ` [PATCH v4 08/15] net/hinic: " Joshua Washington
2026-10-06 2:30 ` [PATCH v4 09/15] net/bnx2x: " Joshua Washington
2026-10-06 2:30 ` [PATCH v4 10/15] net/cxgbe: " Joshua Washington
2026-10-06 2:30 ` [PATCH v4 11/15] net/ena: " Joshua Washington
2026-10-06 2:30 ` [PATCH v4 12/15] net/nfp: " Joshua Washington
2026-10-06 2:30 ` [PATCH v4 13/15] app/procinfo: " Joshua Washington
2026-10-06 2:30 ` [PATCH v4 14/15] app/test: " Joshua Washington
2026-10-06 2:30 ` [PATCH v4 15/15] app/test-compress-perf: " Joshua Washington
2026-10-06 16:38 ` [PATCH v4 00/15] Introduce RTE_DIV_ROUND_UP Stephen Hemminger
2026-10-07 20:21 ` Thomas Monjalon
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=ary607xzhLs-QpIV@bricha3-mobl1.ger.corp.intel.com \
--to=bruce.richardson@intel.com \
--cc=dev@dpdk.org \
--cc=joshwash@google.com \
--cc=stephen@networkplumber.org \
/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