* Re: Fwd: Socket CAN - ENOBUFS on write()
[not found] ` <CACJ51z0uOH3Wu1TShhVbj8hqHL-L6M8DEz0XM8o=gru01ahqqA@mail.gmail.com>
@ 2012-07-03 16:21 ` Marc Kleine-Budde
0 siblings, 0 replies; only message in thread
From: Marc Kleine-Budde @ 2012-07-03 16:21 UTC (permalink / raw)
To: Andrew Bell; +Cc: linux-can@vger.kernel.org
[-- Attachment #1: Type: text/plain, Size: 1029 bytes --]
Hey Andew,
please subscribe to the linux-can mailinglist linux-can@vger.kernel.org.
On 07/03/2012 05:55 PM, Andrew Bell wrote:
> I saw an old mail that you wrote about fixing the problem with receiving an
> ENOBUFS error on write() with CAN. I searched the latest kernel but did
> not see the patch there. Can you tell me what has happened with this fix?
Here's no proper fix, yet. If you receive an ENOBUFS, use poll or select
to wait until you can write again. Unfortunately poll will return too
early, so that the next write will probably fail again. Just keep
trying. You can work around the problem by you increasing the
tx_queue_len of your CAN card (before ifconfig up):
ifconfig can0 txqueuelen 10000
Regards, Marc
--
Pengutronix e.K. | Marc Kleine-Budde |
Industrial Linux Solutions | Phone: +49-231-2826-924 |
Vertretung West/Dortmund | Fax: +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de |
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]
^ permalink raw reply [flat|nested] only message in thread