Skip to content

Commit 1ff0dc9

Browse files
edumazetdavem330
authored andcommitted
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>
1 parent 79952bc commit 1ff0dc9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎net/core/dev.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2645,7 +2645,8 @@ struct sk_buff *dev_hard_start_xmit(struct sk_buff *first, struct net_device *de
26452645
return skb;
26462646
}
26472647

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)
26492650
{
26502651
if (vlan_tx_tag_present(skb) &&
26512652
!vlan_hw_offload_capable(features, skb->vlan_proto)) {

0 commit comments

Comments
 (0)