You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The question seem simple, but I can't figure out how to get that. Here is my use case:
I have two network namespaces (red at 192.168.15.1 and blue at 192.168.15.2) connected by a virtual ethernet cable. Red side, the device is named veth-red, blue side, it is named veth-blue. Now i want to add a "plug" qdisc to veth-blue, I'm doing it with the following command lines:
ip netns exec blue nl-qdisc-add --dev veth-blue --parent root --id 1: plug --limit 32000
ip netns exec blue nl-qdisc-add --dev veth-blue --parent root --id 1: --update plug --release-indefinite
Now, I want to be able to "buffer" and "release" my qdisc from a C program. My code looks like that:
My code works fine, my only problem is that I want to be absolutely sure to execute the "/* some code */" part once the qdisc is "buffered" and not before. Thus, I'm looking for a indicator that could tell me whether or not the qdisc is buffered.
I looked into q with gdb, but can't find anything changing between the two states, I tried with rtnl_tc_data(TC_CAST(q)), but it seems it doesn't help me finding what I'm looking for.
Thanks in advance.
The text was updated successfully, but these errors were encountered:
The question seem simple, but I can't figure out how to get that. Here is my use case:
I have two network namespaces (red at 192.168.15.1 and blue at 192.168.15.2) connected by a virtual ethernet cable. Red side, the device is named veth-red, blue side, it is named veth-blue. Now i want to add a "plug" qdisc to veth-blue, I'm doing it with the following command lines:
Now, I want to be able to "buffer" and "release" my qdisc from a C program. My code looks like that:
My code works fine, my only problem is that I want to be absolutely sure to execute the "/* some code */" part once the qdisc is "buffered" and not before. Thus, I'm looking for a indicator that could tell me whether or not the qdisc is buffered.
I looked into q with gdb, but can't find anything changing between the two states, I tried with rtnl_tc_data(TC_CAST(q)), but it seems it doesn't help me finding what I'm looking for.
Thanks in advance.
The text was updated successfully, but these errors were encountered: