gre: Use inner_proto to obtain inner header protocol
authorAlexander Duyck <aduyck@mirantis.com>
Fri, 5 Feb 2016 23:28:08 +0000 (15:28 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Feb 2016 13:55:34 +0000 (08:55 -0500)
commit38720352412a4305a108ff37ae6099dab3f44a38
tree2fdb20a0647dcdb4c0c921a4d2b1b45ff230abbf
parent2e598af7135d1434b0ebf2e9c7ff8e014f48d572
gre: Use inner_proto to obtain inner header protocol

Instead of parsing headers to determine the inner protocol we can just pull
the value from inner_proto.

Signed-off-by: Alexander Duyck <aduyck@mirantis.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/gre_offload.c