Change in titan.TestPorts.AF_PACKET[master]: add module parameter "sleep_on_enobufs" to work around -ENOBUFS

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

laforge gerrit-no-reply at lists.osmocom.org
Fri Jan 29 20:29:22 UTC 2021


laforge has uploaded a new patch set (#2). ( https://gerrit.osmocom.org/c/titan.TestPorts.AF_PACKET/+/22539 )

Change subject: add module parameter "sleep_on_enobufs" to work around -ENOBUFS
......................................................................

add module parameter "sleep_on_enobufs" to work around -ENOBUFS

AF_PACKET sockets have these incredibly useful semantics in where
for both non-blocking and blocking I/O, they will tell you the
socket is rwite-able, but then still return -1 and sett errno=ENOBUFS
if the current socket buffer / transmit queue is full.

All we can do is usleep and retry.  The new module parameter, if set
to non-zero, determines the number of microseconds we shall sleep before
any retry.  If set to zero, the existing behavior is preserved:
TTCN_error().

Related: SYS#5343
Change-Id: I1608403d94a10ae52c7e1de0f1b02687b048c01e
---
M src/AF_PACKET_PT.cc
M src/AF_PACKET_PT.hh
2 files changed, 17 insertions(+), 5 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/titan.TestPorts.AF_PACKET refs/changes/39/22539/2
-- 
To view, visit https://gerrit.osmocom.org/c/titan.TestPorts.AF_PACKET/+/22539
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: titan.TestPorts.AF_PACKET
Gerrit-Branch: master
Gerrit-Change-Id: I1608403d94a10ae52c7e1de0f1b02687b048c01e
Gerrit-Change-Number: 22539
Gerrit-PatchSet: 2
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-MessageType: newpatchset
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210129/eccb22d7/attachment.htm>


More information about the gerrit-log mailing list