9
0
Fork 0

net: eth_send: Allow to use multiple network interfaces at once

The commit

commit be0404c21f
Author: Sascha Hauer <s.hauer@pengutronix.de>
Date:   Wed May 14 16:08:04 2014 +0200

    net: Allow to use multiple network interfaces at once

changes the eth_send() function:

-       return eth_current->send(eth_current, packet, length);
+       return edev->send(eth_current, packet, length);

But we have to change the both eth_current occurrences to edev here!

Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Antony Pavlov 2015-07-21 00:23:48 +03:00 committed by Sascha Hauer
parent 0011d7c1fc
commit 06df5b2092
1 changed files with 1 additions and 1 deletions

View File

@ -243,7 +243,7 @@ int eth_send(struct eth_device *edev, void *packet, int length)
led_trigger_network(LED_TRIGGER_NET_TX);
return edev->send(eth_current, packet, length);
return edev->send(edev, packet, length);
}
static int __eth_rx(struct eth_device *edev)