summaryrefslogtreecommitdiffstats
path: root/src/network/networkd-queue.h
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2022-02-24 08:08:50 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-02-26 06:58:01 +0100
commit3a67b8bb0d24f1b79f066257c8536d85b0e3ae83 (patch)
treeefee609ade1b8e1eb540d64da5d77291615128f3 /src/network/networkd-queue.h
parentMerge pull request #22619 from yuwata/network-netdev-cleanups (diff)
downloadsystemd-3a67b8bb0d24f1b79f066257c8536d85b0e3ae83.tar.xz
systemd-3a67b8bb0d24f1b79f066257c8536d85b0e3ae83.zip
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.
Diffstat (limited to 'src/network/networkd-queue.h')
-rw-r--r--src/network/networkd-queue.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/network/networkd-queue.h b/src/network/networkd-queue.h
index 9b2c6baf44..593f3dde6e 100644
--- a/src/network/networkd-queue.h
+++ b/src/network/networkd-queue.h
@@ -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;