diff options
author | Eric Dumazet <edumazet@google.com> | 2014-10-06 14:26:27 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-10-06 18:17:17 -0400 |
commit | 1ff0dc9499b25d016777f9b8d3ee486fd588ba59 (patch) | |
tree | 352d8d4b156c5fae55bbbe9bfd093be175878bee /net/core | |
parent | 79952bca8619b62c9b1a118238ca16ab41be7760 (diff) |
net: validate_xmit_vlan() is static
Marking this as static allows compiler to inline it.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-rw-r--r-- | net/core/dev.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index c1a4de275576..a63b8c43c1b6 100644 --- a/net/core/dev.c +++ b/net/core/dev.c | |||
@@ -2645,7 +2645,8 @@ out: | |||
2645 | return skb; | 2645 | return skb; |
2646 | } | 2646 | } |
2647 | 2647 | ||
2648 | struct sk_buff *validate_xmit_vlan(struct sk_buff *skb, netdev_features_t features) | 2648 | static struct sk_buff *validate_xmit_vlan(struct sk_buff *skb, |
2649 | netdev_features_t features) | ||
2649 | { | 2650 | { |
2650 | if (vlan_tx_tag_present(skb) && | 2651 | if (vlan_tx_tag_present(skb) && |
2651 | !vlan_hw_offload_capable(features, skb->vlan_proto)) { | 2652 | !vlan_hw_offload_capable(features, skb->vlan_proto)) { |