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 <mporter@linaro.org> Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
This commit is contained in:
Родитель
6232b073d4
Коммит
e390b193d6
|
@ -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 {
|
||||
|
|
Загрузка…
Ссылка в новой задаче