dexter has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-pcu/+/37550?usp=email )


Change subject: fix E1 TS output when used with osmo-e1d
......................................................................

fix E1 TS output when used with osmo-e1d

The original code did E1 raw TS output by posting directly to
&ts->raw.tx_queue instead of calling e1inp_ts_send_raw();
doing so bypasses the call to driver->want_write performed in
e1inp layer.  This approach worked for DAHDI where no
select-for-write is used; however, e1inp interface to osmo-e1d
does use select-for-write, hence applications like osmo-mgw
do need to use e1inp_ts_send_raw() API in order to work
correctly.

Change-Id: Ia2e0fa27195fc1ae75e441038eb4adeb4cf1d6cf
---
M src/ericsson-rbs/er_ccu_if.c
1 file changed, 19 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-pcu refs/changes/50/37550/1

diff --git a/src/ericsson-rbs/er_ccu_if.c b/src/ericsson-rbs/er_ccu_if.c
index 98abbf7..ad7f353 100644
--- a/src/ericsson-rbs/er_ccu_if.c
+++ b/src/ericsson-rbs/er_ccu_if.c
@@ -126,7 +126,7 @@
                                                  DEBUG_BYTES_MAX ? 
DEBUG_BYTES_MAX : msgb_length(msg)));
 
        /* Hand data over to the E1 stack */
-       msgb_enqueue(&ts->raw.tx_queue, msg);
+       e1inp_ts_send_raw(ts, msg);
 }

 /* Callback function to handle incoming E1 traffic */

--
To view, visit https://gerrit.osmocom.org/c/osmo-pcu/+/37550?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-pcu
Gerrit-Branch: master
Gerrit-Change-Id: Ia2e0fa27195fc1ae75e441038eb4adeb4cf1d6cf
Gerrit-Change-Number: 37550
Gerrit-PatchSet: 1
Gerrit-Owner: dexter <[email protected]>
Gerrit-CC: falconia <[email protected]>
Gerrit-MessageType: newchange

Reply via email to