mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] net: eth_send: Allow to use multiple network interfaces at once
@ 2015-07-20 21:23 Antony Pavlov
  2015-07-23  8:51 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Antony Pavlov @ 2015-07-20 21:23 UTC (permalink / raw)
  To: barebox

The commit

commit be0404c21f22da2d736168b2e56a9ae583cc3e95
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>
---
 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@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] net: eth_send: Allow to use multiple network interfaces at once
  2015-07-20 21:23 [PATCH] net: eth_send: Allow to use multiple network interfaces at once Antony Pavlov
@ 2015-07-23  8:51 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2015-07-23  8:51 UTC (permalink / raw)
  To: Antony Pavlov; +Cc: barebox

On Tue, Jul 21, 2015 at 12:23:48AM +0300, Antony Pavlov wrote:
> The commit
> 
> commit be0404c21f22da2d736168b2e56a9ae583cc3e95
> 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>

Applied, thanks

Sascha

-- 
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
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-07-23  8:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-20 21:23 [PATCH] net: eth_send: Allow to use multiple network interfaces at once Antony Pavlov
2015-07-23  8:51 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox