Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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)) {