]> git.baikalelectronics.ru Git - kernel.git/commit
gre: Simplify gre protocol registration locking.
authorPravin B Shelar <pshelar@nicira.com>
Tue, 18 Jun 2013 00:49:32 +0000 (17:49 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Jun 2013 01:07:40 +0000 (18:07 -0700)
commit7a03deec61d0b984cfef68fa910f9de1ab76ccbd
treea241ed7f086c88361c4b411bee7fb45839fffc69
parenta2247ec09737b2116f4109f6b26054f48f6ea090
gre: Simplify gre protocol registration locking.

Use cmpxchg() for atomic protocol registration which saves
code and data space.

Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/gre.c