Cong Wang
2f7ef2f879
sched, cls: check if we could overwrite actions when changing a filter
...
When actions are attached to a filter, they are a part of the filter
itself, so when changing a filter we should allow to overwrite the actions
inside as well.
In my specific case, when I tried to _append_ a new action to an existing
filter which already has an action, I got EEXIST since kernel refused
to overwrite the existing one in kernel.
This patch checks if we are changing the filter checking NLM_F_CREATE flag
(Sigh, filters don't use NLM_F_REPLACE...) and then passes the boolean down
to actions. This fixes the problem above.
Cc: Jamal Hadi Salim <jhs@mojatatu.com>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: Cong Wang <cwang@twopensource.com>
Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-04-27 23:42:39 -04:00
..
2014-03-25 16:38:16 -05:00
2014-03-21 22:02:12 +02:00
2013-09-23 16:29:41 -04:00
2013-12-06 12:37:56 -05:00
2013-04-08 17:16:57 -04:00
2014-04-14 10:38:02 +02:00
2014-03-17 15:06:24 -04:00
2014-03-11 00:40:59 +01:00
2012-06-17 16:29:38 -07:00
2014-04-18 18:32:00 -04:00
2014-02-12 19:23:32 -05:00
2014-04-20 18:18:55 -04:00
2014-02-12 19:23:32 -05:00
2014-02-27 17:13:20 -05:00
2014-03-14 22:15:25 -04:00
2013-07-31 17:50:01 -07:00
2013-08-10 01:16:44 -07:00
2013-07-27 22:14:06 -07:00
2013-12-28 17:02:46 -05:00
2013-07-31 17:50:02 -07:00
2014-01-13 17:39:11 +01:00
2014-03-19 21:29:56 +01:00
2014-03-24 00:18:44 -04:00
2013-12-10 17:56:54 -05:00
2014-02-08 10:36:58 -05:00
2014-01-21 23:17:20 -08:00
2013-09-20 14:49:32 -04:00
2014-02-09 17:32:50 -08:00
2013-12-06 12:37:56 -05:00
2013-12-06 12:37:56 -05:00
2013-12-10 21:50:00 -05:00
2013-09-20 14:49:32 -04:00
2013-09-20 14:49:32 -04:00
2013-09-20 14:49:32 -04:00
2014-02-09 17:32:49 -08:00
2014-02-09 17:32:49 -08:00
2013-01-09 23:59:53 -08:00
2012-07-19 10:43:03 -07:00
2014-04-15 13:47:15 -04:00
2013-11-07 19:28:58 -05:00
2014-02-04 20:19:51 -08:00
2013-09-20 14:49:33 -04:00
2013-03-26 12:32:13 -04:00
2013-10-03 15:36:37 -04:00
2014-04-16 15:05:11 -04:00
2014-02-12 07:02:11 +01:00
2013-09-20 14:49:33 -04:00
2013-09-20 14:49:33 -04:00
2014-01-06 15:51:53 -08:00
2014-01-06 20:28:34 -05:00
2013-01-27 22:46:33 -05:00
2013-09-20 14:49:33 -04:00
2014-02-06 09:34:58 +01:00
2014-04-01 16:25:51 -04:00
2014-03-14 22:15:26 -04:00
2014-03-28 16:54:50 -04:00
2014-04-15 12:58:34 -04:00
2013-10-19 19:45:34 -04:00
2013-09-21 14:01:38 -04:00
2014-04-15 12:58:34 -04:00
2013-05-28 23:49:07 -07:00
2013-10-23 17:01:41 -04:00
2013-10-08 23:19:24 -04:00
2013-10-19 19:45:35 -04:00
2014-01-17 17:56:33 -08:00
2013-12-28 17:03:20 -05:00
2013-10-09 13:04:03 -04:00
2014-03-27 15:09:07 -04:00
2014-04-14 12:39:59 -04:00
2014-01-04 20:10:24 -05:00
2013-09-21 14:01:38 -04:00
2014-04-15 13:47:15 -04:00
2013-11-11 00:19:35 -05:00
2014-04-15 13:47:15 -04:00
2014-04-15 13:47:15 -04:00
2014-02-09 17:32:50 -08:00
2013-09-21 14:01:39 -04:00
2013-09-21 14:01:38 -04:00
2013-04-29 15:41:56 -04:00
2013-09-21 14:01:38 -04:00
2013-09-21 14:01:38 -04:00
2013-09-21 14:01:38 -04:00
2013-09-21 14:01:38 -04:00
2014-01-01 22:22:43 -05:00
2013-09-21 14:01:38 -04:00
2013-09-21 14:01:38 -04:00
2013-09-21 14:01:38 -04:00
2014-01-03 20:56:48 -05:00
2014-04-02 20:53:45 -07:00
2014-03-14 22:15:26 -04:00
2013-12-06 12:37:56 -05:00
2013-09-04 14:53:20 -04:00
2013-10-01 17:06:14 -04:00
2013-09-21 14:01:39 -04:00
2014-01-16 11:31:58 -08:00
2014-04-24 12:36:00 -04:00
2013-09-21 14:01:39 -04:00
2014-01-25 11:17:34 -08:00
2013-09-21 14:01:39 -04:00
2014-02-08 10:36:58 -05:00
2013-09-21 14:01:39 -04:00
2014-03-14 22:15:26 -04:00
2013-09-21 14:01:39 -04:00
2014-01-19 19:53:18 -08:00
2014-04-27 23:42:39 -04:00
2013-12-09 19:54:47 -05:00
2014-01-21 18:05:04 -08:00
2013-09-23 01:51:08 -04:00
2013-09-23 01:51:08 -04:00
2013-09-23 01:51:08 -04:00
2014-01-21 23:17:20 -08:00
2014-02-25 17:29:25 +01:00
2013-10-10 00:08:07 -04:00
2013-09-23 01:51:08 -04:00
2014-03-24 12:45:01 -04:00
2014-02-18 18:15:42 -05:00
2014-04-27 23:42:39 -04:00
2013-09-23 01:51:09 -04:00
2013-10-01 17:06:14 -04:00
2012-08-06 13:40:47 -07:00
2014-04-11 16:15:36 -04:00
2013-12-19 18:51:20 -05:00
2013-09-23 01:51:09 -04:00
2013-10-21 18:43:02 -04:00
2014-04-20 18:18:56 -04:00
2012-06-09 14:56:12 -07:00
2014-01-19 19:53:18 -08:00
2013-11-07 02:14:33 -05:00
2013-09-23 16:29:40 -04:00
2013-07-27 22:14:06 -07:00
2014-04-24 16:18:26 -04:00
2013-09-23 16:29:40 -04:00
2013-09-23 16:29:41 -04:00
2014-02-17 16:42:39 -05:00
2013-09-23 16:29:41 -04:00
2014-04-15 13:47:15 -04:00