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)
commita0376db0f234a8053100bddf26c073be79546b2b
tree8fbfb0a2e077ada7852ee08a405559d06c155bb7
parent6c40d100ce3311a44ef82c678fb46833a270c007
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