diff options
author | RobertWalstab <robert.walstab@gmail.com> | 2020-06-05 17:26:05 +0200 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2020-07-16 10:00:12 -0500 |
commit | dc1ecbb8f08d63c781cc1dd07cedb782c1110726 (patch) | |
tree | b044542674d85c4326f08239d6192e27d61808f9 /mpm/python | |
parent | 692249f2d2d17ee41d7fa207fe938020c01b68cb (diff) | |
download | uhd-dc1ecbb8f08d63c781cc1dd07cedb782c1110726.tar.gz uhd-dc1ecbb8f08d63c781cc1dd07cedb782c1110726.tar.bz2 uhd-dc1ecbb8f08d63c781cc1dd07cedb782c1110726.zip |
mpm: Enable internal NIC on the N3xx
Diffstat (limited to 'mpm/python')
-rw-r--r-- | mpm/python/usrp_mpm/periph_manager/n3xx.py | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/mpm/python/usrp_mpm/periph_manager/n3xx.py b/mpm/python/usrp_mpm/periph_manager/n3xx.py index 895e561b7..f8ba53f54 100644 --- a/mpm/python/usrp_mpm/periph_manager/n3xx.py +++ b/mpm/python/usrp_mpm/periph_manager/n3xx.py @@ -80,12 +80,19 @@ class N3xxXportMgrUDP(XportMgrUDP): 'label': 'misc-enet-regs1', 'type': 'sfp', }, + 'int0': { + 'label': 'misc-enet-int-regs', + 'type': 'internal', + }, + 'eth0': { + 'label': '', + 'type': 'forward', + } } bridges = {'bridge0': ['sfp0', 'sfp1', 'bridge0']} class N3xxXportMgrLiberio(XportMgrLiberio): " N3xx-specific Liberio configuration " - max_chan = 10 # pylint: enable=too-few-public-methods ############################################################################### @@ -498,8 +505,10 @@ class n3xx(ZynqComponents, PeriphManagerBase): assert self.mboard_info['rpc_connection'] in ('remote', 'local') if self.mboard_info['rpc_connection'] == 'remote': return ["udp"] - # else: - return ["liberio"] + elif self._xport_mgrs["liberio"].max_chan > 0: + return ["liberio"] + else: + return ["udp"] def get_chdr_link_options(self, xport_type): """ |