diff options
author | John W. Linville <linville@tuxdriver.com> | 2015-05-13 12:57:27 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-05-13 15:59:13 -0400 |
commit | 35d32e8fe4ab44180e46a0dd54abea6985398d00 (patch) | |
tree | b848fbac0cde4d7e40f193279205e81ea0a72829 /net | |
parent | 125907ae5ef000a3855b33f6545d672275413836 (diff) | |
download | linux-stable-35d32e8fe4ab44180e46a0dd54abea6985398d00.tar.gz linux-stable-35d32e8fe4ab44180e46a0dd54abea6985398d00.tar.bz2 linux-stable-35d32e8fe4ab44180e46a0dd54abea6985398d00.zip |
geneve: move definition of geneve_hdr() to geneve.h
This is a static inline with identical definitions in multiple places...
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv4/geneve.c | 5 | ||||
-rw-r--r-- | net/openvswitch/vport-geneve.c | 5 |
2 files changed, 0 insertions, 10 deletions
diff --git a/net/ipv4/geneve.c b/net/ipv4/geneve.c index 8e6a7fe27a4c..001843d41135 100644 --- a/net/ipv4/geneve.c +++ b/net/ipv4/geneve.c @@ -60,11 +60,6 @@ struct geneve_net { static int geneve_net_id; -static inline struct genevehdr *geneve_hdr(const struct sk_buff *skb) -{ - return (struct genevehdr *)(udp_hdr(skb) + 1); -} - static struct geneve_sock *geneve_find_sock(struct net *net, sa_family_t family, __be16 port) { diff --git a/net/openvswitch/vport-geneve.c b/net/openvswitch/vport-geneve.c index bf02fd5808c9..208c576bd1b6 100644 --- a/net/openvswitch/vport-geneve.c +++ b/net/openvswitch/vport-geneve.c @@ -46,11 +46,6 @@ static inline struct geneve_port *geneve_vport(const struct vport *vport) return vport_priv(vport); } -static inline struct genevehdr *geneve_hdr(const struct sk_buff *skb) -{ - return (struct genevehdr *)(udp_hdr(skb) + 1); -} - /* Convert 64 bit tunnel ID to 24 bit VNI. */ static void tunnel_id_to_vni(__be64 tun_id, __u8 *vni) { |