Skip to content

Commit e84b479

Browse files
osctobedavem330
authored andcommitted
ibmvnic: fix accelerated VLAN handling
Don't request tag insertion when it isn't present in outgoing skb. Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent b1870a6 commit e84b479

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/ibm/ibmvnic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1545,7 +1545,7 @@ static netdev_tx_t ibmvnic_xmit(struct sk_buff *skb, struct net_device *netdev)
15451545
tx_crq.v1.sge_len = cpu_to_be32(skb->len);
15461546
tx_crq.v1.ioba = cpu_to_be64(data_dma_addr);
15471547

1548-
if (adapter->vlan_header_insertion) {
1548+
if (adapter->vlan_header_insertion && skb_vlan_tag_present(skb)) {
15491549
tx_crq.v1.flags2 |= IBMVNIC_TX_VLAN_INSERT;
15501550
tx_crq.v1.vlan_id = cpu_to_be16(skb->vlan_tci);
15511551
}

0 commit comments

Comments
 (0)