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:	Sun, 10 Jul 2011 23:54:58 -0700 (PDT)
From:	David Miller <davem@...emloft.net>
To:	mirq-linux@...e.qmqm.pl
Cc:	netdev@...r.kernel.org
Subject: Re: [PATCH v2 00/46] Clean up RX copybreak and DMA handling

From: Michaİİ Mirosİİaw <mirq-linux@...e.qmqm.pl>
Date: Mon, 11 Jul 2011 02:52:46 +0200 (CEST)

>   1. under packet storm and memory pressure NIC keeps generating interrupts
>      (if non-NAPI) and indicating new buffers because it always has free
>      RX buffers --- this only wastes CPU and bus bandwidth transferring
>      data that is going to be immediately discarded;

Actually, this is exactly how I, and others advise people to implement
drivers.  It is the right thing to do.

The worst thing that can happen is to let the RX ring empty of
buffers.  Some cards hang as a result of this, and also it causes head
of line blocking on multiqueue cards, etc.

So the first thing the driver should do is try to allocate a
replacement buffer.

And if that fails, it should give the RX packet right back to the
card, and not pass it up the stack.
--
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