git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
net/mlx5e: Don't allow aRFS for encapsulated packets
[sfrench/cifs-2.6.git]
/
drivers
/
net
/
ethernet
/
mellanox
/
mlx5
/
core
/
en_arfs.c
diff --git
a/drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c
b/drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c
index 7b54a4999cf33ac9ce37fb67bb1d473f328b7154..d258bb6792713e8bc56bfc9be4c4c8b98f45aebe 100644
(file)
--- a/
drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c
+++ b/
drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c
@@
-711,6
+711,9
@@
int mlx5e_rx_flow_steer(struct net_device *dev, const struct sk_buff *skb,
skb->protocol != htons(ETH_P_IPV6))
return -EPROTONOSUPPORT;
+ if (skb->encapsulation)
+ return -EPROTONOSUPPORT;
+
arfs_t = arfs_get_table(arfs, arfs_get_ip_proto(skb), skb->protocol);
if (!arfs_t)
return -EPROTONOSUPPORT;