From dc1ecbb8f08d63c781cc1dd07cedb782c1110726 Mon Sep 17 00:00:00 2001 From: RobertWalstab Date: Fri, 5 Jun 2020 17:26:05 +0200 Subject: mpm: Enable internal NIC on the N3xx --- mpm/python/usrp_mpm/periph_manager/n3xx.py | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'mpm/python') 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): """ -- cgit v1.2.3