]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
net: move __skb_get_hash function declaration to flow_dissector.h
authorJiri Pirko <jiri@resnulli.us>
Tue, 12 May 2015 12:56:11 +0000 (14:56 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 May 2015 19:19:46 +0000 (15:19 -0400)
Since the definition of the function is in flow_dissector.c, it makes
sense to have the declaration in flow_dissector.h

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/skbuff.h
include/net/flow_dissector.h

index 17607ab9e7a278162b31d1472833361b0664d1e9..ae2d1b7769d879ea4ab16d9320a5c76227b83d5f 100644 (file)
@@ -918,7 +918,6 @@ skb_set_hash(struct sk_buff *skb, __u32 hash, enum pkt_hash_types type)
        skb->hash = hash;
 }
 
-void __skb_get_hash(struct sk_buff *skb);
 static inline __u32 skb_get_hash(struct sk_buff *skb)
 {
        if (!skb->l4_hash && !skb->sw_hash)
index 4570ccafe59d3b02fbecf3a91864908e94a0e8bd..e4ee761ca8c0140d45a654520e9280ad09466e1d 100644 (file)
@@ -46,6 +46,7 @@ static inline __be32 skb_flow_get_ports(const struct sk_buff *skb,
 }
 
 u32 flow_hash_from_keys(struct flow_keys *keys);
+void __skb_get_hash(struct sk_buff *skb);
 u32 skb_get_poff(const struct sk_buff *skb);
 u32 __skb_get_poff(const struct sk_buff *skb, void *data,
                   const struct flow_keys *keys, int hlen);