diff options
author | Susant Sahani <ssahani@vmware.com> | 2020-03-19 22:41:10 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2020-06-03 06:41:44 +0200 |
commit | c33f1e5a3fef019c137ee727dee75bcca622eae9 (patch) | |
tree | d087fb462f5cd13222683d3471ce8bfb229cb9d4 | |
parent | Merge pull request #16048 from poettering/conf-parser-mtime (diff) | |
download | systemd-c33f1e5a3fef019c137ee727dee75bcca622eae9.tar.xz systemd-c33f1e5a3fef019c137ee727dee75bcca622eae9.zip |
sd-netlink: add netlink properties of Quick Fair Queueing (QFQ)
-rw-r--r-- | src/libsystemd/sd-netlink/netlink-types.c | 8 | ||||
-rw-r--r-- | src/libsystemd/sd-netlink/netlink-types.h | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/src/libsystemd/sd-netlink/netlink-types.c b/src/libsystemd/sd-netlink/netlink-types.c index 8644cc7488..d9810b2298 100644 --- a/src/libsystemd/sd-netlink/netlink-types.c +++ b/src/libsystemd/sd-netlink/netlink-types.c @@ -810,6 +810,11 @@ static const NLType rtnl_tca_option_data_pie_types[] = { [TCA_PIE_LIMIT] = { .type = NETLINK_TYPE_U32 }, }; +static const NLType rtnl_tca_option_data_qfq_types[] = { + [TCA_QFQ_WEIGHT] = { .type = NETLINK_TYPE_U32 }, + [TCA_QFQ_LMAX] = { .type = NETLINK_TYPE_U32 }, +}; + static const NLType rtnl_tca_option_data_sfb_types[] = { [TCA_SFB_PARMS] = { .size = sizeof(struct tc_sfb_qopt) }, }; @@ -834,6 +839,7 @@ static const char* const nl_union_tca_option_data_table[] = { [NL_UNION_TCA_OPTION_DATA_HHF] = "hhf", [NL_UNION_TCA_OPTION_DATA_HTB] = "htb", [NL_UNION_TCA_OPTION_DATA_PIE] = "pie", + [NL_UNION_TCA_OPTION_DATA_QFQ] = "qfq", [NL_UNION_TCA_OPTION_DATA_SFB] = "sfb", [NL_UNION_TCA_OPTION_DATA_TBF] = "tbf", }; @@ -859,6 +865,8 @@ static const NLTypeSystem rtnl_tca_option_data_type_systems[] = { .types = rtnl_tca_option_data_htb_types }, [NL_UNION_TCA_OPTION_DATA_PIE] = { .count = ELEMENTSOF(rtnl_tca_option_data_pie_types), .types = rtnl_tca_option_data_pie_types }, + [NL_UNION_TCA_OPTION_DATA_QFQ] = { .count = ELEMENTSOF(rtnl_tca_option_data_qfq_types), + .types = rtnl_tca_option_data_qfq_types }, [NL_UNION_TCA_OPTION_DATA_SFB] = { .count = ELEMENTSOF(rtnl_tca_option_data_sfb_types), .types = rtnl_tca_option_data_sfb_types }, [NL_UNION_TCA_OPTION_DATA_TBF] = { .count = ELEMENTSOF(rtnl_tca_option_data_tbf_types), diff --git a/src/libsystemd/sd-netlink/netlink-types.h b/src/libsystemd/sd-netlink/netlink-types.h index 08b91c78c0..1a0e1997cc 100644 --- a/src/libsystemd/sd-netlink/netlink-types.h +++ b/src/libsystemd/sd-netlink/netlink-types.h @@ -105,6 +105,7 @@ typedef enum NLUnionTCAOptionData { NL_UNION_TCA_OPTION_DATA_HHF, NL_UNION_TCA_OPTION_DATA_HTB, NL_UNION_TCA_OPTION_DATA_PIE, + NL_UNION_TCA_OPTION_DATA_QFQ, NL_UNION_TCA_OPTION_DATA_SFB, NL_UNION_TCA_OPTION_DATA_TBF, _NL_UNION_TCA_OPTION_DATA_MAX, |