[PATCH] net: eth_send: Allow to use multiple network interfaces at once

Antony Pavlov antonynpavlov at gmail.com
Mon Jul 20 14:23:48 PDT 2015


The commit

commit be0404c21f22da2d736168b2e56a9ae583cc3e95
Author: Sascha Hauer <s.hauer at 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 at gmail.com>
---
 net/eth.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/eth.c b/net/eth.c
index a090961..bea4706 100644
--- a/net/eth.c
+++ b/net/eth.c
@@ -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)
-- 
2.1.4




More information about the barebox mailing list