提交 1ff0dc94 编写于 作者: E Eric Dumazet 提交者: David S. Miller

net: validate_xmit_vlan() is static

Marking this as static allows compiler to inline it.
Signed-off-by: NEric Dumazet <edumazet@google.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 79952bca
......@@ -2645,7 +2645,8 @@ struct sk_buff *dev_hard_start_xmit(struct sk_buff *first, struct net_device *de
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) &&
!vlan_hw_offload_capable(features, skb->vlan_proto)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册