LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: joe@perches.com
Cc: linux-net-drivers@solarflare.com, ecree@solarflare.com,
mhabets@solarflare.com, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] sfc: ethtool: Refactor to remove fallthrough comments in case blocks
Date: Thu, 12 Mar 2020 11:30:02 -0700 (PDT) [thread overview]
Message-ID: <20200312.113002.2094797356741004781.davem@davemloft.net> (raw)
In-Reply-To: <062df3c71913d94339aec60020db7594ba97b0a5.camel@perches.com>
From: Joe Perches <joe@perches.com>
Date: Tue, 10 Mar 2020 19:41:41 -0700
> Converting fallthrough comments to fallthrough; creates warnings
> in this code when compiled with gcc.
>
> This code is overly complicated and reads rather better with a
> little refactoring and no fallthrough uses at all.
>
> Remove the fallthrough comments and simplify the written source
> code while reducing the object code size.
>
> Consolidate duplicated switch/case blocks for IPV4 and IPV6.
>
> defconfig x86-64 with sfc:
>
> $ size drivers/net/ethernet/sfc/ethtool.o*
> text data bss dec hex filename
> 10055 12 0 10067 2753 drivers/net/ethernet/sfc/ethtool.o.new
> 10135 12 0 10147 27a3 drivers/net/ethernet/sfc/ethtool.o.old
>
> Signed-off-by: Joe Perches <joe@perches.com>
Applied to net-next.
prev parent reply other threads:[~2020-03-12 18:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-11 2:41 Joe Perches
2020-03-12 9:50 ` Martin Habets
2020-03-12 18:30 ` 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=20200312.113002.2094797356741004781.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=ecree@solarflare.com \
--cc=joe@perches.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-net-drivers@solarflare.com \
--cc=mhabets@solarflare.com \
--cc=netdev@vger.kernel.org \
--subject='Re: [PATCH] sfc: ethtool: Refactor to remove fallthrough comments in case blocks' \
/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
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).