lists.osmocom.org
Sign In Sign Up
Manage this list Sign In Sign Up

Keyboard Shortcuts

Thread View

  • j: Next unread message
  • k: Previous unread message
  • j a: Jump to all threads
  • j l: Jump to MailingList overview

gerrit-log

Thread Start a new thread
Download
Threads by month
  • ----- 2026 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2025 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2024 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2023 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2022 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
gerrit-log@lists.osmocom.org

August 2023

  • 1 participants
  • 1514 discussions
[S] Change in libosmo-abis[master]: dahdi: Add missing msg->l2h
by laforge 01 Aug '23

01 Aug '23
Attention is currently required from: jolly. laforge has posted comments on this change. ( https://gerrit.osmocom.org/c/libosmo-abis/+/34035 ) Change subject: dahdi: Add missing msg->l2h ...................................................................... Patch Set 1: Code-Review+1 -- To view, visit https://gerrit.osmocom.org/c/libosmo-abis/+/34035 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: libosmo-abis Gerrit-Branch: master Gerrit-Change-Id: Ieec5e2e6bacc4bce465c29b2148537e8b2218a00 Gerrit-Change-Number: 34035 Gerrit-PatchSet: 1 Gerrit-Owner: jolly <andreas(a)eversberg.eu> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: laforge <laforge(a)osmocom.org> Gerrit-Attention: jolly <andreas(a)eversberg.eu> Gerrit-Comment-Date: Tue, 01 Aug 2023 07:58:42 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes Gerrit-MessageType: comment
1 0
0 0
[S] Change in libosmo-abis[master]: dahdi: Disable OSMO_FD_WRITE if HDLC/RAW write queue is empty
by jolly 01 Aug '23

01 Aug '23
jolly has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmo-abis/+/34034 ) Change subject: dahdi: Disable OSMO_FD_WRITE if HDLC/RAW write queue is empty ...................................................................... dahdi: Disable OSMO_FD_WRITE if HDLC/RAW write queue is empty Not doing so will cause 100% CPU usage, because the write functions are constantly called if their queue is empty. Change-Id: I2c544594eb187110861ab2564323654a2dc6e85a --- M src/input/dahdi.c 1 file changed, 18 insertions(+), 2 deletions(-) git pull ssh://gerrit.osmocom.org:29418/libosmo-abis refs/changes/34/34034/1 diff --git a/src/input/dahdi.c b/src/input/dahdi.c index acf1f94..b4e6657 100644 --- a/src/input/dahdi.c +++ b/src/input/dahdi.c @@ -277,8 +277,10 @@ /* get the next msg for this timeslot */ msg = e1inp_tx_ts(e1i_ts, NULL); - if (!msg) + if (!msg) { + osmo_fd_write_disable(bfd); return; + } if (msgb_tailroom(msg) >= 2) { /* two bytes of space for the FCS added by DAHDI in the kernel */ @@ -402,8 +404,10 @@ /* get the next msg for this timeslot */ msg = e1inp_tx_ts(e1i_ts, NULL); - if (!msg) + if (!msg) { + osmo_fd_write_disable(bfd); return 0; + } if (msg->len != D_BCHAN_TX_GRAN) { /* This might lead to a transmit underrun, as we call tx -- To view, visit https://gerrit.osmocom.org/c/libosmo-abis/+/34034 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: libosmo-abis Gerrit-Branch: master Gerrit-Change-Id: I2c544594eb187110861ab2564323654a2dc6e85a Gerrit-Change-Number: 34034 Gerrit-PatchSet: 1 Gerrit-Owner: jolly <andreas(a)eversberg.eu> Gerrit-MessageType: newchange
1 0
0 0
[S] Change in libosmo-abis[master]: dahdi: Add missing msg->l2h
by jolly 01 Aug '23

