* [PATCH net] net/mlx4_en: Don't allow aRFS for encapsulated packets
@ 2021-09-23 6:51 Tariq Toukan
2021-09-23 12:20 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: Tariq Toukan @ 2021-09-23 6:51 UTC (permalink / raw)
To: David S. Miller, Jakub Kicinski
Cc: netdev, Saeed Mahameed, Moshe Shemesh, Aya Levin, Tariq Toukan
From: Aya Levin <ayal@nvidia.com>
Driver doesn't support aRFS for encapsulated packets, return early error
in such a case.
Fixes: 1eb8c695bda9 ("net/mlx4_en: Add accelerated RFS support")
Signed-off-by: Aya Levin <ayal@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
---
drivers/net/ethernet/mellanox/mlx4/en_netdev.c | 3 +++
1 file changed, 3 insertions(+)
Hi,
Please queue to -stable.
Regards,
Tariq
diff --git a/drivers/net/ethernet/mellanox/mlx4/en_netdev.c b/drivers/net/ethernet/mellanox/mlx4/en_netdev.c
index 35154635ec3a..8af7f2827322 100644
--- a/drivers/net/ethernet/mellanox/mlx4/en_netdev.c
+++ b/drivers/net/ethernet/mellanox/mlx4/en_netdev.c
@@ -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;
--
2.21.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net] net/mlx4_en: Don't allow aRFS for encapsulated packets
2021-09-23 6:51 [PATCH net] net/mlx4_en: Don't allow aRFS for encapsulated packets Tariq Toukan
@ 2021-09-23 12:20 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2021-09-23 12:20 UTC (permalink / raw)
To: Tariq Toukan; +Cc: davem, kuba, netdev, saeedm, moshe, ayal
Hello:
This patch was applied to netdev/net.git (refs/heads/master):
On Thu, 23 Sep 2021 09:51:45 +0300 you wrote:
> From: Aya Levin <ayal@nvidia.com>
>
> Driver doesn't support aRFS for encapsulated packets, return early error
> in such a case.
>
> Fixes: 1eb8c695bda9 ("net/mlx4_en: Add accelerated RFS support")
> Signed-off-by: Aya Levin <ayal@nvidia.com>
> Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
>
> [...]
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-09-23 12:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-23 6:51 [PATCH net] net/mlx4_en: Don't allow aRFS for encapsulated packets Tariq Toukan
2021-09-23 12:20 ` patchwork-bot+netdevbpf
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.