Skip to content

Commit 0d861ea

Browse files
Stanislav Fomichevkuba-moo
authored andcommitted
ynl-gen-cpp: explicitly use enum <enum> instead of <enum>
There is a type and a field with the same name (hwtstamp_source): std::optional<hwtstamp_source> hwtstamp_source; It needs to be the following to compile: we need std::optional<enum hwtstamp_source> hwtstamp_source; Also, skip nl80211 gen, the spec is too complicated and ynl-gen-cpp doesn't follow ynl_gen_c.py :-( Signed-off-by: Stanislav Fomichev <[email protected]>
1 parent b5df741 commit 0d861ea

14 files changed

+65
-61
lines changed

generated/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ TOOL:=../ynl-gen-cpp.py
1616
GENS_PATHS=$(shell grep -nrI --files-without-match \
1717
'protocol: netlink' ../Documentation/netlink/specs/)
1818
GENS_ALL=$(patsubst ../Documentation/netlink/specs/%.yaml,%,${GENS_PATHS})
19-
GENS=$(filter-out devlink ovs_datapath ovs_flow ovs_vport nlctrl,${GENS_ALL})
19+
GENS=$(filter-out nl80211 devlink ovs_datapath ovs_flow ovs_vport nlctrl,${GENS_ALL})
2020
SRCS=$(patsubst %,%-user.cpp,${GENS})
2121
HDRS=$(patsubst %,%-user.hpp,${GENS})
2222
OBJS=$(patsubst %,%-user.cpp.o,${GENS})

generated/dpll-user.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -423,15 +423,15 @@ int dpll_pin_parent_device_parse(struct ynl_parse_arg *yarg,
423423
} else if (type == DPLL_A_PIN_DIRECTION) {
424424
if (ynl_attr_validate(yarg, attr))
425425
return YNL_PARSE_CB_ERROR;
426-
dst->direction = (dpll_pin_direction)ynl_attr_get_u32(attr);
426+
dst->direction = (enum dpll_pin_direction)ynl_attr_get_u32(attr);
427427
} else if (type == DPLL_A_PIN_PRIO) {
428428
if (ynl_attr_validate(yarg, attr))
429429
return YNL_PARSE_CB_ERROR;
430430
dst->prio = (__u32)ynl_attr_get_u32(attr);
431431
} else if (type == DPLL_A_PIN_STATE) {
432432
if (ynl_attr_validate(yarg, attr))
433433
return YNL_PARSE_CB_ERROR;
434-
dst->state = (dpll_pin_state)ynl_attr_get_u32(attr);
434+
dst->state = (enum dpll_pin_state)ynl_attr_get_u32(attr);
435435
} else if (type == DPLL_A_PIN_PHASE_OFFSET) {
436436
if (ynl_attr_validate(yarg, attr))
437437
return YNL_PARSE_CB_ERROR;
@@ -473,7 +473,7 @@ int dpll_pin_parent_pin_parse(struct ynl_parse_arg *yarg,
473473
} else if (type == DPLL_A_PIN_STATE) {
474474
if (ynl_attr_validate(yarg, attr))
475475
return YNL_PARSE_CB_ERROR;
476-
dst->state = (dpll_pin_state)ynl_attr_get_u32(attr);
476+
dst->state = (enum dpll_pin_state)ynl_attr_get_u32(attr);
477477
}
478478
}
479479

@@ -511,7 +511,7 @@ int dpll_reference_sync_parse(struct ynl_parse_arg *yarg,
511511
} else if (type == DPLL_A_PIN_STATE) {
512512
if (ynl_attr_validate(yarg, attr))
513513
return YNL_PARSE_CB_ERROR;
514-
dst->state = (dpll_pin_state)ynl_attr_get_u32(attr);
514+
dst->state = (enum dpll_pin_state)ynl_attr_get_u32(attr);
515515
}
516516
}
517517

@@ -601,17 +601,17 @@ int dpll_device_get_rsp_parse(const struct nlmsghdr *nlh,
601601
} else if (type == DPLL_A_MODE) {
602602
if (ynl_attr_validate(yarg, attr))
603603
return YNL_PARSE_CB_ERROR;
604-
dst->mode = (dpll_mode)ynl_attr_get_u32(attr);
604+
dst->mode = (enum dpll_mode)ynl_attr_get_u32(attr);
605605
} else if (type == DPLL_A_MODE_SUPPORTED) {
606606
n_mode_supported++;
607607
} else if (type == DPLL_A_LOCK_STATUS) {
608608
if (ynl_attr_validate(yarg, attr))
609609
return YNL_PARSE_CB_ERROR;
610-
dst->lock_status = (dpll_lock_status)ynl_attr_get_u32(attr);
610+
dst->lock_status = (enum dpll_lock_status)ynl_attr_get_u32(attr);
611611
} else if (type == DPLL_A_LOCK_STATUS_ERROR) {
612612
if (ynl_attr_validate(yarg, attr))
613613
return YNL_PARSE_CB_ERROR;
614-
dst->lock_status_error = (dpll_lock_status_error)ynl_attr_get_u32(attr);
614+
dst->lock_status_error = (enum dpll_lock_status_error)ynl_attr_get_u32(attr);
615615
} else if (type == DPLL_A_TEMP) {
616616
if (ynl_attr_validate(yarg, attr))
617617
return YNL_PARSE_CB_ERROR;
@@ -623,11 +623,11 @@ int dpll_device_get_rsp_parse(const struct nlmsghdr *nlh,
623623
} else if (type == DPLL_A_TYPE) {
624624
if (ynl_attr_validate(yarg, attr))
625625
return YNL_PARSE_CB_ERROR;
626-
dst->type = (dpll_type)ynl_attr_get_u32(attr);
626+
dst->type = (enum dpll_type)ynl_attr_get_u32(attr);
627627
} else if (type == DPLL_A_PHASE_OFFSET_MONITOR) {
628628
if (ynl_attr_validate(yarg, attr))
629629
return YNL_PARSE_CB_ERROR;
630-
dst->phase_offset_monitor = (dpll_feature_state)ynl_attr_get_u32(attr);
630+
dst->phase_offset_monitor = (enum dpll_feature_state)ynl_attr_get_u32(attr);
631631
}
632632
}
633633

@@ -832,7 +832,7 @@ int dpll_pin_get_rsp_parse(const struct nlmsghdr *nlh,
832832
} else if (type == DPLL_A_PIN_TYPE) {
833833
if (ynl_attr_validate(yarg, attr))
834834
return YNL_PARSE_CB_ERROR;
835-
dst->type = (dpll_pin_type)ynl_attr_get_u32(attr);
835+
dst->type = (enum dpll_pin_type)ynl_attr_get_u32(attr);
836836
} else if (type == DPLL_A_PIN_FREQUENCY) {
837837
if (ynl_attr_validate(yarg, attr))
838838
return YNL_PARSE_CB_ERROR;

generated/dpll-user.hpp

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -45,28 +45,28 @@ struct dpll_frequency_range {
4545

4646
struct dpll_pin_parent_device {
4747
std::optional<__u32> parent_id;
48-
std::optional<dpll_pin_direction> direction;
48+
std::optional<enum dpll_pin_direction> direction;
4949
std::optional<__u32> prio;
50-
std::optional<dpll_pin_state> state;
50+
std::optional<enum dpll_pin_state> state;
5151
std::optional<__s64> phase_offset;
5252
};
5353

5454
struct dpll_pin_parent_pin {
5555
std::optional<__u32> parent_id;
56-
std::optional<dpll_pin_state> state;
56+
std::optional<enum dpll_pin_state> state;
5757
};
5858

5959
struct dpll_reference_sync {
6060
std::optional<__u32> id;
61-
std::optional<dpll_pin_state> state;
61+
std::optional<enum dpll_pin_state> state;
6262
};
6363

6464
/* ============== DPLL_CMD_DEVICE_ID_GET ============== */
6565
/* DPLL_CMD_DEVICE_ID_GET - do */
6666
struct dpll_device_id_get_req {
6767
std::string module_name;
6868
std::optional<__u64> clock_id;
69-
std::optional<dpll_type> type;
69+
std::optional<enum dpll_type> type;
7070
};
7171

7272
struct dpll_device_id_get_rsp {
@@ -89,14 +89,14 @@ struct dpll_device_get_req {
8989
struct dpll_device_get_rsp {
9090
std::optional<__u32> id;
9191
std::string module_name;
92-
std::optional<dpll_mode> mode;
92+
std::optional<enum dpll_mode> mode;
9393
std::vector<__u32> mode_supported;
94-
std::optional<dpll_lock_status> lock_status;
95-
std::optional<dpll_lock_status_error> lock_status_error;
94+
std::optional<enum dpll_lock_status> lock_status;
95+
std::optional<enum dpll_lock_status_error> lock_status_error;
9696
std::optional<__s32> temp;
9797
std::optional<__u64> clock_id;
98-
std::optional<dpll_type> type;
99-
std::optional<dpll_feature_state> phase_offset_monitor;
98+
std::optional<enum dpll_type> type;
99+
std::optional<enum dpll_feature_state> phase_offset_monitor;
100100
};
101101

102102
/*
@@ -122,7 +122,7 @@ struct dpll_device_get_ntf {
122122
/* DPLL_CMD_DEVICE_SET - do */
123123
struct dpll_device_set_req {
124124
std::optional<__u32> id;
125-
std::optional<dpll_feature_state> phase_offset_monitor;
125+
std::optional<enum dpll_feature_state> phase_offset_monitor;
126126
};
127127

128128
/*
@@ -138,7 +138,7 @@ struct dpll_pin_id_get_req {
138138
std::string board_label;
139139
std::string panel_label;
140140
std::string package_label;
141-
std::optional<dpll_pin_type> type;
141+
std::optional<enum dpll_pin_type> type;
142142
};
143143

144144
struct dpll_pin_id_get_rsp {
@@ -163,7 +163,7 @@ struct dpll_pin_get_rsp {
163163
std::string board_label;
164164
std::string panel_label;
165165
std::string package_label;
166-
std::optional<dpll_pin_type> type;
166+
std::optional<enum dpll_pin_type> type;
167167
std::optional<__u64> frequency;
168168
std::vector<dpll_frequency_range> frequency_supported;
169169
std::optional<__u32> capabilities;
@@ -213,9 +213,9 @@ struct dpll_pin_get_ntf {
213213
struct dpll_pin_set_req {
214214
std::optional<__u32> id;
215215
std::optional<__u64> frequency;
216-
std::optional<dpll_pin_direction> direction;
216+
std::optional<enum dpll_pin_direction> direction;
217217
std::optional<__u32> prio;
218-
std::optional<dpll_pin_state> state;
218+
std::optional<enum dpll_pin_state> state;
219219
std::vector<dpll_pin_parent_device> parent_device;
220220
std::vector<dpll_pin_parent_pin> parent_pin;
221221
std::optional<__s32> phase_adjust;

generated/ethtool-user.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3736,7 +3736,7 @@ int ethtool_rings_get_rsp_parse(const struct nlmsghdr *nlh,
37363736
} else if (type == ETHTOOL_A_RINGS_TCP_DATA_SPLIT) {
37373737
if (ynl_attr_validate(yarg, attr))
37383738
return YNL_PARSE_CB_ERROR;
3739-
dst->tcp_data_split = (ethtool_tcp_data_split)ynl_attr_get_u8(attr);
3739+
dst->tcp_data_split = (enum ethtool_tcp_data_split)ynl_attr_get_u8(attr);
37403740
} else if (type == ETHTOOL_A_RINGS_CQE_SIZE) {
37413741
if (ynl_attr_validate(yarg, attr))
37423742
return YNL_PARSE_CB_ERROR;
@@ -4695,7 +4695,7 @@ int ethtool_tsinfo_get_rsp_parse(const struct nlmsghdr *nlh,
46954695
} else if (type == ETHTOOL_A_TSINFO_HWTSTAMP_SOURCE) {
46964696
if (ynl_attr_validate(yarg, attr))
46974697
return YNL_PARSE_CB_ERROR;
4698-
dst->hwtstamp_source = (hwtstamp_source)ynl_attr_get_u32(attr);
4698+
dst->hwtstamp_source = (enum hwtstamp_source)ynl_attr_get_u32(attr);
46994699
} else if (type == ETHTOOL_A_TSINFO_HWTSTAMP_PHYINDEX) {
47004700
if (ynl_attr_validate(yarg, attr))
47014701
return YNL_PARSE_CB_ERROR;
@@ -5542,7 +5542,7 @@ int ethtool_pse_get_rsp_parse(const struct nlmsghdr *nlh,
55425542
} else if (type == ETHTOOL_A_C33_PSE_EXT_STATE) {
55435543
if (ynl_attr_validate(yarg, attr))
55445544
return YNL_PARSE_CB_ERROR;
5545-
dst->c33_pse_ext_state = (ethtool_c33_pse_ext_state)ynl_attr_get_u32(attr);
5545+
dst->c33_pse_ext_state = (enum ethtool_c33_pse_ext_state)ynl_attr_get_u32(attr);
55465546
} else if (type == ETHTOOL_A_C33_PSE_EXT_SUBSTATE) {
55475547
if (ynl_attr_validate(yarg, attr))
55485548
return YNL_PARSE_CB_ERROR;
@@ -6281,7 +6281,7 @@ int ethtool_phy_get_rsp_parse(const struct nlmsghdr *nlh,
62816281
} else if (type == ETHTOOL_A_PHY_UPSTREAM_TYPE) {
62826282
if (ynl_attr_validate(yarg, attr))
62836283
return YNL_PARSE_CB_ERROR;
6284-
dst->upstream_type = (phy_upstream)ynl_attr_get_u32(attr);
6284+
dst->upstream_type = (enum phy_upstream)ynl_attr_get_u32(attr);
62856285
} else if (type == ETHTOOL_A_PHY_UPSTREAM_INDEX) {
62866286
if (ynl_attr_validate(yarg, attr))
62876287
return YNL_PARSE_CB_ERROR;
@@ -6668,7 +6668,7 @@ int ethtool_module_fw_flash_ntf_rsp_parse(const struct nlmsghdr *nlh,
66686668
} else if (type == ETHTOOL_A_MODULE_FW_FLASH_STATUS) {
66696669
if (ynl_attr_validate(yarg, attr))
66706670
return YNL_PARSE_CB_ERROR;
6671-
dst->status = (ethtool_module_fw_flash_status)ynl_attr_get_u32(attr);
6671+
dst->status = (enum ethtool_module_fw_flash_status)ynl_attr_get_u32(attr);
66726672
} else if (type == ETHTOOL_A_MODULE_FW_FLASH_STATUS_MSG) {
66736673
if (ynl_attr_validate(yarg, attr))
66746674
return YNL_PARSE_CB_ERROR;

generated/ethtool-user.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ struct ethtool_rings_get_rsp {
595595
std::optional<__u32> rx_jumbo;
596596
std::optional<__u32> tx;
597597
std::optional<__u32> rx_buf_len;
598-
std::optional<ethtool_tcp_data_split> tcp_data_split;
598+
std::optional<enum ethtool_tcp_data_split> tcp_data_split;
599599
std::optional<__u32> cqe_size;
600600
std::optional<__u8> tx_push;
601601
std::optional<__u8> rx_push;
@@ -641,7 +641,7 @@ struct ethtool_rings_set_req {
641641
std::optional<__u32> rx_jumbo;
642642
std::optional<__u32> tx;
643643
std::optional<__u32> rx_buf_len;
644-
std::optional<ethtool_tcp_data_split> tcp_data_split;
644+
std::optional<enum ethtool_tcp_data_split> tcp_data_split;
645645
std::optional<__u32> cqe_size;
646646
std::optional<__u8> tx_push;
647647
std::optional<__u8> rx_push;
@@ -1239,7 +1239,7 @@ struct ethtool_pse_get_rsp {
12391239
std::optional<__u32> c33_pse_pw_d_status;
12401240
std::optional<__u32> c33_pse_pw_class;
12411241
std::optional<__u32> c33_pse_actual_pw;
1242-
std::optional<ethtool_c33_pse_ext_state> c33_pse_ext_state;
1242+
std::optional<enum ethtool_c33_pse_ext_state> c33_pse_ext_state;
12431243
std::optional<__u32> c33_pse_ext_substate;
12441244
std::optional<__u32> c33_pse_avail_pw_limit;
12451245
std::vector<ethtool_c33_pse_pw_limit> c33_pse_pw_limit_ranges;
@@ -1501,7 +1501,7 @@ struct ethtool_phy_get_rsp {
15011501
std::optional<__u32> index;
15021502
std::string drvname;
15031503
std::string name;
1504-
std::optional<phy_upstream> upstream_type;
1504+
std::optional<enum phy_upstream> upstream_type;
15051505
std::optional<__u32> upstream_index;
15061506
std::string upstream_sfp_name;
15071507
std::string downstream_sfp_name;
@@ -1608,7 +1608,7 @@ struct ethtool_cable_test_tdr_ntf {
16081608
/* ETHTOOL_MSG_MODULE_FW_FLASH_NTF - event */
16091609
struct ethtool_module_fw_flash_ntf_rsp {
16101610
std::optional<ethtool_header> header;
1611-
std::optional<ethtool_module_fw_flash_status> status;
1611+
std::optional<enum ethtool_module_fw_flash_status> status;
16121612
std::string status_msg;
16131613
std::optional<__u64> done;
16141614
std::optional<__u64> total;

generated/handshake-user.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,15 +187,15 @@ int handshake_accept_rsp_parse(const struct nlmsghdr *nlh,
187187
} else if (type == HANDSHAKE_A_ACCEPT_MESSAGE_TYPE) {
188188
if (ynl_attr_validate(yarg, attr))
189189
return YNL_PARSE_CB_ERROR;
190-
dst->message_type = (handshake_msg_type)ynl_attr_get_u32(attr);
190+
dst->message_type = (enum handshake_msg_type)ynl_attr_get_u32(attr);
191191
} else if (type == HANDSHAKE_A_ACCEPT_TIMEOUT) {
192192
if (ynl_attr_validate(yarg, attr))
193193
return YNL_PARSE_CB_ERROR;
194194
dst->timeout = (__u32)ynl_attr_get_u32(attr);
195195
} else if (type == HANDSHAKE_A_ACCEPT_AUTH_MODE) {
196196
if (ynl_attr_validate(yarg, attr))
197197
return YNL_PARSE_CB_ERROR;
198-
dst->auth_mode = (handshake_auth)ynl_attr_get_u32(attr);
198+
dst->auth_mode = (enum handshake_auth)ynl_attr_get_u32(attr);
199199
} else if (type == HANDSHAKE_A_ACCEPT_PEER_IDENTITY) {
200200
n_peer_identity++;
201201
} else if (type == HANDSHAKE_A_ACCEPT_CERTIFICATE) {

generated/handshake-user.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@ struct handshake_x509 {
3939
/* ============== HANDSHAKE_CMD_ACCEPT ============== */
4040
/* HANDSHAKE_CMD_ACCEPT - do */
4141
struct handshake_accept_req {
42-
std::optional<handshake_handler_class> handler_class;
42+
std::optional<enum handshake_handler_class> handler_class;
4343
};
4444

4545
struct handshake_accept_rsp {
4646
std::optional<__s32> sockfd;
47-
std::optional<handshake_msg_type> message_type;
47+
std::optional<enum handshake_msg_type> message_type;
4848
std::optional<__u32> timeout;
49-
std::optional<handshake_auth> auth_mode;
49+
std::optional<enum handshake_auth> auth_mode;
5050
std::vector<__u32> peer_identity;
5151
std::vector<handshake_x509> certificate;
5252
std::string peername;

generated/net_shaper-user.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ int net_shaper_handle_parse(struct ynl_parse_arg *yarg,
184184
if (type == NET_SHAPER_A_HANDLE_SCOPE) {
185185
if (ynl_attr_validate(yarg, attr))
186186
return YNL_PARSE_CB_ERROR;
187-
dst->scope = (net_shaper_scope)ynl_attr_get_u32(attr);
187+
dst->scope = (enum net_shaper_scope)ynl_attr_get_u32(attr);
188188
} else if (type == NET_SHAPER_A_HANDLE_ID) {
189189
if (ynl_attr_validate(yarg, attr))
190190
return YNL_PARSE_CB_ERROR;
@@ -250,7 +250,7 @@ int net_shaper_get_rsp_parse(const struct nlmsghdr *nlh,
250250
} else if (type == NET_SHAPER_A_METRIC) {
251251
if (ynl_attr_validate(yarg, attr))
252252
return YNL_PARSE_CB_ERROR;
253-
dst->metric = (net_shaper_metric)ynl_attr_get_u32(attr);
253+
dst->metric = (enum net_shaper_metric)ynl_attr_get_u32(attr);
254254
} else if (type == NET_SHAPER_A_BW_MIN) {
255255
if (ynl_attr_validate(yarg, attr))
256256
return YNL_PARSE_CB_ERROR;
@@ -491,7 +491,7 @@ int net_shaper_cap_get_rsp_parse(const struct nlmsghdr *nlh,
491491
} else if (type == NET_SHAPER_A_CAPS_SCOPE) {
492492
if (ynl_attr_validate(yarg, attr))
493493
return YNL_PARSE_CB_ERROR;
494-
dst->scope = (net_shaper_scope)ynl_attr_get_u32(attr);
494+
dst->scope = (enum net_shaper_scope)ynl_attr_get_u32(attr);
495495
} else if (type == NET_SHAPER_A_CAPS_SUPPORT_METRIC_BPS) {
496496
if (ynl_attr_validate(yarg, attr))
497497
return YNL_PARSE_CB_ERROR;

generated/net_shaper-user.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ std::string_view net_shaper_metric_str(net_shaper_metric value);
3131

3232
/* Common nested types */
3333
struct net_shaper_handle {
34-
std::optional<net_shaper_scope> scope;
34+
std::optional<enum net_shaper_scope> scope;
3535
std::optional<__u32> id;
3636
};
3737

@@ -52,7 +52,7 @@ struct net_shaper_get_rsp {
5252
std::optional<__u32> ifindex;
5353
std::optional<net_shaper_handle> parent;
5454
std::optional<net_shaper_handle> handle;
55-
std::optional<net_shaper_metric> metric;
55+
std::optional<enum net_shaper_metric> metric;
5656
std::optional<__u64> bw_min;
5757
std::optional<__u64> bw_max;
5858
std::optional<__u64> burst;
@@ -84,7 +84,7 @@ net_shaper_get_dump(ynl_cpp::ynl_socket& ys, net_shaper_get_req_dump& req);
8484
struct net_shaper_set_req {
8585
std::optional<__u32> ifindex;
8686
std::optional<net_shaper_handle> handle;
87-
std::optional<net_shaper_metric> metric;
87+
std::optional<enum net_shaper_metric> metric;
8888
std::optional<__u64> bw_min;
8989
std::optional<__u64> bw_max;
9090
std::optional<__u64> burst;
@@ -129,7 +129,7 @@ struct net_shaper_group_req {
129129
std::optional<__u32> ifindex;
130130
std::optional<net_shaper_handle> parent;
131131
std::optional<net_shaper_handle> handle;
132-
std::optional<net_shaper_metric> metric;
132+
std::optional<enum net_shaper_metric> metric;
133133
std::optional<__u64> bw_min;
134134
std::optional<__u64> bw_max;
135135
std::optional<__u64> burst;
@@ -172,12 +172,12 @@ net_shaper_group(ynl_cpp::ynl_socket& ys, net_shaper_group_req& req);
172172
/* NET_SHAPER_CMD_CAP_GET - do */
173173
struct net_shaper_cap_get_req {
174174
std::optional<__u32> ifindex;
175-
std::optional<net_shaper_scope> scope;
175+
std::optional<enum net_shaper_scope> scope;
176176
};
177177

178178
struct net_shaper_cap_get_rsp {
179179
std::optional<__u32> ifindex;
180-
std::optional<net_shaper_scope> scope;
180+
std::optional<enum net_shaper_scope> scope;
181181
bool support_metric_bps{};
182182
bool support_metric_pps{};
183183
bool support_nesting{};

0 commit comments

Comments
 (0)