|
|
@ -259,10 +259,10 @@ uint32_t rlc_am_nr_tx::build_new_sdu_segment(rlc_amd_tx_pdu_nr& tx_pdu, uint8_t*
|
|
|
|
|
|
|
|
|
|
|
|
// Sanity check: can this SDU be sent considering header overhead?
|
|
|
|
// Sanity check: can this SDU be sent considering header overhead?
|
|
|
|
if (nof_bytes <= min_hdr_size) { // Small header as SO is not present
|
|
|
|
if (nof_bytes <= min_hdr_size) { // Small header as SO is not present
|
|
|
|
RlcError("cannot build new sdu_segment, there are not enough bytes allocated to tx header plus data. nof_bytes=%d, "
|
|
|
|
RlcInfo("cannot build new sdu_segment, there are not enough bytes allocated to tx header plus data. nof_bytes=%d, "
|
|
|
|
"min_hdr_size=%d",
|
|
|
|
"min_hdr_size=%d",
|
|
|
|
nof_bytes,
|
|
|
|
nof_bytes,
|
|
|
|
min_hdr_size);
|
|
|
|
min_hdr_size);
|
|
|
|
return 0;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -332,10 +332,10 @@ uint32_t rlc_am_nr_tx::build_continuation_sdu_segment(rlc_amd_tx_pdu_nr& tx_pdu,
|
|
|
|
|
|
|
|
|
|
|
|
// Sanity check: can this SDU be sent considering header overhead?
|
|
|
|
// Sanity check: can this SDU be sent considering header overhead?
|
|
|
|
if (nof_bytes <= max_hdr_size) { // Larger header size, as SO is present
|
|
|
|
if (nof_bytes <= max_hdr_size) { // Larger header size, as SO is present
|
|
|
|
RlcError("cannot build new sdu_segment, there are not enough bytes allocated to tx header plus data. nof_bytes=%d, "
|
|
|
|
RlcInfo("cannot build new sdu_segment, there are not enough bytes allocated to tx header plus data. nof_bytes=%d, "
|
|
|
|
"max_header_size=%d",
|
|
|
|
"max_header_size=%d",
|
|
|
|
nof_bytes,
|
|
|
|
nof_bytes,
|
|
|
|
max_hdr_size);
|
|
|
|
max_hdr_size);
|
|
|
|
return 0;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|