]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
greybus: svc: remove unneeded fields from the unipro set route message payload
authorMatt Porter <mporter@linaro.org>
Wed, 22 Oct 2014 06:06:08 +0000 (02:06 -0400)
committerGreg Kroah-Hartman <greg@kroah.com>
Wed, 22 Oct 2014 06:12:17 +0000 (14:12 +0800)
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 <mporter@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/svc_msg.h

index 47597e6cd47b2b26c9ee19a942fed3089dc2f8d6..661cbaeb159e09d6c597d5a5d920abc933614220 100644 (file)
@@ -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 {