Intel-Wired-Lan Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Alexander Lobakin <aleksander.lobakin@intel.com>
To: Ahmed Zaki <ahmed.zaki@intel.com>
Cc: intel-wired-lan@lists.osuosl.org
Subject: Re: [Intel-wired-lan] [PATCH iwl-next] iavf: remove "inline" functions from iavf_txrx.c
Date: Fri, 25 Aug 2023 13:36:31 +0200	[thread overview]
Message-ID: <f60f2e8a-d77d-9048-405d-9c356960eb01@intel.com> (raw)
In-Reply-To: <30ae8892-3332-7fb7-273d-81f40a068175@intel.com>

From: Ahmed Zaki <ahmed.zaki@intel.com>
Date: Thu, 24 Aug 2023 14:08:05 -0600

> 
> On 2023-08-24 09:46, Ahmed Zaki wrote:
>>
>> On 2023-08-24 08:49, Alexander Lobakin wrote:
>>> From: Ahmed Zaki <ahmed.zaki@intel.com>
>>> Date: Thu, 24 Aug 2023 06:23:37 -0600
>>>
>>>> From: Jacob Keller <jacob.e.keller@intel.com>
>>>>
>>>> The iAVF txrx hotpath code has several functions that are marked as
>>>> "static inline" in the iavf_txrx.c file. This use of inline is frowned
>>>> upon in the netdev community and explicitly marked as something to
>>>> avoid
>>>> in the Linux coding-style document (section 15).
>>>>
>>>> Even though these functions are only used once, it is expected that GCC
>>>> is smart enough to decide when to perform function inlining where
>>>> appropriate without the "hint".
>>> The compilers sometimes do unexpected things. I wouldn't blindly hope.
>>> This means, I'd like to have some objdiff or at least bloat-o-meter
>>> output here to prove this commit doesn't hurt.
>>> If there are changes in the object code -- then some perf tests as well.
>>
>> OK, I will add a bloat-o-meter in v2
> 
> bloat-o-meter is showing zero diff:
> 
> add/remove: 0/0 grow/shrink: 0/0 up/down: 0/0 (0)
> Function                                     old     new   delta
> Total: Before=12166, After=12166, chg +0.00%

Ack. Add it to the commit message please. But before that, please check
the same with Clang. And don't forget that we have
CC_OPTIMIZE_FOR_PERFORMANCE and CC_OPTIMIZE_FOR_SIZE and ideally I'd
like you to test both GCC and Clang on both of them, since they pass
different `-Ox` flags and results may sometimes vary a lot (`-Os`
inlines stuff less aggressively).

Thanks,
Olek
_______________________________________________
Intel-wired-lan mailing list
Intel-wired-lan@osuosl.org
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan

  reply	other threads:[~2023-08-25 11:38 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-24 12:23 [Intel-wired-lan] [PATCH iwl-next] iavf: remove "inline" functions from iavf_txrx.c Ahmed Zaki
2023-08-24 14:49 ` Alexander Lobakin
2023-08-24 15:46   ` Ahmed Zaki
2023-08-24 20:01     ` Przemek Kitszel
2023-08-24 20:28       ` Ahmed Zaki
2023-08-24 20:08     ` Ahmed Zaki
2023-08-25 11:36       ` Alexander Lobakin [this message]
2023-08-25 15:31         ` Ahmed Zaki
2023-08-25 15:36           ` Alexander Lobakin

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=f60f2e8a-d77d-9048-405d-9c356960eb01@intel.com \
    --to=aleksander.lobakin@intel.com \
    --cc=ahmed.zaki@intel.com \
    --cc=intel-wired-lan@lists.osuosl.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