From: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
To: David Miller <davem@davemloft.net>
Cc: michael.chan@broadcom.com, netdev@vger.kernel.org,
andrew.gospodarek@broadcom.com
Subject: Re: [PATCH net-next v5 0/5] Introduce NETIF_F_GRO_HW
Date: Tue, 19 Dec 2017 17:04:27 -0200 [thread overview]
Message-ID: <20171219190426.GF6122@localhost.localdomain> (raw)
In-Reply-To: <20171219.105024.1047087594002892419.davem@davemloft.net>
On Tue, Dec 19, 2017 at 10:50:24AM -0500, David Miller wrote:
> From: Michael Chan <michael.chan@broadcom.com>
> Date: Sat, 16 Dec 2017 03:09:39 -0500
>
> > Introduce NETIF_F_GRO_HW feature flag and convert drivers that support
> > hardware GRO to use the new flag.
>
> Series applied, thanks for following through with this work.
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.
I understand that for all that matters, the hardware operations
involved on GRO_HW are really for only 1 packet, so it would make
sense to count it as 1. OTOH, this bump may cause additional pressure
in other places as in fact we are allowing more packets in in a given
cycle.
At least qede driver is counting 1 GRO_HW pkt as 1 budget.
Thanks,
Marcelo
next prev parent reply other threads:[~2017-12-19 19:04 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 [this message]
2017-12-19 19:24 ` David Miller
2017-12-19 19:25 ` Michael Chan
2017-12-19 19:55 ` Marcelo Ricardo Leitner
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=20171219190426.GF6122@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