netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net] nfp: flower: netdev offload check for ip6gretap
@ 2022-02-17 12:48 louis.peens
  2022-02-17 18:10 ` patchwork-bot+netdevbpf
  0 siblings, 1 reply; 2+ messages in thread
From: louis.peens @ 2022-02-17 12:48 UTC (permalink / raw)
  To: davem, kuba; +Cc: netdev, oss-drivers, Danie du Toit, Louis Peens, Simon Horman

From: Danie du Toit <danie.dutoit@corigine.com>

IPv6 GRE tunnels are not being offloaded, this is caused by a missing
netdev offload check. The functionality of IPv6 GRE tunnel offloading
was previously added but this check was not included. Adding the
ip6gretap check allows IPv6 GRE tunnels to be offloaded correctly.

Fixes: f7536ffb0986 ("nfp: flower: Allow ipv6gretap interface for offloading")
Signed-off-by: Danie du Toit <danie.dutoit@corigine.com>
Signed-off-by: Louis Peens <louis.peens@corigine.com>
Signed-off-by: Simon Horman <simon.horman@corigine.com>
---
 drivers/net/ethernet/netronome/nfp/flower/cmsg.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/net/ethernet/netronome/nfp/flower/cmsg.h b/drivers/net/ethernet/netronome/nfp/flower/cmsg.h
index 784292b16290..1543e47456d5 100644
--- a/drivers/net/ethernet/netronome/nfp/flower/cmsg.h
+++ b/drivers/net/ethernet/netronome/nfp/flower/cmsg.h
@@ -723,6 +723,8 @@ static inline bool nfp_fl_is_netdev_to_offload(struct net_device *netdev)
 		return true;
 	if (netif_is_gretap(netdev))
 		return true;
+	if (netif_is_ip6gretap(netdev))
+		return true;
 
 	return false;
 }
-- 
2.25.1


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

* Re: [PATCH net] nfp: flower: netdev offload check for ip6gretap
  2022-02-17 12:48 [PATCH net] nfp: flower: netdev offload check for ip6gretap louis.peens
@ 2022-02-17 18:10 ` patchwork-bot+netdevbpf
  0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2022-02-17 18:10 UTC (permalink / raw)
  To: Louis Peens; +Cc: davem, kuba, netdev, oss-drivers, danie.dutoit, simon.horman

Hello:

This patch was applied to netdev/net.git (master)
by Jakub Kicinski <kuba@kernel.org>:

On Thu, 17 Feb 2022 14:48:20 +0200 you wrote:
> From: Danie du Toit <danie.dutoit@corigine.com>
> 
> IPv6 GRE tunnels are not being offloaded, this is caused by a missing
> netdev offload check. The functionality of IPv6 GRE tunnel offloading
> was previously added but this check was not included. Adding the
> ip6gretap check allows IPv6 GRE tunnels to be offloaded correctly.
> 
> [...]

Here is the summary with links:
  - [net] nfp: flower: netdev offload check for ip6gretap
    https://git.kernel.org/netdev/net/c/7dbcda584eaa

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:[~2022-02-17 18:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-17 12:48 [PATCH net] nfp: flower: netdev offload check for ip6gretap louis.peens
2022-02-17 18:10 ` patchwork-bot+netdevbpf

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).