net/mlx4_en: Don't allow aRFS for encapsulated packets
[sfrench/cifs-2.6.git] / drivers / net / ethernet / mellanox / mlx4 / en_netdev.c
index 35154635ec3a1ecad3befe03a419ccdb1d6dead8..8af7f282732255659a1b4dc388a68acbf8ff5a2c 100644 (file)
@@ -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;