Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp979534ybd; Wed, 26 Jun 2019 09:06:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqwUXcc+AO+v4PoWKkY/58WwtqUvbFC5JOL/n+LnJkiv1s3CUbF/rckMZ2uXmGPygrk78/v9 X-Received: by 2002:a17:90a:8c0c:: with SMTP id a12mr5639823pjo.67.1561565169924; Wed, 26 Jun 2019 09:06:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561565169; cv=none; d=google.com; s=arc-20160816; b=CAVBiiV50iNzdLDJSfT1kjl0TjHI+JtvX+y7bqM+Z7nLcbc4Wmgjedk2Z0iT2nJ88D z4e1lIH6384Epk8vRRWymYjbnEkzgI0C1oDKg6QK/hjcuO/qQ4JvUWKgv7tmLk4A5FQE kyDZrI5roZyi1fhpZgxmj+9Gax2RRLT48qR912sj1jy97osp8Seau+JLfb/dWVD1q0iu 3g+2F50Nse9Gv8nU/x1V9Fo1P8P6dJsztF1rlvhOpPnM5CoGyH0MvR7unZ1F6ISstiK3 njTtb7pFSuxTrbGoslORD76HQmmwULl1IabU6VKQW6Vp+hsnzhFEZElPePrEvhy+AfQy Fu+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=KwBIokup/b6BGWz70bUxe8ApI5O+kj+KuGGVJCi2dLs=; b=wBnhY63kzk/iheFa/uloqamjvUIIRv4Z7rHht7G4y3qpi0IIyP78zHUjn53e3EoQgC B/kvdhYIn3ssXQNoDHbO+oeoDR3JJGLB8OCHvVEiv7pSvx6fBr7S9KASuQJU6PLeFlkV nb0ma3vbbvrdz5C0TjBupPxoRry7IyKDkH+DE6weHtex5Ct7KPuhVhEVbqiAYt4qwGzr oS1Mr4Zx4kdiodviR673Mk70WH8QcF2/NI5dUe55JFI3DDQTnU7nd9Ee/yK6dj94WInd EhHFPqB/JVOSgB92JuXfuPPgl/4WUDVTGu5y3afv44Yd5eDATQVSHw8c9wlUV0JRKagn 5S6Q== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y10si3640337plp.117.2019.06.26.09.05.52; Wed, 26 Jun 2019 09:06:09 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726549AbfFZQEc (ORCPT + 99 others); Wed, 26 Jun 2019 12:04:32 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:54374 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725958AbfFZQEb (ORCPT ); Wed, 26 Jun 2019 12:04:31 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 64C8DDA4DBBAD2CF71A4; Thu, 27 Jun 2019 00:04:11 +0800 (CST) Received: from localhost (10.133.213.239) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.439.0; Thu, 27 Jun 2019 00:04:03 +0800 From: YueHaibing To: , , , , , , , , , , CC: , , YueHaibing Subject: [PATCH] team: Always enable vlan tx offload Date: Thu, 27 Jun 2019 00:03:39 +0800 Message-ID: <20190626160339.35152-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 In-Reply-To: <20190624135007.GA17673@nanopsycho> References: <20190624135007.GA17673@nanopsycho> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.133.213.239] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We should rather have vlan_tci filled all the way down to the transmitting netdevice and let it do the hw/sw vlan implementation. Suggested-by: Jiri Pirko Signed-off-by: YueHaibing --- drivers/net/team/team.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/team/team.c b/drivers/net/team/team.c index b48006e7fa2f..a8bb25341bed 100644 --- a/drivers/net/team/team.c +++ b/drivers/net/team/team.c @@ -2128,12 +2128,12 @@ static void team_setup(struct net_device *dev) dev->features |= NETIF_F_NETNS_LOCAL; dev->hw_features = TEAM_VLAN_FEATURES | - NETIF_F_HW_VLAN_CTAG_TX | NETIF_F_HW_VLAN_CTAG_RX | NETIF_F_HW_VLAN_CTAG_FILTER; dev->hw_features |= NETIF_F_GSO_ENCAP_ALL | NETIF_F_GSO_UDP_L4; dev->features |= dev->hw_features; + dev->features |= NETIF_F_HW_VLAN_CTAG_TX | NETIF_F_HW_VLAN_STAG_TX; } static int team_newlink(struct net *src_net, struct net_device *dev, -- 2.20.1