lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 17 Dec 2008 16:54:40 -0800 (PST)
From:	David Miller <davem@...emloft.net>
To:	afleming@...escale.com
Cc:	jeff@...zik.org, netdev@...r.kernel.org
Subject: Re: [PATCH v2.6.29 v3 5/5] gianfar: Continue polling until both tx
 and rx are empty

From: Andy Fleming <afleming@...escale.com>
Date: Wed, 17 Dec 2008 15:42:55 -0600

> gfar_poll would declare polling done once the rx queue was empty,
> but the tx queue could still have packets left.
> 
> Stolen mostly from the e1000 driver.
> 
> Signed-off-by: Andy Fleming <afleming@...escale.com>

Applied.

But I absolutely do not recommend this polling technique at all.

The best scheme is to first purge your TX ring completely, and do not
apply any quota to this work.  It's relatively cheap and batches well.

Then, you process the RX ring and apply the quota only to the RX ring
work.

This is what every NAPI driver I've written does and it gives the best
results.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