geneve: Optimize geneve device lookup.
authorpravin shelar <pshelar@ovn.org>
Mon, 21 Nov 2016 19:03:01 +0000 (11:03 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Nov 2016 19:05:50 +0000 (14:05 -0500)
commit2e0b26e1035253bda7587f705f346385352e942d
treecc5e1d8031e96ed8ec41c44bdd206f1765eadb22
parentbcceeec3ccc413b11b41bd0559c7e8537ca9916e
geneve: Optimize geneve device lookup.

Rather than comparing 64-bit tunnel-id, compare tunnel vni
which is 24-bit id. This also save conversion from vni
to tunnel id on each tunnel packet receive.

Signed-off-by: Pravin B Shelar <pshelar@ovn.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/geneve.c