netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next] net: stmmac: propagate feature flags to vlan
@ 2023-04-11 13:00 Corinna Vinschen
  2023-04-11 15:44 ` Simon Horman
                   ` (4 more replies)
  0 siblings, 5 replies; 14+ messages in thread
From: Corinna Vinschen @ 2023-04-11 13:00 UTC (permalink / raw)
  To: netdev, Giuseppe Cavallaro, alexandre.torgue, Jose Abreu

stmmac_dev_probe doesn't propagate feature flags to VLANs.  So features
like TX offloading don't correspond with the general features and it's
not possible to manipulate features via ethtool -K to affect VLANs.

Signed-off-by: Corinna Vinschen <vinschen@redhat.com>
---
 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
index e590b6fc4761..308d4ee12d41 100644
--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
@@ -7216,6 +7216,8 @@ int stmmac_dvr_probe(struct device *device,
 	if (priv->dma_cap.rssen && priv->plat->rss_en)
 		ndev->features |= NETIF_F_RXHASH;
 
+	ndev->vlan_features |= ndev->features;
+
 	/* MTU range: 46 - hw-specific max */
 	ndev->min_mtu = ETH_ZLEN - ETH_HLEN;
 	if (priv->plat->has_xgmac)
-- 
2.39.1


^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2023-06-22  8:20 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-11 13:00 [PATCH net-next] net: stmmac: propagate feature flags to vlan Corinna Vinschen
2023-04-11 15:44 ` Simon Horman
2023-04-11 22:36 ` Jacob Keller
2023-04-12 13:11 ` Corinna Vinschen
2023-04-12 14:45   ` Jakub Kicinski
2023-04-12 14:50     ` Corinna Vinschen
2023-04-13  4:15 ` Jakub Kicinski
2023-04-13 15:25   ` Corinna Vinschen
2023-04-13 16:00     ` Jakub Kicinski
2023-04-17 19:03       ` Corinna Vinschen
2023-04-17 19:11         ` Jakub Kicinski
2023-04-17 19:28           ` [PATCH v2 " Corinna Vinschen
2023-04-19  4:50             ` patchwork-bot+netdevbpf
2023-06-22  8:20 ` [PATCH " Oleksij Rempel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).