summaryrefslogtreecommitdiff
path: root/include/net
diff options
context:
space:
mode:
authorJiri Pirko <jiri@resnulli.us>2015-05-12 12:56:07 (GMT)
committerDavid S. Miller <davem@davemloft.net>2015-05-13 19:19:45 (GMT)
commit1bd758eb1cab2fa5b71a23f9e5d3c8076f4ed650 (patch)
tree86862ae2e7637daafe814df8fb9f1169a732a282 /include/net
parent212da1fa60a822f5a7f20d52d11524dadd192a91 (diff)
downloadlinux-1bd758eb1cab2fa5b71a23f9e5d3c8076f4ed650.tar.xz
net: change name of flow_dissector header to match the .c file name
add couple of empty lines on the way. Signed-off-by: Jiri Pirko <jiri@resnulli.us> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/flow_dissector.h (renamed from include/net/flow_keys.h)15
-rw-r--r--include/net/ip.h2
-rw-r--r--include/net/ipv6.h2
3 files changed, 13 insertions, 6 deletions
diff --git a/include/net/flow_keys.h b/include/net/flow_dissector.h
index 6d6ef62..5e99a7b 100644
--- a/include/net/flow_keys.h
+++ b/include/net/flow_dissector.h
@@ -1,5 +1,5 @@
-#ifndef _NET_FLOW_KEYS_H
-#define _NET_FLOW_KEYS_H
+#ifndef _NET_FLOW_DISSECTOR_H
+#define _NET_FLOW_DISSECTOR_H
/* struct flow_keys:
* @src: source ip address in case of IPv4
@@ -29,17 +29,24 @@ struct flow_keys {
bool __skb_flow_dissect(const struct sk_buff *skb, struct flow_keys *flow,
void *data, __be16 proto, int nhoff, int hlen);
-static inline bool skb_flow_dissect(const struct sk_buff *skb, struct flow_keys *flow)
+
+static inline bool skb_flow_dissect(const struct sk_buff *skb,
+ struct flow_keys *flow)
{
return __skb_flow_dissect(skb, flow, NULL, 0, 0, 0);
}
+
__be32 __skb_flow_get_ports(const struct sk_buff *skb, int thoff, u8 ip_proto,
void *data, int hlen_proto);
-static inline __be32 skb_flow_get_ports(const struct sk_buff *skb, int thoff, u8 ip_proto)
+
+static inline __be32 skb_flow_get_ports(const struct sk_buff *skb,
+ int thoff, u8 ip_proto)
{
return __skb_flow_get_ports(skb, thoff, ip_proto, NULL, 0);
}
+
u32 flow_hash_from_keys(struct flow_keys *keys);
+
unsigned int flow_get_hlen(const unsigned char *data, unsigned int max_len,
__be16 protocol);
diff --git a/include/net/ip.h b/include/net/ip.h
index d14af7e..562eb65 100644
--- a/include/net/ip.h
+++ b/include/net/ip.h
@@ -31,7 +31,7 @@
#include <net/route.h>
#include <net/snmp.h>
#include <net/flow.h>
-#include <net/flow_keys.h>
+#include <net/flow_dissector.h>
struct sock;
diff --git a/include/net/ipv6.h b/include/net/ipv6.h
index 53d25ef..9932b86 100644
--- a/include/net/ipv6.h
+++ b/include/net/ipv6.h
@@ -19,7 +19,7 @@
#include <net/if_inet6.h>
#include <net/ndisc.h>
#include <net/flow.h>
-#include <net/flow_keys.h>
+#include <net/flow_dissector.h>
#include <net/snmp.h>
#define SIN6_LEN_RFC2133 24