01 Aug '23
jolly has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmo-abis/+/34035 ) Change subject: dahdi: Add missing msg->l2h ...................................................................... dahdi: Add missing msg->l2h l2h is now set in all receive functions after putting received data to the msgb. Change-Id: Ieec5e2e6bacc4bce465c29b2148537e8b2218a00 --- M src/input/dahdi.c 1 file changed, 16 insertions(+), 2 deletions(-) git pull ssh://gerrit.osmocom.org:29418/libosmo-abis refs/changes/35/34035/1 diff --git a/src/input/dahdi.c b/src/input/dahdi.c index b4e6657..2120575 100644 --- a/src/input/dahdi.c +++ b/src/input/dahdi.c @@ -181,11 +181,12 @@ LOGPITS(e1i_ts, DLMI, LOGL_ERROR, "%s read failed %d (%s)\n", __func__, ret, strerror(errno)); return ret; } - msgb_put(msg, ret - 2); if (ret <= 3) { LOGPITS(e1i_ts, DLMI, LOGL_ERROR, "%s read failed %d (%s)\n", __func__, ret, strerror(errno)); return ret; } + msgb_put(msg, ret - 2); + msg->l2h = msg->data; return e1inp_rx_ts_lapd(e1i_ts, msg); } @@ -317,11 +318,12 @@ LOGPITS(e1i_ts, DLMI, LOGL_ERROR, "%s read failed %d (%s)\n", __func__, ret, strerror(errno)); return ret; } - msgb_put(msg, ret - 2); if (ret <= 3) { LOGPITS(e1i_ts, DLMI, LOGL_ERROR, "%s read failed %d (%s)\n", __func__, ret, strerror(errno)); return ret; } + msgb_put(msg, ret - 2); + msg->l2h = msg->data; return e1inp_rx_ts(e1i_ts, msg, 0, 0); } -- To view, visit https://gerrit.osmocom.org/c/libosmo-abis/+/34035 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: libosmo-abis Gerrit-Branch: master Gerrit-Change-Id: Ieec5e2e6bacc4bce465c29b2148537e8b2218a00 Gerrit-Change-Number: 34035 Gerrit-PatchSet: 1 Gerrit-Owner: jolly <andreas(a)eversberg.eu> Gerrit-MessageType: newchange
1 0
0 0
[S] Change in libosmo-abis[master]: dahdi: Add msgb_free() to prevent memeory leaks
by jolly 01 Aug '23

01 Aug '23
jolly has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmo-abis/+/34036 ) Change subject: dahdi: Add msgb_free() to prevent memeory leaks ...................................................................... dahdi: Add msgb_free() to prevent memeory leaks Change-Id: I862dfa80dc195639552f99ec0734ec94290a7bb5 --- M src/input/dahdi.c 1 file changed, 15 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/libosmo-abis refs/changes/36/34036/1 diff --git a/src/input/dahdi.c b/src/input/dahdi.c index 2120575..7838866 100644 --- a/src/input/dahdi.c +++ b/src/input/dahdi.c @@ -179,10 +179,12 @@ handle_dahdi_exception(e1i_ts); else if (ret < 0) { LOGPITS(e1i_ts, DLMI, LOGL_ERROR, "%s read failed %d (%s)\n", __func__, ret, strerror(errno)); + msgb_free(msg); return ret; } if (ret <= 3) { LOGPITS(e1i_ts, DLMI, LOGL_ERROR, "%s read failed %d (%s)\n", __func__, ret, strerror(errno)); + msgb_free(msg); return ret; } msgb_put(msg, ret - 2); @@ -316,10 +318,12 @@ handle_dahdi_exception(e1i_ts); else if (ret < 0) { LOGPITS(e1i_ts, DLMI, LOGL_ERROR, "%s read failed %d (%s)\n", __func__, ret, strerror(errno)); + msgb_free(msg); return ret; } if (ret <= 3) { LOGPITS(e1i_ts, DLMI, LOGL_ERROR, "%s read failed %d (%s)\n", __func__, ret, strerror(errno)); + msgb_free(msg); return ret; } msgb_put(msg, ret - 2); @@ -377,6 +381,7 @@ ret = read(bfd->fd, msg->data, D_TSX_ALLOC_SIZE); if (ret < 0 || ret != D_TSX_ALLOC_SIZE) { LOGPITS(e1i_ts, DLINP, LOGL_DEBUG, "read error %d %s\n", ret, strerror(errno)); + msgb_free(msg); return ret; } @@ -446,6 +451,7 @@ ret = read(bfd->fd, msg->data, D_TSX_ALLOC_SIZE); if (ret < 0 || ret != D_TSX_ALLOC_SIZE) { LOGPITS(e1i_ts, DLINP, LOGL_DEBUG, "read error %d %s\n", ret, strerror(errno)); + msgb_free(msg); return ret; } -- To view, visit https://gerrit.osmocom.org/c/libosmo-abis/+/34036 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: libosmo-abis Gerrit-Branch: master Gerrit-Change-Id: I862dfa80dc195639552f99ec0734ec94290a7bb5 Gerrit-Change-Number: 34036 Gerrit-PatchSet: 1 Gerrit-Owner: jolly <andreas(a)eversberg.eu> Gerrit-MessageType: newchange
1 0
0 0
  • ← Newer
  • 1
  • ...
  • 149
  • 150
  • 151
  • 152
  • Older →

HyperKitty Powered by HyperKitty version 1.3.12.