vxlan: introduce vxlan_hdr
authorJiri Benc <jbenc@redhat.com>
Tue, 16 Feb 2016 20:58:57 +0000 (21:58 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Feb 2016 04:52:11 +0000 (23:52 -0500)
commitd4ac05ff3697e036dcb0e2e284c5f7eb77cc0966
tree3c9c9da05ad0aac7b3d2e82b4351444f3a826556
parentd8ef034730350f98c622eb7560dea28b258e9daf
vxlan: introduce vxlan_hdr

Currently, pointer to the vxlan header is kept in a local variable. It has
to be reloaded whenever the pskb pull operations are performed which usually
happens somewhere deep in called functions.

Create a vxlan_hdr function and use it to reference the vxlan header
instead.

Signed-off-by: Jiri Benc <jbenc@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c
include/net/vxlan.h