From e390b193d6abef0ed3316e3738cbadba8e9c7e17 Mon Sep 17 00:00:00 2001 From: Matt Porter Date: Wed, 22 Oct 2014 02:06:08 -0400 Subject: [PATCH] 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 --- drivers/staging/greybus/svc_msg.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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 { -- 2.39.5