Browse Source

[undi] Report any PXENV_UNDI_ISR errors via netdev_rx_err()

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 10 years ago
parent
commit
277f581ac3
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      src/arch/i386/drivers/net/undinet.c

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

370
 		profile_start ( &undinet_isr_call_profiler );
370
 		profile_start ( &undinet_isr_call_profiler );
371
 		if ( ( rc = pxeparent_call ( undinet_entry, PXENV_UNDI_ISR,
371
 		if ( ( rc = pxeparent_call ( undinet_entry, PXENV_UNDI_ISR,
372
 					     &undi_isr,
372
 					     &undi_isr,
373
-					     sizeof ( undi_isr ) ) ) != 0 )
373
+					     sizeof ( undi_isr ) ) ) != 0 ) {
374
+			netdev_rx_err ( netdev, NULL, rc );
374
 			break;
375
 			break;
376
+		}
375
 		profile_stop ( &undinet_isr_call_profiler );
377
 		profile_stop ( &undinet_isr_call_profiler );
376
 		switch ( undi_isr.FuncFlag ) {
378
 		switch ( undi_isr.FuncFlag ) {
377
 		case PXENV_UNDI_ISR_OUT_TRANSMIT:
379
 		case PXENV_UNDI_ISR_OUT_TRANSMIT:

Loading…
Cancel
Save