]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sd-netlink: add more attributes for CAKE
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 2 Nov 2021 18:39:46 +0000 (03:39 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 9 Nov 2021 01:58:44 +0000 (10:58 +0900)
src/libsystemd/sd-netlink/netlink-types-rtnl.c

index 2c01751a5246eddd2bfdc917b567d443badbfc01..85a6c7939662d47eea185f509988e0341e91672e 100644 (file)
@@ -1028,9 +1028,23 @@ static const NLType rtnl_nexthop_types[] = {
 DEFINE_TYPE_SYSTEM(rtnl_nexthop);
 
 static const NLType rtnl_tca_option_data_cake_types[] = {
-        [TCA_CAKE_BASE_RATE64] = { .type = NETLINK_TYPE_U64 },
-        [TCA_CAKE_OVERHEAD]    = { .type = NETLINK_TYPE_S32 },
-        [TCA_CAKE_MPU]         = { .type = NETLINK_TYPE_U32 },
+        [TCA_CAKE_BASE_RATE64]   = { .type = NETLINK_TYPE_U64 },
+        [TCA_CAKE_DIFFSERV_MODE] = { .type = NETLINK_TYPE_U32 },
+        [TCA_CAKE_ATM]           = { .type = NETLINK_TYPE_U32 },
+        [TCA_CAKE_FLOW_MODE]     = { .type = NETLINK_TYPE_U32 },
+        [TCA_CAKE_OVERHEAD]      = { .type = NETLINK_TYPE_S32 },
+        [TCA_CAKE_RTT]           = { .type = NETLINK_TYPE_U32 },
+        [TCA_CAKE_TARGET]        = { .type = NETLINK_TYPE_U32 },
+        [TCA_CAKE_AUTORATE]      = { .type = NETLINK_TYPE_U32 },
+        [TCA_CAKE_MEMORY]        = { .type = NETLINK_TYPE_U32 },
+        [TCA_CAKE_NAT]           = { .type = NETLINK_TYPE_U32 },
+        [TCA_CAKE_RAW]           = { .type = NETLINK_TYPE_U32 },
+        [TCA_CAKE_WASH]          = { .type = NETLINK_TYPE_U32 },
+        [TCA_CAKE_MPU]           = { .type = NETLINK_TYPE_U32 },
+        [TCA_CAKE_INGRESS]       = { .type = NETLINK_TYPE_U32 },
+        [TCA_CAKE_ACK_FILTER]    = { .type = NETLINK_TYPE_U32 },
+        [TCA_CAKE_SPLIT_GSO]     = { .type = NETLINK_TYPE_U32 },
+        [TCA_CAKE_FWMARK]        = { .type = NETLINK_TYPE_U32 },
 };
 
 static const NLType rtnl_tca_option_data_codel_types[] = {