diff options
author | Michal Simek <michal.simek@xilinx.com> | 2015-12-16 10:52:39 +0100 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2016-01-27 15:55:52 +0100 |
commit | f412b6ab5b5d0960d29c82151e8ccd40390bc786 (patch) | |
tree | 274c5d4a64791fb196716bb7a1bba8096081e92a | |
parent | f03ec010158375c404f5b0ebedba7c71c1689d2f (diff) |
net: emaclite: Let core to handle received packet
Pass pointer to core to handle packet.
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
-rw-r--r-- | drivers/net/xilinx_emaclite.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/xilinx_emaclite.c b/drivers/net/xilinx_emaclite.c index 7e9a31ea98..5862bf0a7e 100644 --- a/drivers/net/xilinx_emaclite.c +++ b/drivers/net/xilinx_emaclite.c @@ -93,7 +93,7 @@ struct xemaclite { struct mii_dev *bus; }; -static u32 etherrxbuff[PKTSIZE_ALIGN/4]; /* Receive buffer */ +static uchar etherrxbuff[PKTSIZE_ALIGN]; /* Receive buffer */ static void xemaclite_alignedread(u32 *srcptr, void *destptr, u32 bytecount) { @@ -528,8 +528,8 @@ try_again: out_be32(ack, reg); debug("Packet receive from 0x%p, length %dB\n", addr, length); - net_process_received_packet((uchar *)etherrxbuff, length); - return 0; + *packetp = etherrxbuff; + return length; } static int emaclite_miiphy_read(struct mii_dev *bus, int addr, |