network: traffic control: drop meta from QDisc and TClass
Since #22248, it is not necessary to manage QDisc and TClass in same Set or Hashmap. Let's manage them independently.
This commit is contained in:
@@ -14,7 +14,8 @@ typedef struct NetDev NetDev;
|
||||
typedef struct NextHop NextHop;
|
||||
typedef struct Route Route;
|
||||
typedef struct RoutingPolicyRule RoutingPolicyRule;
|
||||
typedef struct TrafficControl TrafficControl;
|
||||
typedef struct QDisc QDisc;
|
||||
typedef struct TClass TClass;
|
||||
|
||||
typedef enum RequestType {
|
||||
REQUEST_TYPE_ACTIVATE_LINK,
|
||||
@@ -35,7 +36,8 @@ typedef enum RequestType {
|
||||
REQUEST_TYPE_ROUTE,
|
||||
REQUEST_TYPE_ROUTING_POLICY_RULE,
|
||||
REQUEST_TYPE_SET_LINK,
|
||||
REQUEST_TYPE_TRAFFIC_CONTROL,
|
||||
REQUEST_TYPE_TC_CLASS,
|
||||
REQUEST_TYPE_TC_QDISC,
|
||||
REQUEST_TYPE_UP_DOWN,
|
||||
_REQUEST_TYPE_MAX,
|
||||
_REQUEST_TYPE_INVALID = -EINVAL,
|
||||
@@ -57,7 +59,8 @@ typedef struct Request {
|
||||
RoutingPolicyRule *rule;
|
||||
void *set_link_operation_ptr;
|
||||
NetDev *netdev;
|
||||
TrafficControl *traffic_control;
|
||||
QDisc *qdisc;
|
||||
TClass *tclass;
|
||||
void *object;
|
||||
};
|
||||
void *userdata;
|
||||
|
||||
Reference in New Issue
Block a user