]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: Optimize ipv6_change_dsfield().
authorYOSHIFUJI Hideaki / 吉藤英明 <yoshfuji@linux-ipv6.org>
Tue, 8 Jan 2013 06:47:08 +0000 (06:47 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Jan 2013 07:59:53 +0000 (23:59 -0800)
commit067d0f5d3b917456e5e5141f076bee57eae3d11f
tree8fbfb0a2e077ada7852ee08a405559d06c155bb7
parent495c55eb08e835ab2f3ae2926233e19257f11cd2
ipv6: Optimize ipv6_change_dsfield().

Do not convert endian back and forth.
If the caller uses contant "mask" argument (and most callers do),
we can omit runtime endian conversion here.

Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/dsfield.h