diff options
author | Patrick McHardy <kaber@trash.net> | 2008-11-19 03:03:09 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-11-20 07:14:28 -0500 |
commit | 47a1a1d4be2910b13a8e90f75c17e253c39531ff (patch) | |
tree | c900f283bd96f0b26236152ada24f9a113f65e2b /net/sched/cls_tcindex.c | |
parent | b94c8afcba3ae6584653b98e315446ea83be6ea5 (diff) |
pkt_sched: remove unnecessary xchg() in packet classifiers
The use of xchg() hasn't been necessary since 2.2.something when proper
locking was added to packet schedulers. In the case of classifiers they
mostly weren't even necessary before that since they're mainly used
to assign a NULL pointer to the filter root in the ->destroy path;
the root is destroyed immediately after that.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/cls_tcindex.c')
-rw-r--r-- | net/sched/cls_tcindex.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/net/sched/cls_tcindex.c b/net/sched/cls_tcindex.c index 7a7bff5ded24..e806f2314b5e 100644 --- a/net/sched/cls_tcindex.c +++ b/net/sched/cls_tcindex.c | |||
@@ -13,12 +13,6 @@ | |||
13 | #include <net/netlink.h> | 13 | #include <net/netlink.h> |
14 | #include <net/pkt_cls.h> | 14 | #include <net/pkt_cls.h> |
15 | 15 | ||
16 | |||
17 | /* | ||
18 | * Not quite sure if we need all the xchgs Alexey uses when accessing things. | ||
19 | * Can always add them later ... :) | ||
20 | */ | ||
21 | |||
22 | /* | 16 | /* |
23 | * Passing parameters to the root seems to be done more awkwardly than really | 17 | * Passing parameters to the root seems to be done more awkwardly than really |
24 | * necessary. At least, u32 doesn't seem to use such dirty hacks. To be | 18 | * necessary. At least, u32 doesn't seem to use such dirty hacks. To be |