Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7275793imu; Wed, 14 Nov 2018 14:41:39 -0800 (PST) X-Google-Smtp-Source: AJdET5dVsdWg3HZQdVGkRv8dNAxo6dmYVTe5Y6ZzOjgyx2BG18hSNU+76kzsM94tEA0e0WYW0d9T X-Received: by 2002:a17:902:e01:: with SMTP id 1-v6mr3615737plw.251.1542235299815; Wed, 14 Nov 2018 14:41:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542235299; cv=none; d=google.com; s=arc-20160816; b=zUJPbQXAkIVZhUlPrM668PAXz+jc0QQH3DcOwHUEBERQkzJMo2HPo9cQHK6dJn6bdn sE650PaKN9V2HG72NTG0jIvJ22w0rt1WQcW+gfQ1YoT5nY0n77wR4oMonJMf1cHlKfRS Bdd+POb4W1GXCj0oNK6q86iD/Z8aFfiVQNS6Jc59kKTlceCqyu6EROvxmLD9Uuv08Xkl Q9nqMJ/Hd0bW4jPNM8NmSWNpsoDmunf9OtOEE8JirNaMjGeLrKHSv7jNTZ3sZzTsnjWW qFWz3+3Z0dXsYxdOqLtzYA9VsaoKkcNlR6jqoQniy+eZxzr211AaQU6epJJEqewz/vcM Ey2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=b/bV2cj06BxiEBh6jUphRkeiSeoARMC2dimD22V4bQA=; b=Ue0oSpTAve/EEZnGLD5g3SzGZokkDLA4nz0C/HMbXbL+d1sQ4UTzNAtPxNirnDZ31n Q0eAVTYViU/pKN/b75mWnRThtLwCG9sOiHvlJ1s+7Yx/uLw8UiaGD9oAEdLY6jB6cd2x u4jR+AfcTEbeng+prJGaR9SA9gheInZF7jDH7HAHtsxmWLiEfqvyFzCQngB8UKlAKhoL iDxCAzACOel90/DCuom6GW5fxVwBA/2q3qARWEPjz78xIe+dzoAb5Tixs4lmTluDGA7c Nt/NMqt1b6C7vVE/p+rZc2TxCD8bXCVXX2WUeV25xxjjYQe2oMYfAo30qdxAsmX+CvrT fLTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=X4A1QHkl; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 91-v6si26092818plc.409.2018.11.14.14.41.25; Wed, 14 Nov 2018 14:41:39 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=X4A1QHkl; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388007AbeKOIp7 (ORCPT + 99 others); Thu, 15 Nov 2018 03:45:59 -0500 Received: from mail.kernel.org ([198.145.29.99]:34392 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729007AbeKOI1Z (ORCPT ); Thu, 15 Nov 2018 03:27:25 -0500 Received: from sasha-vm.mshome.net (unknown [64.114.255.114]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 967B522524; Wed, 14 Nov 2018 22:22:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1542234142; bh=GzrsNBUu6/jXZ9t/QWeSac0x4HAkNQNWrJn7JtVbcIc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=X4A1QHklsfDj7lVnAlyhHnDDPgl3X+7DaQB0ZnpFQfAcHxvZKC/C3ullGkjMEPGJm /EkJQfkQZAwl3loXajA7/J4IxXBctn5p//Y33271HXmBGPQgxo2ot9kVUq30ehx++S HQsonV/Rout6nw9+3bhTCrsXcy1hlUCo/MBqfOiw= From: Sasha Levin To: stable@vger.kernel.org, linux-kernel@vger.kernel.org Cc: =?UTF-8?q?Micha=C5=82=20Miros=C5=82aw?= , "David S . Miller" , Sasha Levin Subject: [PATCH AUTOSEL 4.19 59/73] ibmvnic: fix accelerated VLAN handling Date: Wed, 14 Nov 2018 17:21:53 -0500 Message-Id: <20181114222207.98701-59-sashal@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181114222207.98701-1-sashal@kernel.org> References: <20181114222207.98701-1-sashal@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Michał Mirosław [ Upstream commit e84b47941e15e6666afb8ee8b21d1c3fc1a013af ] Don't request tag insertion when it isn't present in outgoing skb. Signed-off-by: Michał Mirosław Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/ibm/ibmvnic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/ibm/ibmvnic.c b/drivers/net/ethernet/ibm/ibmvnic.c index 699ef942b615..7661064c815b 100644 --- a/drivers/net/ethernet/ibm/ibmvnic.c +++ b/drivers/net/ethernet/ibm/ibmvnic.c @@ -1545,7 +1545,7 @@ static int ibmvnic_xmit(struct sk_buff *skb, struct net_device *netdev) tx_crq.v1.sge_len = cpu_to_be32(skb->len); tx_crq.v1.ioba = cpu_to_be64(data_dma_addr); - if (adapter->vlan_header_insertion) { + if (adapter->vlan_header_insertion && skb_vlan_tag_present(skb)) { tx_crq.v1.flags2 |= IBMVNIC_TX_VLAN_INSERT; tx_crq.v1.vlan_id = cpu_to_be16(skb->vlan_tci); } -- 2.17.1