summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOr Gerlitz <ogerlitz@mellanox.com>2014-01-29 18:10:10 +0200
committerDavid S. Miller <davem@davemloft.net>2014-01-30 16:25:49 -0800
commit920a0fde5a32fd40b4d3c94ad72f7fc7039db8e3 (patch)
tree791798d1b22c619e13fc569aec7d4dc24e1124d3
parentb5aaab12b2b4bc4acab7384c17a87f3406e5047d (diff)
downloadop-kernel-dev-920a0fde5a32fd40b4d3c94ad72f7fc7039db8e3.zip
op-kernel-dev-920a0fde5a32fd40b4d3c94ad72f7fc7039db8e3.tar.gz
net/vxlan: Go over all candidate streams for GRO matching
The loop in vxlan_gro_receive() over the current set of candidates for coalescing was wrongly aborted once a match was found. In rare cases, this can cause a false-positives matching in the next layer GRO checks. Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/vxlan.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c
index 026a313..3d6cd1c 100644
--- a/drivers/net/vxlan.c
+++ b/drivers/net/vxlan.c
@@ -596,10 +596,8 @@ static struct sk_buff **vxlan_gro_receive(struct sk_buff **head, struct sk_buff
NAPI_GRO_CB(p)->same_flow = 0;
continue;
}
- goto found;
}
-found:
type = eh->h_proto;
rcu_read_lock();
OpenPOWER on IntegriCloud