aboutsummaryrefslogtreecommitdiffstats
path: root/mpm/python/usrp_mpm/xports/xportmgr_udp.py
diff options
context:
space:
mode:
Diffstat (limited to 'mpm/python/usrp_mpm/xports/xportmgr_udp.py')
-rw-r--r--mpm/python/usrp_mpm/xports/xportmgr_udp.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/mpm/python/usrp_mpm/xports/xportmgr_udp.py b/mpm/python/usrp_mpm/xports/xportmgr_udp.py
index 0404a5b69..c5d97a42a 100644
--- a/mpm/python/usrp_mpm/xports/xportmgr_udp.py
+++ b/mpm/python/usrp_mpm/xports/xportmgr_udp.py
@@ -239,6 +239,7 @@ class XportMgrUDP(object):
self,
sid,
xport_type,
+ alloc_limit=2
):
"""
Return UDP xport info
@@ -267,7 +268,7 @@ class XportMgrUDP(object):
if src_addr in self._previous_block_ep:
prev_block = self._previous_block_ep[src_addr]
allocation = int(xport['allocation'])
- if allocation >= 2:
+ if allocation >= alloc_limit:
return allocation
else:
return allocation if prev_block != sid.get_dst_block() else -1;