[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <24e6e870cbf927a65a304e780a4ab64b0cb683c2.camel@siemens.com>
Date: Thu, 13 Jun 2024 13:14:53 +0000
From: "Sverdlin, Alexander" <alexander.sverdlin@...mens.com>
To: "rogerq@...nel.org" <rogerq@...nel.org>, "s-vadapalli@...com"
<s-vadapalli@...com>
CC: "andrew@...n.ch" <andrew@...n.ch>, "yuehaibing@...wei.com"
<yuehaibing@...wei.com>, "davem@...emloft.net" <davem@...emloft.net>,
"p-varis@...com" <p-varis@...com>, "linux-kernel@...r.kernel.org"
<linux-kernel@...r.kernel.org>, "edumazet@...gle.com" <edumazet@...gle.com>,
"pabeni@...hat.com" <pabeni@...hat.com>, "jiri@...nulli.us"
<jiri@...nulli.us>, "srk@...com" <srk@...com>, "vladimir.oltean@....com"
<vladimir.oltean@....com>, "hkallweit1@...il.com" <hkallweit1@...il.com>,
"horms@...nel.org" <horms@...nel.org>, "dan.carpenter@...aro.org"
<dan.carpenter@...aro.org>, "kuba@...nel.org" <kuba@...nel.org>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"linux-arm-kernel@...ts.infradead.org" <linux-arm-kernel@...ts.infradead.org>
Subject: Re: [PATCH net-next] net: ethernet: ti: am65-cpsw: Add priv-flag for
Switch VLAN Aware mode
Hello Siddharth,
On Thu, 2024-02-29 at 16:37 +0530, Siddharth Vadapalli wrote:
> > > The current implementation is:
> > >
> > > /* Control register */
> > > writel(AM65_CPSW_CTL_P0_ENABLE | AM65_CPSW_CTL_P0_TX_CRC_REMOVE |
> > > AM65_CPSW_CTL_VLAN_AWARE | AM65_CPSW_CTL_P0_RX_PAD,
> > > common->cpsw_base + AM65_CPSW_REG_CTL);
> > >
> > > which sets the "AM65_CPSW_CTL_VLAN_AWARE" bit by default.
...
> functionality. CPSW_VLAN_AWARE corresponding to the
> AM65_CPSW_CTL_VLAN_AWARE bit enables further packet processing:
> VLAN tag addition/removal/replacement
> which is a layer on top of the Software generated packets Egressing out
> of the Ethernet Switch ports, or Forwarded packets Egressing out of the
> Ethernet Switch ports. If the aforementioned modification is handled in
> Software for example and we don't want packets from Software or on the
> Forwarding path to be modified, then turning off the CPSW_VLAN_AWARE
> mode is necessary.
I think the question many had in mind and which is I believe still
remains unclear, what exactly AM65_CPSW_CTL_VLAN_AWARE asserted by
default is currently used for?
Is it NETIF_F_HW_VLAN_CTAG_FILTER or in other words
static const struct net_device_ops am65_cpsw_nuss_netdev_ops = {
...
.ndo_vlan_rx_add_vid = am65_cpsw_nuss_ndo_slave_add_vid,
.ndo_vlan_rx_kill_vid = am65_cpsw_nuss_ndo_slave_kill_vid,
?
--
Alexander Sverdlin
Siemens AG
www.siemens.com
Powered by blists - more mailing lists