2
0
mirror of https://github.com/xcat2/xNBA.git synced 2024-12-14 23:31:39 +00:00

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

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