summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorCong Wang <xiyou.wangcong@gmail.com>2014-01-15 01:37:42 (GMT)
committerThomas Haller <thaller@redhat.com>2014-01-15 13:16:46 (GMT)
commitaa8877d5c1ef6bd7555ae5b187dc4b695dabc9f2 (patch)
tree4e8d7ae0b7c53686d2bf112a6be2253aec42483b /lib
parent8dabf9fb1a891400511f3c8cd2713bcb5380fb87 (diff)
downloadlibnl-aa8877d5c1ef6bd7555ae5b187dc4b695dabc9f2.zip
libnl-aa8877d5c1ef6bd7555ae5b187dc4b695dabc9f2.tar.gz
libnl-aa8877d5c1ef6bd7555ae5b187dc4b695dabc9f2.tar.bz2
act: remove rtnl_act_alloc_cache()
It is complicated to cache tc actions, they are different from tc qdisc's and filters by design. So, it is simple if we just don't cache them. This patch only removes the tc action cache allocation API. We still need to bypass the libnl cache layer from scratch, but that would not break ABI any more, therefore we can do it later. Cc: Thomas Graf <tgraf@suug.ch> Cc: Thomas Haller <thaller@redhat.com> Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com> Signed-off-by: Thomas Haller <thaller@redhat.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/route/act.c42
1 files changed, 0 insertions, 42 deletions
diff --git a/lib/route/act.c b/lib/route/act.c
index ea43210..2bb222b 100644
--- a/lib/route/act.c
+++ b/lib/route/act.c
@@ -363,48 +363,6 @@ int rtnl_act_delete(struct nl_sock *sk, struct rtnl_act *act, int flags)
/** @} */
-/**
- * @name Cache Related Functions
- * @{
- */
-
-/**
- * Allocate a cache and fill it with all configured actions
- * @arg sk Netlink socket
- * @arg ifindex Interface index of the network device
- * @arg parent Parent qdisc/traffic class class
- * @arg result Pointer to store the created cache
- *
- * Allocates a new action cache and fills it with a list of all
- * configured action attached to the specified parent qdisc/traffic
- * class on the specified network device. Release the cache with
- * nl_cache_free().
- *
- * @return 0 on success or a negative error code.
- */
-int rtnl_act_alloc_cache(struct nl_sock *sk, int ifindex, uint32_t parent,
- struct nl_cache **result)
-{
- struct nl_cache * cache;
- int err;
-
- if (!(cache = nl_cache_alloc(&rtnl_act_ops)))
- return -NLE_NOMEM;
-
- cache->c_iarg1 = ifindex;
- cache->c_iarg2 = parent;
-
- if (sk && (err = nl_cache_refill(sk, cache)) < 0) {
- nl_cache_free(cache);
- return err;
- }
-
- *result = cache;
- return 0;
-}
-
-/** @} */
-
static void act_dump_line(struct rtnl_tc *tc, struct nl_dump_params *p)
{
}