david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

Report RX errors via netdev_rx_err()

This commit is contained in:
Michael Brown 2007-07-10 17:01:18 +01:00
parent fb16f90699
commit f6f9a3098d
1 changed files with 2 additions and 1 deletions

View File

@ -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 );
}
}