From: Matt Porter Date: Wed, 22 Oct 2014 06:06:08 +0000 (-0400) Subject: greybus: svc: remove unneeded fields from the unipro set route message payload X-Git-Tag: v4.9-rc1~119^2~378^2~21^2~1975 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=e390b193d6abef0ed3316e3738cbadba8e9c7e17;p=karo-tx-linux.git 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: Matt Porter Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/svc_msg.h b/drivers/staging/greybus/svc_msg.h index 47597e6cd47b..661cbaeb159e 100644 --- a/drivers/staging/greybus/svc_msg.h +++ b/drivers/staging/greybus/svc_msg.h @@ -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 {