MT#55283 drop RTPE_MAX_FORWARD_DESTINATIONS limit

This used to be a fixed array size but now is not, and so just acts as
an artificial limitation.

Ref #2241

Change-Id: Ifd5d1951153c9cc7d33a7c5d0d4af7b4ad06efd6
pull/2246/head
Richard Fuchs 1 week ago
parent 50cc14083e
commit bd6a90e157

@ -2074,12 +2074,6 @@ static void kernelize(struct packet_stream *stream) {
"lack of sinks");
}
if (reti->num_destinations > RTPE_MAX_FORWARD_DESTINATIONS) {
ilog(LOG_NOTICE | LOG_FLAG_LIMIT, "Too many outputs for kernel forwarding (%u), "
"keeping the stream in userspace", reti->num_destinations);
goto no_kernel;
}
if (kernel_add_stream(&s.reti))
obj_hold(stream->selected_sfd); // ref in reti.target.raw_ring_buf.opaque

@ -2709,8 +2709,6 @@ static int table_new_target(struct rtpengine_table *t, struct rtpengine_target_i
return -EIO;
if (!is_valid_address(&i->local))
ret_einval("invalid local address");
if (i->num_destinations > RTPE_MAX_FORWARD_DESTINATIONS)
ret_einval("too many destinations (%u)", i->num_destinations);
if (i->num_payload_types > RTPE_NUM_PAYLOAD_TYPES)
ret_einval("too many payload types (%u)", i->num_payload_types);
if (!i->non_forwarding) {

@ -6,7 +6,6 @@
#define RTPE_NUM_PAYLOAD_TYPES 48
#define RTPE_MAX_FORWARD_DESTINATIONS 32
#define RTPE_NUM_SSRC_TRACKING 4
#define RTPE_NUM_EXTMAP_FILTER 32
#define RTPE_NUM_OUTPUT_MEDIA 8

Loading…
Cancel
Save