Skip to contentSkip to conversation

net: mvpp2: cls: Add missing NETIF_F_NTUPLE flag

PATCH Applied Maxime Chevallier 2 participants 2 messages May 13, 2019

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 net: mvpp2: cls: Add missing NETIF_F_NTUPLE flag

Now that the mvpp2 driver supports classification offloading, we must add the NETIF_F_NTUPLE to the features list.

Since the current code doesn't allow disabling the feature, we don't set the flag in dev->hw_features.

Fixes 90b509b39ac9 ("net: mvpp2: cls: Add Classification offload support")

---
V2: Rebased on latest -net, added Jakub's Ack, gave more details in the
commit log about not adding the flag in hw_features.

 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c +3 -1
index 56d43d9b43ef..d38952eb7aa9 100644
@@ -5058,8 +5058,10 @@ static int mvpp2_port_probe(struct platform_device *pdev,
 	dev->hw_features |= features | NETIF_F_RXCSUM | NETIF_F_GRO |
 			    NETIF_F_HW_VLAN_CTAG_FILTER;
 
-	if (mvpp22_rss_is_supported())
+	if (mvpp22_rss_is_supported()) {
 		dev->hw_features |= NETIF_F_RXHASH;
+		dev->features |= NETIF_F_NTUPLE;
+	}
 
 	if (port->pool_long->id == MVPP2_BM_JUMBO && port->id != 0) {
 		dev->features &= ~(NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM);
Signature · 1 line
2.20.1
maintainer Applied
#1 lore raw

From: Maxime Chevallier <[email protected]>
Date: Mon, 13 May 2019 09:30:33 +0200

Quoted 6 lines

Now that the mvpp2 driver supports classification offloading, we must add the NETIF_F_NTUPLE to the features list.

Since the current code doesn't allow disabling the feature, we don't set the flag in dev->hw_features.

Quoted 7 lines
Fixes 90b509b39ac9 ("net: mvpp2: cls: Add Classification offload support")

---
V2: Rebased on latest -net, added Jakub's Ack, gave more details in the
commit log about not adding the flag in hw_features.

Applied, thanks.