Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Eric Dumazet and committed by
David S. Miller
1ff0dc94 79952bca

+2 -1
+2 -1
net/core/dev.c
··· 2645 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 2651 if (vlan_tx_tag_present(skb) && 2651 2652 !vlan_hw_offload_capable(features, skb->vlan_proto)) {