Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dpctl queue-get-config error for multiple queues in single port #11

Open
sadov opened this issue Feb 18, 2013 · 0 comments
Open

dpctl queue-get-config error for multiple queues in single port #11

sadov opened this issue Feb 18, 2013 · 0 comments

Comments

@sadov
Copy link

sadov commented Feb 18, 2013

After the setting up of many queues in port, dpctl queue-get-config finished with error.


dpctl unix:/var/run/s4.sock queue-mod 1 1 1

SENDING:
expmodqueue{port="1", queue={q="1", props=[minrate{rate="1"}]}}

OK.

dpctl unix:/var/run/s4.sock queue-get-config 1

SENDING:
q_cnf_req{port="1"}

RECEIVED:
q_cnf_repl{port="1" queues=[{q="1", props=[minrate{rate="1"}]}]}

dpctl unix:/var/run/s4.sock queue-mod 1 2 2

SENDING:
expmodqueue{port="1", queue={q="2", props=[minrate{rate="2"}]}}

OK.

dpctl unix:/var/run/s4.sock queue-get-config 1

SENDING:
q_cnf_req{port="1"}

Feb 18 06:02:01|00001|ofl_str|WARN|Received queue prop has invalid length.
dpctl: Error unpacking reply.


Looks like incorrect data manipulation at ofl_utils_count_ofp_queue_props function in oflib/ofl-structs.c. At debug print we can see incorrect value in prop->len at second step of while-loop:

data_len=48, ntohs(prop->len)=16, sizeof(struct ofp_queue_prop_header)=8
data_len=32, ntohs(prop->len)=2, sizeof(struct ofp_queue_prop_header)=8

Feb 18 06:02:01|00001|ofl_str|WARN|Received queue prop has invalid length.
dpctl: Error unpacking reply.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant