Report RX errors via netdev_rx_err()
This commit is contained in:
parent
fb16f90699
commit
f6f9a3098d
|
@ -453,6 +453,7 @@ static void undinet_poll ( struct net_device *netdev ) {
|
||||||
"allocate %zd bytes for RX buffer\n",
|
"allocate %zd bytes for RX buffer\n",
|
||||||
undinic, len );
|
undinic, len );
|
||||||
/* Fragment will be dropped */
|
/* Fragment will be dropped */
|
||||||
|
netdev_rx_err ( netdev, NULL, -ENOMEM );
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
if ( frag_len > iob_tailroom ( iobuf ) ) {
|
if ( frag_len > iob_tailroom ( iobuf ) ) {
|
||||||
|
@ -492,7 +493,7 @@ static void undinet_poll ( struct net_device *netdev ) {
|
||||||
if ( iobuf ) {
|
if ( iobuf ) {
|
||||||
DBGC ( undinic, "UNDINIC %p returned incomplete packet\n",
|
DBGC ( undinic, "UNDINIC %p returned incomplete packet\n",
|
||||||
undinic );
|
undinic );
|
||||||
netdev_rx ( netdev, iobuf );
|
netdev_rx_err ( netdev, iobuf, -EINVAL );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in New Issue