tbf: Make snd_ul_ud() and assemble_forward_llc() methods of UL TBF
They are only called for UL TBF. Ticket: SYS#389 Sponsored by: On-Waves ehf
This commit is contained in:
parent
f72fcfe219
commit
e2732e2f59
|
@ -728,7 +728,7 @@ struct msgb *gprs_rlcmac_tbf::llc_dequeue(bssgp_bvc_ctx *bctx)
|
||||||
* Store received block data in LLC message(s) and forward to SGSN
|
* Store received block data in LLC message(s) and forward to SGSN
|
||||||
* if complete.
|
* if complete.
|
||||||
*/
|
*/
|
||||||
int gprs_rlcmac_tbf::assemble_forward_llc(const gprs_rlc_data *_data)
|
int gprs_rlcmac_ul_tbf::assemble_forward_llc(const gprs_rlc_data *_data)
|
||||||
{
|
{
|
||||||
const uint8_t *data = _data->block;
|
const uint8_t *data = _data->block;
|
||||||
uint8_t len = _data->len;
|
uint8_t len = _data->len;
|
||||||
|
@ -1749,7 +1749,7 @@ void gprs_rlcmac_ul_tbf::maybe_schedule_uplink_acknack(const rlc_ul_header *rh)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Send Uplink unit-data to SGSN. */
|
/* Send Uplink unit-data to SGSN. */
|
||||||
int gprs_rlcmac_tbf::snd_ul_ud()
|
int gprs_rlcmac_ul_tbf::snd_ul_ud()
|
||||||
{
|
{
|
||||||
uint8_t qos_profile[3];
|
uint8_t qos_profile[3];
|
||||||
struct msgb *llc_pdu;
|
struct msgb *llc_pdu;
|
||||||
|
|
|
@ -118,12 +118,8 @@ struct gprs_rlcmac_tbf {
|
||||||
/* TODO: add the gettimeofday as parameter */
|
/* TODO: add the gettimeofday as parameter */
|
||||||
struct msgb *llc_dequeue(bssgp_bvc_ctx *bctx);
|
struct msgb *llc_dequeue(bssgp_bvc_ctx *bctx);
|
||||||
|
|
||||||
/* TODO: extract LLC class? */
|
|
||||||
int assemble_forward_llc(const gprs_rlc_data *data);
|
|
||||||
|
|
||||||
struct msgb *create_dl_ass(uint32_t fn);
|
struct msgb *create_dl_ass(uint32_t fn);
|
||||||
struct msgb *create_ul_ass(uint32_t fn);
|
struct msgb *create_ul_ass(uint32_t fn);
|
||||||
int snd_ul_ud();
|
|
||||||
|
|
||||||
uint8_t tsc() const;
|
uint8_t tsc() const;
|
||||||
|
|
||||||
|
@ -339,6 +335,10 @@ struct gprs_rlcmac_ul_tbf : public gprs_rlcmac_tbf {
|
||||||
/* blocks were acked */
|
/* blocks were acked */
|
||||||
int rcv_data_block_acknowledged(const uint8_t *data, size_t len, int8_t rssi);
|
int rcv_data_block_acknowledged(const uint8_t *data, size_t len, int8_t rssi);
|
||||||
|
|
||||||
|
/* TODO: extract LLC class? */
|
||||||
|
int assemble_forward_llc(const gprs_rlc_data *data);
|
||||||
|
int snd_ul_ud();
|
||||||
|
|
||||||
/* Please note that all variables here will be reset when changing
|
/* Please note that all variables here will be reset when changing
|
||||||
* from WAIT RELEASE back to FLOW state (re-use of TBF).
|
* from WAIT RELEASE back to FLOW state (re-use of TBF).
|
||||||
* All states that need reset must be in this struct, so this is why
|
* All states that need reset must be in this struct, so this is why
|
||||||
|
|
Loading…
Reference in New Issue