netfilter: bridge: move nf_bridge_update_protocol to where its used
authorFlorian Westphal <fw@strlen.de>
Wed, 4 Mar 2015 23:52:34 +0000 (00:52 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 9 Mar 2015 12:21:31 +0000 (13:21 +0100)
no need to keep it in a header file.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/linux/netfilter_bridge.h
net/bridge/br_netfilter.c

index 332ef8ab37e9c61a0e780aff9fc551cad54cb301..dd580a9a1add77f69fc94258eba91e2609b23692 100644 (file)
@@ -36,14 +36,6 @@ static inline unsigned int nf_bridge_encap_header_len(const struct sk_buff *skb)
        }
 }
 
-static inline void nf_bridge_update_protocol(struct sk_buff *skb)
-{
-       if (skb->nf_bridge->mask & BRNF_8021Q)
-               skb->protocol = htons(ETH_P_8021Q);
-       else if (skb->nf_bridge->mask & BRNF_PPPoE)
-               skb->protocol = htons(ETH_P_PPP_SES);
-}
-
 static inline unsigned int nf_bridge_mtu_reduction(const struct sk_buff *skb)
 {
        if (unlikely(skb->nf_bridge->mask & BRNF_PPPoE))
index e5479112c4a3daaaa139319ec1a0407f142a614b..5b3bceb3ee626c3b9156a9ca2a880c0473e60831 100644 (file)
@@ -239,6 +239,14 @@ drop:
        return -1;
 }
 
+static void nf_bridge_update_protocol(struct sk_buff *skb)
+{
+       if (skb->nf_bridge->mask & BRNF_8021Q)
+               skb->protocol = htons(ETH_P_8021Q);
+       else if (skb->nf_bridge->mask & BRNF_PPPoE)
+               skb->protocol = htons(ETH_P_PPP_SES);
+}
+
 /* PF_BRIDGE/PRE_ROUTING *********************************************/
 /* Undo the changes made for ip6tables PREROUTING and continue the
  * bridge PRE_ROUTING hook. */