greybus: svc: add flags and traffic class parameter to connection create op
authorPerry Hung <perry@leaflabs.com>
Fri, 24 Jul 2015 23:02:34 +0000 (19:02 -0400)
committerGreg Kroah-Hartman <gregkh@google.com>
Mon, 27 Jul 2015 21:13:10 +0000 (14:13 -0700)
commite50b7be565a888ff0b1ac38247cc3c34e1f9c2f7
tree910ceb766d114e29ee886e0a0f35f46d1d33c1c7
parent9c1552d7c4a97acb759ab41635197d213d677c9e
greybus: svc: add flags and traffic class parameter to connection create op

The AP needs to be able to specify L4 CPort flags and traffic class
parameters on a connection-by-connection basis. Extend the connection
create operation to accept these. Since there's no policy to decide
these, fix them at TC0 with end-to-end-flow control, controlled segment
dropping, and CPort safety valve enabled.

Tested-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Perry Hung <perry@leaflabs.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/greybus_protocols.h
drivers/staging/greybus/svc.c