diff --git a/home/nipa/nipa_out/846269/ynl/old-code/netdev-user.c b/home/nipa/nipa_out/846269/ynl/new-code/netdev-user.c index 40acba3010f5..c4c7b3454e4f 100644 --- a/home/nipa/nipa_out/846269/ynl/old-code/netdev-user.c +++ b/home/nipa/nipa_out/846269/ynl/new-code/netdev-user.c @@ -1039,6 +1039,8 @@ netdev_qstats_get_dump(struct ynl_sock *ys, nlh = ynl_gemsg_start_dump(ys, ys->family_id, NETDEV_CMD_QSTATS_GET, 1); ys->req_policy = &netdev_qstats_nest; + if (req->_present.ifindex) + ynl_attr_put_u32(nlh, NETDEV_A_QSTATS_IFINDEX, req->ifindex); if (req->_present.scope) ynl_attr_put_uint(nlh, NETDEV_A_QSTATS_SCOPE, req->scope); diff --git a/home/nipa/nipa_out/846269/ynl/old-code/netdev-user.h b/home/nipa/nipa_out/846269/ynl/new-code/netdev-user.h index 7b0fdd741018..906271a8ba74 100644 --- a/home/nipa/nipa_out/846269/ynl/old-code/netdev-user.h +++ b/home/nipa/nipa_out/846269/ynl/new-code/netdev-user.h @@ -444,9 +444,11 @@ netdev_napi_get_dump(struct ynl_sock *ys, struct netdev_napi_get_req_dump *req); /* NETDEV_CMD_QSTATS_GET - dump */ struct netdev_qstats_get_req_dump { struct { + __u32 ifindex:1; __u32 scope:1; } _present; + __u32 ifindex; __u64 scope; }; @@ -457,6 +459,13 @@ netdev_qstats_get_req_dump_alloc(void) } void netdev_qstats_get_req_dump_free(struct netdev_qstats_get_req_dump *req); +static inline void +netdev_qstats_get_req_dump_set_ifindex(struct netdev_qstats_get_req_dump *req, + __u32 ifindex) +{ + req->_present.ifindex = 1; + req->ifindex = ifindex; +} static inline void netdev_qstats_get_req_dump_set_scope(struct netdev_qstats_get_req_dump *req, __u64 scope)