Change in osmo-ttcn3-hacks[master]: fr + gbproxy: Start to use AF_PACKET ENOBUFS work-around

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
Sat Jan 30 14:08:16 UTC 2021


laforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/22545 )

Change subject: fr + gbproxy: Start to use AF_PACKET ENOBUFS work-around
......................................................................

fr + gbproxy: Start to use AF_PACKET ENOBUFS work-around

If send() on AF_PACKET returns ENOBUFS, usleep for 2ms and re-try
until it succeeds.

Change-Id: Id7bdd2c690eae3bec1df7634944cd73f0bf0b29a
Closes: OS#5343
---
M deps/Makefile
M fr-net/FRNET_Tests.default
M fr/FR_Tests.default
M gbproxy/GBProxy_Tests.default
4 files changed, 4 insertions(+), 1 deletion(-)

Approvals:
  laforge: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/deps/Makefile b/deps/Makefile
index 1f2560b..0a5d86c 100644
--- a/deps/Makefile
+++ b/deps/Makefile
@@ -112,7 +112,7 @@
 titan.ProtocolModules.SUA_commit=		R.5.A-5-gcf1137a
 titan.ProtocolModules.TCP_commit=		R.3.A-5-g39e5f45
 titan.ProtocolModules.UDP_commit=		R.4.A-5-geea8aa3
-titan.TestPorts.AF_PACKET_commit=		0.1-1-gcd69809
+titan.TestPorts.AF_PACKET_commit=		0.1-2-g90ef318
 titan.TestPorts.Common_Components.Socket-API_commit=	R.6.A-6-gf4380d0
 titan.TestPorts.Common_Components.Abstract_Socket_commit=	R.9.B-4-gbd41994
 titan.TestPorts.HTTPmsg_commit=			R.9.B-4-g9a0dfde
diff --git a/fr-net/FRNET_Tests.default b/fr-net/FRNET_Tests.default
index 2fb8c90..d694d98 100644
--- a/fr-net/FRNET_Tests.default
+++ b/fr-net/FRNET_Tests.default
@@ -9,6 +9,7 @@
 [MODULE_PARAMETERS]
 
 [TESTPORT_PARAMETERS]
+*.FR.sleep_on_enobufs := "2000" # 2ms
 
 [MAIN_CONTROLLER]
 
diff --git a/fr/FR_Tests.default b/fr/FR_Tests.default
index 2fb8c90..d7afd31 100644
--- a/fr/FR_Tests.default
+++ b/fr/FR_Tests.default
@@ -9,6 +9,7 @@
 [MODULE_PARAMETERS]
 
 [TESTPORT_PARAMETERS]
+*.FR.sleep_on_enobufs := "2000"
 
 [MAIN_CONTROLLER]
 
diff --git a/gbproxy/GBProxy_Tests.default b/gbproxy/GBProxy_Tests.default
index 8634b49..b0f28f5 100644
--- a/gbproxy/GBProxy_Tests.default
+++ b/gbproxy/GBProxy_Tests.default
@@ -21,6 +21,7 @@
 *.GBPVTY.CTRL_CLIENT_CLEANUP_LINEFEED := "yes"
 *.GBPVTY.CTRL_DETECT_CONNECTION_ESTABLISHMENT_RESULT := "yes"
 *.GBPVTY.PROMPT1 := "OsmoGbProxy> "
+*.FR.sleep_on_enobufs := "2000" # 2ms
 
 
 [MODULE_PARAMETERS]

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/22545
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: Id7bdd2c690eae3bec1df7634944cd73f0bf0b29a
Gerrit-Change-Number: 22545
Gerrit-PatchSet: 2
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210130/f13cd3a2/attachment.htm>


More information about the gerrit-log mailing list