]> git.baikalelectronics.ru Git - kernel.git/commit
net: add a recursion limit in xmit path
authorEric Dumazet <eric.dumazet@gmail.com>
Wed, 29 Sep 2010 20:23:09 +0000 (13:23 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 29 Sep 2010 20:23:09 +0000 (13:23 -0700)
commit54f1b8f19e2eaa5bfa5f561f8d5b62546b91c830
tree5067e0179167106856217f7c4ddc68b15ec93db8
parent1c5c6eaa9f3478b2445b4cad2619e2a515c7c1f5
net: add a recursion limit in xmit path

As tunnel devices are going to be lockless, we need to make sure a
misconfigured machine wont enter an infinite loop.

Add a percpu variable, and limit to three the number of stacked xmits.

Reported-by: Jesse Gross <jesse@nicira.com>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c