summaryrefslogtreecommitdiffstats
path: root/kernel/ip_set_hash_netport.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/ip_set_hash_netport.c')
-rw-r--r--kernel/ip_set_hash_netport.c29
1 files changed, 4 insertions, 25 deletions
diff --git a/kernel/ip_set_hash_netport.c b/kernel/ip_set_hash_netport.c
index b0251f3..39080f9 100644
--- a/kernel/ip_set_hash_netport.c
+++ b/kernel/ip_set_hash_netport.c
@@ -87,16 +87,6 @@ hash_netport4_data_copy(struct hash_netport4_elem *dst,
}
static inline void
-hash_netport4_data_swap(struct hash_netport4_elem *dst,
- struct hash_netport4_elem *src)
-{
- swap(dst->ip, src->ip);
- swap(dst->port, src->port);
- swap(dst->proto, src->proto);
- swap(dst->cidr, src->cidr);
-}
-
-static inline void
hash_netport4_data_netmask(struct hash_netport4_elem *elem, u8 cidr)
{
elem->ip &= ip_set_netmask(cidr);
@@ -109,7 +99,7 @@ hash_netport4_data_zero_out(struct hash_netport4_elem *elem)
elem->proto = 0;
}
-static inline bool
+static bool
hash_netport4_data_list(struct sk_buff *skb,
const struct hash_netport4_elem *data)
{
@@ -123,7 +113,7 @@ nla_put_failure:
return 1;
}
-static inline bool
+static bool
hash_netport4_data_tlist(struct sk_buff *skb,
const struct hash_netport4_elem *data)
{
@@ -325,17 +315,6 @@ hash_netport6_data_copy(struct hash_netport6_elem *dst,
}
static inline void
-hash_netport6_data_swap(struct hash_netport6_elem *dst,
- struct hash_netport6_elem *src)
-{
- struct hash_netport6_elem tmp;
-
- memcpy(&tmp, dst, sizeof(tmp));
- memcpy(dst, src, sizeof(tmp));
- memcpy(src, &tmp, sizeof(tmp));
-}
-
-static inline void
hash_netport6_data_zero_out(struct hash_netport6_elem *elem)
{
elem->proto = 0;
@@ -357,7 +336,7 @@ hash_netport6_data_netmask(struct hash_netport6_elem *elem, u8 cidr)
elem->cidr = cidr;
}
-static inline bool
+static bool
hash_netport6_data_list(struct sk_buff *skb,
const struct hash_netport6_elem *data)
{
@@ -371,7 +350,7 @@ nla_put_failure:
return 1;
}
-static inline bool
+static bool
hash_netport6_data_tlist(struct sk_buff *skb,
const struct hash_netport6_elem *data)
{