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)
commit20fd4d1f04da07d09192ad8ad366a70d5125bfaf
treea241ed7f086c88361c4b411bee7fb45839fffc69
parentac8025a643a0e0beb81f3f37ca693364c6b77858
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