|
@@ -549,7 +549,11 @@ static int realtek_create_ring ( struct realtek_nic *rtl,
|
549
|
549
|
static void realtek_destroy_ring ( struct realtek_nic *rtl,
|
550
|
550
|
struct realtek_ring *ring ) {
|
551
|
551
|
|
552
|
|
- /* Do nothing in legacy mode */
|
|
552
|
+ /* Reset producer and consumer counters */
|
|
553
|
+ ring->prod = 0;
|
|
554
|
+ ring->cons = 0;
|
|
555
|
+
|
|
556
|
+ /* Do nothing more if in legacy mode */
|
553
|
557
|
if ( rtl->legacy )
|
554
|
558
|
return;
|
555
|
559
|
|
|
@@ -560,8 +564,6 @@ static void realtek_destroy_ring ( struct realtek_nic *rtl,
|
560
|
564
|
/* Free descriptor ring */
|
561
|
565
|
free_dma ( ring->desc, ring->len );
|
562
|
566
|
ring->desc = NULL;
|
563
|
|
- ring->prod = 0;
|
564
|
|
- ring->cons = 0;
|
565
|
567
|
}
|
566
|
568
|
|
567
|
569
|
/**
|