]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit030351736f98f6924a63e1e196ff60a060c5da85
tree3c9c9da05ad0aac7b3d2e82b4351444f3a826556
parent2aa74095bfe39ec82f347b0512a3000f18ad48ef
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