[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20110718.104203.518080599243849290.davem@davemloft.net>
Date: Mon, 18 Jul 2011 10:42:03 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: eric.dumazet@...il.com
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH net-next-2.6] ipv4: save cpu cycles from check_leaf()
From: Eric Dumazet <eric.dumazet@...il.com>
Date: Mon, 18 Jul 2011 15:16:33 +0200
> [PATCH net-next-2.6] ipv4: save cpu cycles from check_leaf()
>
> Compiler is not smart enough to avoid double BSWAP instructions in
> ntohl(inet_make_mask(plen)).
>
> Lets cache this value in struct leaf_info, (fill a hole on 64bit arches)
>
> With route cache disabled, this saves ~2% of cpu in udpflood bench on
> x86_64 machine.
>
> Signed-off-by: Eric Dumazet <eric.dumazet@...il.com>
Applied, thanks Eric.
--
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