From: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
To: Michael Chan <michael.chan@broadcom.com>
Cc: David Miller <davem@davemloft.net>,
Netdev <netdev@vger.kernel.org>,
Andrew Gospodarek <andrew.gospodarek@broadcom.com>
Subject: Re: [PATCH net-next v5 0/5] Introduce NETIF_F_GRO_HW
Date: Tue, 19 Dec 2017 17:55:16 -0200 [thread overview]
Message-ID: <20171219195516.GG6122@localhost.localdomain> (raw)
In-Reply-To: <CACKFLikqAgFP3AHeWdagRisR7EHDD6E72_cbcT0afKMOAWTJeg@mail.gmail.com>
On Tue, Dec 19, 2017 at 11:25:29AM -0800, Michael Chan wrote:
> On Tue, Dec 19, 2017 at 11:04 AM, Marcelo Ricardo Leitner
> <marcelo.leitner@gmail.com> wrote:
> > Can we clarify on the meaning/expectations of dev_weight? The
> > documentation currently says:
> > The maximum number of packets that kernel can handle on a NAPI
> > interrupt, it's a Per-CPU variable.
> >
> > I believe 'packets' here refers to packets on the wire.
> >
> > For drivers doing LRO, we don't have visibility on how many
> > packets were aggregated so they count as 1, aggregated or not.
> >
> > But for GRO_HW, drivers implementing it will get a bonus on its
> > dev_weight because instead of pulling 5 packets in a cycle to create 1
> > gro'ed skb, it will pull 1 big packet (which includes 5) and count it
> > as 1.
> >
>
> Right, as I replied to you earlier, it's very simple to make this
> adjustment for GRO_HW packets in the driver. I will make this change
> for bnxt_en in my next net-next patchset and I will update the
> dev_weight documentation as well.
>
Sounds like just the documentation would be enough. I agree with Dave
in the other reply. It makes sense to count it as 1, but getting that
more clear in the doc is welcomed.
Thanks,
Marcelo
next prev parent reply other threads:[~2017-12-19 19:55 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-16 8:09 [PATCH net-next v5 0/5] Introduce NETIF_F_GRO_HW Michael Chan
2017-12-16 8:09 ` [PATCH net-next v5 1/5] net: " Michael Chan
2017-12-16 16:38 ` Alexander Duyck
2017-12-16 8:09 ` [PATCH net-next v5 2/5] net: Disable GRO_HW when generic XDP is installed on a device Michael Chan
2017-12-16 8:09 ` [PATCH net-next v5 3/5] bnxt_en: Use NETIF_F_GRO_HW Michael Chan
2017-12-16 8:09 ` [PATCH net-next v5 4/5] bnx2x: " Michael Chan
2017-12-17 11:49 ` Chopra, Manish
2017-12-16 8:09 ` [PATCH net-next v5 5/5] qede: " Michael Chan
2017-12-17 11:52 ` Chopra, Manish
2017-12-19 15:50 ` [PATCH net-next v5 0/5] Introduce NETIF_F_GRO_HW David Miller
2017-12-19 19:04 ` Marcelo Ricardo Leitner
2017-12-19 19:24 ` David Miller
2017-12-19 19:25 ` Michael Chan
2017-12-19 19:55 ` Marcelo Ricardo Leitner [this message]
2017-12-22 14:57 ` Sabrina Dubroca
2017-12-22 18:14 ` Alexander Duyck
2017-12-29 12:43 ` Sabrina Dubroca
2017-12-29 15:12 ` Alexander Duyck
2017-12-30 5:20 ` Michael Chan
2017-12-30 15:45 ` David Miller
2019-01-07 14:00 ` Shay Agroskin
2019-01-07 14:46 ` David Miller
2019-01-08 10:58 ` Michael Chan
2019-01-13 10:36 ` Shay Agroskin
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=20171219195516.GG6122@localhost.localdomain \
--to=marcelo.leitner@gmail.com \
--cc=andrew.gospodarek@broadcom.com \
--cc=davem@davemloft.net \
--cc=michael.chan@broadcom.com \
--cc=netdev@vger.kernel.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