[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20150923.111436.160207282585511690.davem@davemloft.net>
Date: Wed, 23 Sep 2015 11:14:36 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: alexander.duyck@...il.com
Cc: dsa@...ulusnetworks.com, netdev@...r.kernel.org
Subject: Re: [PATCH net-next 2/9] net: Remove e_inval label from
ip_route_input_slow
From: Alexander Duyck <alexander.duyck@...il.com>
Date: Wed, 23 Sep 2015 09:31:06 -0700
> It is the general direction of this I don't like since it is just
> making the code uglier before you attempt to fix it.
I agree, I don't like these refactorings at all.
Some of these code paths have been this way for a decade or longer,
and are etched into the back of our skulls.
Unless there is _true_ benefit, just leave the code alone, really.
I also really don't like "un-goto" conversions at all, they generally
make the code harder to read. And as Eric Dumazet said, unless you
carefully pair such changes with appropriate likely()/unlikely()
taggin you pessimize the code.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists