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:
parent
fb16f90699
commit
f6f9a3098d
@ -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 );
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user