Commit e390b193 authored by Matt Porter's avatar Matt Porter Committed by Greg Kroah-Hartman

greybus: svc: remove unneeded fields from the unipro set route message payload

CPort connections are being handled in the application layer connection
protocol and the layer 3 switch doesn't care about them. Also, the
switch doesn't care about a source device id when setting up the route
table. Reduce the message to just the necessary destination device ID.

As the SVC is aware of which switch port it found the module/interface
and assigned the device ID, we can simply tell the SVC to set a route
to the device ID it has reported to the AP as being active.
Signed-off-by: default avatarMatt Porter <mporter@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent 6232b073
......@@ -48,10 +48,7 @@ struct svc_function_handshake {
};
struct svc_function_unipro_set_route {
__u8 source_device_id;
__u8 source_cport_id; /* bottom 8 bits */
__u8 destination_device_id;
__u8 destination_cport_id; /* bottom 8 bits */
__u8 device_id;
};
struct svc_function_unipro_link_up {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment