[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20131227.120820.827902523607182899.davem@davemloft.net>
Date: Fri, 27 Dec 2013 12:08:20 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: roy.qing.li@...il.com
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH net-next] core: remove old parameter for
__dst_destroy_metrics_generic
From: roy.qing.li@...il.com
Date: Fri, 27 Dec 2013 17:26:45 +0800
> From: Li RongQing <roy.qing.li@...il.com>
>
> when call __dst_destroy_metrics_generic, we always know who old is, so
> do not need to pass it.
>
> Signed-off-by: Li RongQing <roy.qing.li@...il.com>
It's a parameter so that we pass it in a register, rather than having the
caller and the function both have to perform a memory operation and load
the value.
It's an optimization.
I'm not applying this, sorry.
--
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