vxlan: compute source port in network byte order
authorstephen hemminger <stephen@networkplumber.org>
Sat, 27 Apr 2013 11:31:56 +0000 (11:31 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Apr 2013 15:53:12 +0000 (11:53 -0400)
commit7d836a7679a85f75bbc96d631b4007a78396b190
treeee61331a1aa62a91aef8af609fce1e5f28a5cf86
parent5d174dd80ce94b7ed0950e31fc9a0122c689523b
vxlan: compute source port in network byte order

Rather than computing source port and returning it in host order
then swapping later, go ahead and compute it in network order to
start with. Cleaner and less error prone.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c