Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 35b30674 authored by John W. Linville's avatar John W. Linville Committed by Linus Torvalds
Browse files

[PATCH] 3c59x: correct rx_dropped counting



Only increment rx_dropped in case of lack of resources (i.e. not for
frames with errors).

Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent bb531fc0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2608,8 +2608,8 @@ static int vortex_rx(struct net_device *dev)
			} else if (vortex_debug > 0)
				printk(KERN_NOTICE "%s: No memory to allocate a sk_buff of "
					   "size %d.\n", dev->name, pkt_len);
		}
			vp->stats.rx_dropped++;
		}
		issue_and_wait(dev, RxDiscard);
	}