Skip to contentSkip to conversation

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

PATCH Applied Antony Pavlov 2 participants 2 messages Jul 20, 2015 – Jul 23, 2015 Networking

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: eth_send: Allow to use multiple network interfaces at once

The commit

commit be0404c21f22da2d736168b2e56a9ae583cc3e95

Author: Sascha Hauer <[email protected]>
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!

---
 net/eth.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/eth.c +1 -1
index a090961..bea4706 100644
@@ -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)
Signature · 7 lines
2.1.4


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Applied
#1 lore raw
Quoted 13 lines · Antony Pavlov

The commit

commit be0404c21f22da2d736168b2e56a9ae583cc3e95

Author: Sascha Hauer <[email protected]>
Date:   Wed May 14 16:08:04 2014 +0200

net: Allow to use multiple network interfaces at once

changes the eth_send() function:

(quoted diff) +1 -1
-       return eth_current->send(eth_current, packet, length);
+       return edev->send(eth_current, packet, length);
Quoted 3 lines

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

Applied, thanks

Sascha

Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox