net: sched: change type of reference and bind counters
Change type of action reference counter to refcount_t. Change type of action bind counter to atomic_t. This type is used to allow decrementing bind counter without testing for 0 result. Reviewed-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com> Signed-off-by: Vlad Buslov <vladbu@mellanox.com> Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
eec94fdb04
commit
036bb44327
@@ -6,6 +6,7 @@
|
||||
* Public action API for classifiers/qdiscs
|
||||
*/
|
||||
|
||||
#include <linux/refcount.h>
|
||||
#include <net/sch_generic.h>
|
||||
#include <net/pkt_sched.h>
|
||||
#include <net/net_namespace.h>
|
||||
@@ -26,8 +27,8 @@ struct tc_action {
|
||||
struct tcf_idrinfo *idrinfo;
|
||||
|
||||
u32 tcfa_index;
|
||||
int tcfa_refcnt;
|
||||
int tcfa_bindcnt;
|
||||
refcount_t tcfa_refcnt;
|
||||
atomic_t tcfa_bindcnt;
|
||||
u32 tcfa_capab;
|
||||
int tcfa_action;
|
||||
struct tcf_t tcfa_tm;
|
||||
|
||||
Reference in New Issue
Block a user