From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,URIBL_SBL,URIBL_SBL_A,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0A841C06513 for ; Tue, 2 Jul 2019 08:07:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D785621479 for ; Tue, 2 Jul 2019 08:07:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1562054872; bh=tDnzVbDbQPPcx+I8iy29VRml9ECUTqMYGj0QLmWN2oQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=cyS9euYqHVv7I7eUspeEwrI1hc3ZBs16xvFE/2NT6eYVlJKfjkMk0IazZS5mPNTgI dyVVAD6+bjq2rvMSv6MJrLC/lXHhLmceGY7npV+UDPg2pkSHzg5+Wdau9Gs0QSi4+z uyL2f0mzb7CQ4gt0HfrFqlSI81Q5pbjdC43W+U7s= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727967AbfGBIHw (ORCPT ); Tue, 2 Jul 2019 04:07:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:55202 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727892AbfGBIHs (ORCPT ); Tue, 2 Jul 2019 04:07:48 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EA9F22184C; Tue, 2 Jul 2019 08:07:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1562054868; bh=tDnzVbDbQPPcx+I8iy29VRml9ECUTqMYGj0QLmWN2oQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=B2aFo35bvpsYjW04OXYZQkCH7G8q4RtPjzsRAhcDjCmU5K2NFnDAlCyvzs0rAccCL Y14XytPmbccPqdVtWW/loWsus24E93nxqooJoKCQbN4Y7zRBH78PiVmd7yhvQ+k7k6 OIYKyYirV1kkM0q2NpmhdxIKTaeXrawxmyYvJGg8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jiri Pirko , YueHaibing , "David S. Miller" Subject: [PATCH 4.19 58/72] team: Always enable vlan tx offload Date: Tue, 2 Jul 2019 10:01:59 +0200 Message-Id: <20190702080127.615793762@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190702080124.564652899@linuxfoundation.org> References: <20190702080124.564652899@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: YueHaibing [ Upstream commit ee4297420d56a0033a8593e80b33fcc93fda8509 ] 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 Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/team/team.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/net/team/team.c +++ b/drivers/net/team/team.c @@ -2139,12 +2139,12 @@ static void team_setup(struct net_device 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,