mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-17 22:05:08 +00:00
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>
This commit is contained in:
parent
79952bca86
commit
1ff0dc9499
@ -2645,7 +2645,8 @@ out:
|
||||
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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user