summaryrefslogtreecommitdiffstats
path: root/drivers/net/orion-gbe.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2014-05-14 16:04:10 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2014-05-15 08:15:21 +0200
commit22b878d2518a2b31c5991f9c47a2b176f0ac246d (patch)
tree064b4f54c0febcd3b26b90552c277dbaa0386fe7 /drivers/net/orion-gbe.c
parent75482a0663d789a7bc55eedff4a4f6fed0d3f811 (diff)
downloadbarebox-22b878d2518a2b31c5991f9c47a2b176f0ac246d.tar.gz
net: Pass eth_device to net_receive
So that barebox has the information which interface a packet came from. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/net/orion-gbe.c')
-rw-r--r--drivers/net/orion-gbe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/orion-gbe.c b/drivers/net/orion-gbe.c
index 00f5e54..1749704 100644
--- a/drivers/net/orion-gbe.c
+++ b/drivers/net/orion-gbe.c
@@ -303,7 +303,7 @@ static int port_recv(struct eth_device *edev)
ALIGN(PKTSIZE, 8));
/* received packet is padded with two null bytes */
- net_receive(rxdesc->buf_ptr + 0x2, rxdesc->byte_cnt - 0x2);
+ net_receive(edev, rxdesc->buf_ptr + 0x2, rxdesc->byte_cnt - 0x2);
ret = 0;
recv_err: