http://git.etherboot.org
/
people
/
indolent
/
gpxe.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb16f90
)
Report RX errors via netdev_rx_err()
author
Michael Brown
<mcb30@etherboot.org>
Tue, 10 Jul 2007 16:01:18 +0000
(17:01 +0100)
committer
Michael Brown
<mcb30@etherboot.org>
Tue, 10 Jul 2007 16:01:18 +0000
(17:01 +0100)
src/arch/i386/drivers/net/undinet.c
patch
|
blob
|
history
diff --git
a/src/arch/i386/drivers/net/undinet.c
b/src/arch/i386/drivers/net/undinet.c
index
d985f90
..
03515fd
100644
(file)
--- a/
src/arch/i386/drivers/net/undinet.c
+++ b/
src/arch/i386/drivers/net/undinet.c
@@
-453,6
+453,7
@@
static void undinet_poll ( struct net_device *netdev ) {
"allocate %zd bytes for RX buffer\n",
undinic, len );
/* Fragment will be dropped */
+ netdev_rx_err ( netdev, NULL, -ENOMEM );
goto done;
}
if ( frag_len > iob_tailroom ( iobuf ) ) {
@@
-492,7
+493,7
@@
static void undinet_poll ( struct net_device *netdev ) {
if ( iobuf ) {
DBGC ( undinic, "UNDINIC %p returned incomplete packet\n",
undinic );
- netdev_rx
( netdev, iobuf
);
+ netdev_rx
_err ( netdev, iobuf, -EINVAL
);
}
}