Skip to contentSkip to conversation

net/mlx4_en: Don't allow aRFS for encapsulated packets

PATCH Applied Tariq Toukan 2 participants 2 messages Sep 23, 2021

Subsystems (4)
lore
Share & tools
lore

Tariq Toukan

author maintainer
#0 lore raw

PATCH 1/1 net/mlx4_en: Don't allow aRFS for encapsulated packets

From: Aya Levin <[email protected]>

Driver doesn't support aRFS for encapsulated packets, return early error in such a case.

Fixes 1eb8c695bda9 ("net/mlx4_en: Add accelerated RFS support")
---
 drivers/net/ethernet/mellanox/mlx4/en_netdev.c | 3 +++
 1 file changed, 3 insertions(+)

Hi,
Please queue to -stable.

Regards,
Tariq

drivers/net/ethernet/mellanox/mlx4/en_netdev.c +3 -0
index 35154635ec3a..8af7f2827322 100644
@@ -372,6 +372,9 @@ mlx4_en_filter_rfs(struct net_device *net_dev, const struct sk_buff *skb,
 	int nhoff = skb_network_offset(skb);
 	int ret = 0;
 
+	if (skb->encapsulation)
+		return -EPROTONOSUPPORT;
+
 	if (skb->protocol != htons(ETH_P_IP))
 		return -EPROTONOSUPPORT;
 
Signature · 1 line
2.21.0
#1 lore raw
This patch was applied to netdev/net.git (refs/heads/master):

Hello:

This patch was applied to netdev/net.git (refs/heads/master):

Quoted 10 lines · On Thu, 23 Sep 2021 09:51:45 +0300 you wrote:

From: Aya Levin <[email protected]>

Driver doesn't support aRFS for encapsulated packets, return early error in such a case.

Fixes 1eb8c695bda9 ("net/mlx4_en: Add accelerated RFS support")

[...]

Here is the summary with links:
- [net] net/mlx4_en: Don't allow aRFS for encapsulated packets
https://git.kernel.org/netdev/net/c/fdbccea419dc

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html