]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[undi] Report any PXENV_UNDI_ISR errors via netdev_rx_err()
authorMichael Brown <mcb30@ipxe.org>
Sat, 3 May 2014 12:00:02 +0000 (13:00 +0100)
committerMichael Brown <mcb30@ipxe.org>
Sat, 3 May 2014 18:52:10 +0000 (19:52 +0100)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/i386/drivers/net/undinet.c

index f83d493111156984998d04be4244784d9f9ce2e7..4a0c9466ae0ccfe00414cffd2ac7a1238c64049c 100644 (file)
@@ -370,8 +370,10 @@ static void undinet_poll ( struct net_device *netdev ) {
                profile_start ( &undinet_isr_call_profiler );
                if ( ( rc = pxeparent_call ( undinet_entry, PXENV_UNDI_ISR,
                                             &undi_isr,
-                                            sizeof ( undi_isr ) ) ) != 0 )
+                                            sizeof ( undi_isr ) ) ) != 0 ) {
+                       netdev_rx_err ( netdev, NULL, rc );
                        break;
+               }
                profile_stop ( &undinet_isr_call_profiler );
                switch ( undi_isr.FuncFlag ) {
                case PXENV_UNDI_ISR_OUT_TRANSMIT: