datapath/actions: Mark recalculate_csum as likely in set_ipv6_addr().
authorJarno Rajahalme <jrajahalme@nicira.com>
Mon, 11 Aug 2014 15:38:58 +0000 (08:38 -0700)
committerJarno Rajahalme <jrajahalme@nicira.com>
Mon, 11 Aug 2014 16:02:59 +0000 (09:02 -0700)
commit51cf5e71bbb3db50670a88588fc5f5837c9c99da
treefcd2dbcfb22b61475c00abe2ec8c65b90ee0bbd1
parentf3ccd17db38d7f574fa26c1615c96b6b207c19df
datapath/actions: Mark recalculate_csum as likely in set_ipv6_addr().

The ‘recalculate_csum’ is almost always ‘true’.  It is false only if
the ipv6 nexthdr is an extension header, and a routing header is
found.  For the majority of ipv6 packets this would not be the case,
so this can be marked as 'likely'.

Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com>
Acked-by: Jesse Gross <jesse@nicira.com>
datapath/actions.c