[Bridge] [PATCH net-next] bridge: avoid unnecessary read of jiffies
nikolay at cumulusnetworks.com
Tue Feb 7 16:56:59 UTC 2017
On 07/02/17 17:46, Stephen Hemminger wrote:
> Jiffies is volatile so read it once.
> Signed-off-by: Stephen Hemminger <sthemmin at microsoft.com>
> net/bridge/br_fdb.c | 6 ++++--
> net/bridge/br_input.c | 6 ++++--
> 2 files changed, 8 insertions(+), 4 deletions(-)
Yep, good catch. Maybe you can use READ_ONCE() even though it's not needed just
to show why it's done this way.
Acked-by: Nikolay Aleksandrov <nikolay at cumulusnetworks.com>
More information about the Bridge