nfp: flower: include geneve as supported offload tunnel type
authorJohn Hurley <john.hurley@netronome.com>
Wed, 7 Nov 2018 18:32:50 +0000 (18:32 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Nov 2018 07:00:23 +0000 (23:00 -0800)
Offload of geneve decap rules is supported in NFP. Include geneve in the
check for supported types.

Signed-off-by: John Hurley <john.hurley@netronome.com>
Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/flower/tunnel_conf.c

index fb6442d820b56a148985d9f36d30b7a4d745eca8..5d641d7dabff37724ed3d84428827f17a636ad5b 100644 (file)
@@ -190,6 +190,8 @@ static bool nfp_tun_is_netdev_to_offload(struct net_device *netdev)
                return true;
        if (netif_is_vxlan(netdev))
                return true;
+       if (netif_is_geneve(netdev))
+               return true;
 
        return false;
 }