]> Git Repo - linux.git/commitdiff
nfp: flower: netdev offload check for ip6gretap
authorDanie du Toit <[email protected]>
Thu, 17 Feb 2022 12:48:20 +0000 (14:48 +0200)
committerJakub Kicinski <[email protected]>
Thu, 17 Feb 2022 17:50:45 +0000 (09:50 -0800)
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 <[email protected]>
Signed-off-by: Louis Peens <[email protected]>
Signed-off-by: Simon Horman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
drivers/net/ethernet/netronome/nfp/flower/cmsg.h

index 784292b162907001899727cf413726360ce82655..1543e47456d57ec28837b7b1ba3331a5df57590c 100644 (file)
@@ -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;
 }
This page took 0.05729 seconds and 4 git commands to generate.