diff options
author | Michał Mirosław <mirq-linux@rere.qmqm.pl> | 2018-11-07 11:50:52 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-11-08 01:36:21 -0500 |
commit | e84b47941e15e6666afb8ee8b21d1c3fc1a013af (patch) | |
tree | 2a3cbc83277218138ffcbc5b1c5b577e44c625cc /drivers/net | |
parent | b1870a6d3f398e869b4eb2a8297cc8a80899c80d (diff) |
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>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ethernet/ibm/ibmvnic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/ibm/ibmvnic.c b/drivers/net/ethernet/ibm/ibmvnic.c index 7893beffcc71..c9d5d0a7fbf1 100644 --- a/drivers/net/ethernet/ibm/ibmvnic.c +++ b/drivers/net/ethernet/ibm/ibmvnic.c | |||
@@ -1545,7 +1545,7 @@ static netdev_tx_t ibmvnic_xmit(struct sk_buff *skb, struct net_device *netdev) | |||
1545 | tx_crq.v1.sge_len = cpu_to_be32(skb->len); | 1545 | tx_crq.v1.sge_len = cpu_to_be32(skb->len); |
1546 | tx_crq.v1.ioba = cpu_to_be64(data_dma_addr); | 1546 | tx_crq.v1.ioba = cpu_to_be64(data_dma_addr); |
1547 | 1547 | ||
1548 | if (adapter->vlan_header_insertion) { | 1548 | if (adapter->vlan_header_insertion && skb_vlan_tag_present(skb)) { |
1549 | tx_crq.v1.flags2 |= IBMVNIC_TX_VLAN_INSERT; | 1549 | tx_crq.v1.flags2 |= IBMVNIC_TX_VLAN_INSERT; |
1550 | tx_crq.v1.vlan_id = cpu_to_be16(skb->vlan_tci); | 1550 | tx_crq.v1.vlan_id = cpu_to_be16(skb->vlan_tci); |
1551 | } | 1551 | } |