Browse Source

Report RX errors via netdev_rx_err()

tags/v0.9.3
Michael Brown 17 years ago
parent
commit
f6f9a3098d
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      src/arch/i386/drivers/net/undinet.c

+ 2
- 1
src/arch/i386/drivers/net/undinet.c View File

453
 				       "allocate %zd bytes for RX buffer\n",
453
 				       "allocate %zd bytes for RX buffer\n",
454
 				       undinic, len );
454
 				       undinic, len );
455
 				/* Fragment will be dropped */
455
 				/* Fragment will be dropped */
456
+				netdev_rx_err ( netdev, NULL, -ENOMEM );
456
 				goto done;
457
 				goto done;
457
 			}
458
 			}
458
 			if ( frag_len > iob_tailroom ( iobuf ) ) {
459
 			if ( frag_len > iob_tailroom ( iobuf ) ) {
492
 	if ( iobuf ) {
493
 	if ( iobuf ) {
493
 		DBGC ( undinic, "UNDINIC %p returned incomplete packet\n",
494
 		DBGC ( undinic, "UNDINIC %p returned incomplete packet\n",
494
 		       undinic );
495
 		       undinic );
495
-		netdev_rx ( netdev, iobuf );
496
+		netdev_rx_err ( netdev, iobuf, -EINVAL );
496
 	}
497
 	}
497
 }
498
 }
498
 
499
 

Loading…
Cancel
Save