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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The commit

commit be0404c21f22da2d736168b2e56a9ae583cc3e95
Author: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx>
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@xxxxxxxxx>
---
 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


_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux