From: David Miller <davem@davemloft.net>
To: adobriyan@gmail.com
Cc: netdev@vger.kernel.org
Subject: Re: [PATCH] net: make struct napi_alloc_cache::skb_count unsigned int
Date: Sat, 19 Nov 2016 22:11:42 -0500 (EST) [thread overview]
Message-ID: <20161119.221142.1237956123536159486.davem@davemloft.net> (raw)
In-Reply-To: <20161119004756.GC1200@avx2>
From: Alexey Dobriyan <adobriyan@gmail.com>
Date: Sat, 19 Nov 2016 03:47:56 +0300
> size_t is way too much for an integer not exceeding 64.
>
> Space savings: 10 bytes!
>
> add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-10 (-10)
> function old new delta
> napi_consume_skb 165 163 -2
> __kfree_skb_flush 56 53 -3
> __kfree_skb_defer 97 92 -5
> Total: Before=154865639, After=154865629, chg -0.00%
>
> Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Applied to net-next.
prev parent reply other threads:[~2016-11-20 3:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-19 0:47 [PATCH] net: make struct napi_alloc_cache::skb_count unsigned int Alexey Dobriyan
2016-11-20 3:11 ` David Miller [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=20161119.221142.1237956123536159486.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=adobriyan@gmail.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;
as well as URLs for NNTP newsgroup(s).