diff options
author | Alex Williams <alex.williams@ni.com> | 2019-01-24 14:45:12 -0800 |
---|---|---|
committer | Brent Stapleton <brent.stapleton@ettus.com> | 2019-01-25 15:01:03 -0800 |
commit | 6e8b0ec413ad816d88bcb09a24afacb99e145e9e (patch) | |
tree | 2afc1de37f2bd00503ce92baa2a2d0ba904ac499 /mpm/python/usrp_mpm/periph_manager | |
parent | 4bc8701ae27fd6420dbe198b541860b032ac30c6 (diff) | |
download | uhd-6e8b0ec413ad816d88bcb09a24afacb99e145e9e.tar.gz uhd-6e8b0ec413ad816d88bcb09a24afacb99e145e9e.tar.bz2 uhd-6e8b0ec413ad816d88bcb09a24afacb99e145e9e.zip |
mpm: Parameterize max UDP link allocation
Add an argument to the UDP xport_mgr to adjust the xport sorting. This
enables Rhodium to use a different limit from Magnesium. Previously, the
sorting method would overload a link with both of Rhodium's higher-rate
streams.
Diffstat (limited to 'mpm/python/usrp_mpm/periph_manager')
-rw-r--r-- | mpm/python/usrp_mpm/periph_manager/n3xx.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mpm/python/usrp_mpm/periph_manager/n3xx.py b/mpm/python/usrp_mpm/periph_manager/n3xx.py index 64ccb48da..b018d055e 100644 --- a/mpm/python/usrp_mpm/periph_manager/n3xx.py +++ b/mpm/python/usrp_mpm/periph_manager/n3xx.py @@ -507,9 +507,14 @@ class n3xx(ZynqComponents, PeriphManagerBase): # FIXME token! assert self.device_info['rpc_connection'] in ('remote', 'local') if self.device_info['rpc_connection'] == 'remote': + if self.device_info['product'] == 'n320': + alloc_limit = 1 + else: + alloc_limit = 2 return self._xport_mgrs['udp'].request_xport( sid, xport_type, + alloc_limit ) elif self.device_info['rpc_connection'] == 'local': return self._xport_mgrs['liberio'].request_xport( |