Commit 1ff0dc94 authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller

net: validate_xmit_vlan() is static

Marking this as static allows compiler to inline it.
Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 79952bca
...@@ -2645,7 +2645,8 @@ struct sk_buff *dev_hard_start_xmit(struct sk_buff *first, struct net_device *de ...@@ -2645,7 +2645,8 @@ struct sk_buff *dev_hard_start_xmit(struct sk_buff *first, struct net_device *de
return skb; return skb;
} }
struct sk_buff *validate_xmit_vlan(struct sk_buff *skb, netdev_features_t features) static struct sk_buff *validate_xmit_vlan(struct sk_buff *skb,
netdev_features_t features)
{ {
if (vlan_tx_tag_present(skb) && if (vlan_tx_tag_present(skb) &&
!vlan_hw_offload_capable(features, skb->vlan_proto)) { !vlan_hw_offload_capable(features, skb->vlan_proto)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment