stephen hemminger 3b87956ea6 net sched: fix race in mirred device removal
This fixes hang when target device of mirred packet classifier
action is removed.

If a mirror or redirection action is configured to cause packets
to go to another device, the classifier holds a ref count, but was assuming
the adminstrator cleaned up all redirections before removing. The fix
is to add a notifier and cleanup during unregister.

The new list is implicitly protected by RTNL mutex because
it is held during filter add/delete as well as notifier.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Acked-by: Jamal Hadi Salim <hadi@cyberus.ca>
Signed-off-by: David S. Miller <davem@davemloft.net>
2010-07-24 21:04:20 -07:00
..
2010-05-21 16:44:34 -05:00
2010-01-07 00:24:55 -08:00
2010-05-12 23:02:23 -07:00
2009-11-04 05:06:25 -08:00
2009-09-01 17:40:57 -07:00
2009-11-04 05:06:25 -08:00
2009-09-01 17:40:31 -07:00
2009-11-04 05:06:25 -08:00
2009-11-04 05:06:25 -08:00
2009-11-13 20:46:58 -08:00
2010-04-13 01:41:33 -07:00
2009-11-04 05:06:25 -08:00
2009-12-26 20:46:28 -08:00
2010-03-12 15:52:40 -08:00
2009-11-20 15:35:04 -08:00
2010-04-01 18:38:48 -07:00
2010-04-13 14:49:34 -07:00
2009-11-04 05:06:25 -08:00
2009-07-26 19:11:14 -07:00
2010-05-17 17:18:51 -07:00
2009-11-04 05:06:25 -08:00
2010-06-23 11:48:19 -07:00
2009-11-10 20:54:38 -08:00
2009-10-07 16:39:43 -04:00