Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp331254pxb; Wed, 13 Jan 2021 04:59:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJyw9MLyvI79BHgVDiNJCb2eHhbaPhh91VDFWGGAVlALgHY5e8Oj7Km9kY27nCVkkQF1VAg2 X-Received: by 2002:a05:6402:b2f:: with SMTP id bo15mr1701884edb.220.1610542772599; Wed, 13 Jan 2021 04:59:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610542772; cv=none; d=google.com; s=arc-20160816; b=WqfNSQNup7kmUftWjvy5jUPPuVChMHaDKnPc4WvtD6UJaKEzWP8keydXKqE9poJGqN PWJU400JtmzqdQREknkgVpCLy8YJEHgr88Vhd/10nd2/qKbScrdBi3pI9/TniH0ua8pm mTsZ5F5fj3yhjCkrWstXSDsLEbo52MRx0Uc2OW4z3FcF27ep5rAAvUoZ2uUYnCB1aTMF IAmEHuCaCfLhnfUMn1bLzQYfpdu0KMMYTnYggQ7SkGMMURAVOCEjRrVSpjnnS/XEr3nb xhQe+NybOmnoIfU+AmuRx6Aa8kJu3SMc84lZGw5inD481Zmv6X68cshuVwKF9LgndoRT zJtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=pUlrLF/OgGU/xO8VFw8jFFlN5UAM+Qxwd99Vq9WNgcw=; b=fM1al7IkM/6T5QfzjQTt25fgOH6SVAAwL5xWcNkgltWubJbrfMRIuY7QleF3MqZ1kN bmbawp3lIQc7XC3J+6VnS5kgeMkEa7Yuc6yCKo1xJEGcIqzGrIgcLZnfO1AjaBrkcqJ5 flCMIvNqIL0LMKKa8eQW4aHPZ6KzuzREVIxABuWKwvIJXaUIVjy+vtlblPjinKdjDi23 HimKWqznoesA3184GuWKggB0my8nHaU4NaqwquovrLj8bUEa32B76lvkuJlPRHjsOoPY PmuDDAQKihKSrPo5QWWZvurwA0MPvgYofmB1vEzAT1kNQAt4VRPHG/ij01nIZdXTKMZg iw8g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j15si1021097edv.474.2021.01.13.04.59.09; Wed, 13 Jan 2021 04:59:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727221AbhAMMzv (ORCPT + 99 others); Wed, 13 Jan 2021 07:55:51 -0500 Received: from mail.savoirfairelinux.com ([208.88.110.44]:39112 "EHLO mail.savoirfairelinux.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727179AbhAMMzu (ORCPT ); Wed, 13 Jan 2021 07:55:50 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.savoirfairelinux.com (Postfix) with ESMTP id 52CB19C0DD1; Wed, 13 Jan 2021 07:45:40 -0500 (EST) Received: from mail.savoirfairelinux.com ([127.0.0.1]) by localhost (mail.savoirfairelinux.com [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id NpDf8A8lalEm; Wed, 13 Jan 2021 07:45:40 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by mail.savoirfairelinux.com (Postfix) with ESMTP id EBFBC9C0DCD; Wed, 13 Jan 2021 07:45:39 -0500 (EST) X-Virus-Scanned: amavisd-new at mail.savoirfairelinux.com Received: from mail.savoirfairelinux.com ([127.0.0.1]) by localhost (mail.savoirfairelinux.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id AltUp2Rc3SPk; Wed, 13 Jan 2021 07:45:39 -0500 (EST) Received: from gdo-desktop.home (pop.92-184-98-96.mobile.abo.orange.fr [92.184.98.96]) by mail.savoirfairelinux.com (Postfix) with ESMTPSA id EFEAD9C0DCC; Wed, 13 Jan 2021 07:45:37 -0500 (EST) From: Gilles DOFFE To: netdev@vger.kernel.org Cc: Woojung Huh , UNGLinuxDriver@microchip.com, Andrew Lunn , Vivien Didelot , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Jakub Kicinski , linux-kernel@vger.kernel.org Subject: [PATCH net 3/6] net: dsa: ksz: insert tag on ks8795 ingress packets Date: Wed, 13 Jan 2021 13:45:19 +0100 Message-Id: X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org If 802.1q VLAN tag is removed from egress traffic, ingress traffic should by logic be tagged. Signed-off-by: Gilles DOFFE --- drivers/net/dsa/microchip/ksz8795.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/dsa/microchip/ksz8795.c b/drivers/net/dsa/microc= hip/ksz8795.c index 4b060503b2e8..193f03ef9160 100644 --- a/drivers/net/dsa/microchip/ksz8795.c +++ b/drivers/net/dsa/microchip/ksz8795.c @@ -874,6 +874,7 @@ static void ksz8795_port_vlan_add(struct dsa_switch *= ds, int port, } =20 ksz_port_cfg(dev, port, P_TAG_CTRL, PORT_REMOVE_TAG, untagged); + ksz_port_cfg(dev, port, P_TAG_CTRL, PORT_INSERT_TAG, !untagged); } =20 static int ksz8795_port_vlan_del(struct dsa_switch *ds, int port, --=20 2.25.1