route: rename rtnl_cls_cache_set_tcm_params() and fix symbol versioning

After rethinking, "tcm_params" doesn't seem like a good name. Change it to
"tc_params".

Also, an already released section in the linker file must never be
modified. It defeats the purpose of symbol versioning. Move the symbol
to the right section.
This commit is contained in:
Thomas Haller
2018-01-18 07:54:27 +01:00
parent ca02edd101
commit 7eeb29bc53
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ extern void rtnl_cls_put(struct rtnl_cls *);
extern int rtnl_cls_alloc_cache(struct nl_sock *, int, uint32_t,
struct nl_cache **);
extern void rtnl_cls_cache_set_tcm_params(struct nl_cache *, int, uint32_t);
extern void rtnl_cls_cache_set_tc_params(struct nl_cache *, int, uint32_t);
extern int rtnl_cls_build_add_request(struct rtnl_cls *, int,
struct nl_msg **);
+2 -2
View File
@@ -356,8 +356,8 @@ int rtnl_cls_alloc_cache(struct nl_sock *sk, int ifindex, uint32_t parent,
*
* @return void.
*/
void rtnl_cls_cache_set_tcm_params(struct nl_cache *cache,
int ifindex, uint32_t parent)
void rtnl_cls_cache_set_tc_params(struct nl_cache *cache,
int ifindex, uint32_t parent)
{
cache->c_iarg1 = ifindex;
cache->c_iarg2 = parent;
+1 -1
View File
@@ -151,7 +151,6 @@ global:
rtnl_cls_add;
rtnl_cls_alloc;
rtnl_cls_alloc_cache;
rtnl_cls_cache_set_tcm_params;
rtnl_cls_build_add_request;
rtnl_cls_build_change_request;
rtnl_cls_build_delete_request;
@@ -1065,5 +1064,6 @@ global:
libnl_3_5 {
global:
rtnl_cls_cache_set_tc_params;
rtnl_netem_set_delay_distribution_data;
} libnl_3_4;