Bug 1371289

Summary: RFE: add support for devices with built in switch chipsets
Product: [Fedora] Fedora Reporter: Dennis Gilmore <dennis>
Component: NetworkManagerAssignee: Lubomir Rintel <lkundrak>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: cz172638, dcbw, fgiudici, lkundrak, pbrobinson, thaller
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: NetworkManager-1.8.4-6.fc27 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-11-11 03:11:49 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Dennis Gilmore 2016-08-29 19:52:51 UTC
I have a couple of Solid Run ClearFog pro boards https://www.solid-run.com/marvell-armada-family/clearfog/

they have a switch chipset in them

The driver in 4.8 is chip and prior to 4.8 was mv88e6xxx  it is switchdev related

the device I have has lan1-6 devices that are attached to eth1 

cat /sys/class/net/lan1/uevent 
DEVTYPE=dsa
OF_NAME=port
OF_FULLNAME=/dsa@0/switch@0/port@0
OF_COMPATIBLE_N=0
INTERFACE=lan1
IFINDEX=5


NetworkManager shows

# nmcli device 
DEVICE   TYPE      STATE                                  CONNECTION         
bridge0  bridge    connected                              bridge0            
eth0     ethernet  connected                              eth0               
eth2     ethernet  connecting (getting IP configuration)  Wired connection 1 
eth1     ethernet  disconnected                           --                 
lo       loopback  unmanaged                              --                 
lan1     unknown   unmanaged                              --                 
lan2     unknown   unmanaged                              --                 
lan3     unknown   unmanaged                              --                 
lan4     unknown   unmanaged                              --                 
lan5     unknown   unmanaged                              --                 
lan6     unknown   unmanaged                              --             

I have attempted to add in NM the lan devices to bridge0 however I have to bring the link up and manually add them all to the bridge.

I should be able to put the ports on different vlans and assign ips to them or put them in a bridge and use them as a switch  with or without addressing 

The devices are detected as NMDeviceGeneric rather than NMDeviceEthernet which is likely due to NetworkManager not recognising DEVTYPE=dsa as ethernet

Comment 1 Jiri Kastner 2017-10-05 21:31:26 UTC
just tested with suggested patch https://koji.fedoraproject.org/koji/taskinfo?taskID=22272514 on f27 with esspressobin

should we get it to f27 also?

Comment 2 Jiri Kastner 2017-10-05 21:34:46 UTC
nmcli c modify Wired\ connection\ 1 ipv4.method disabled ipv6.method ignore connection.id eth0
nmcli c add con-name wan ifname wan type ethernet ipv4.method auto ipv6.method ignore
##########
[root@localhost ~]# nmcli con 
NAME  UUID                                  TYPE            DEVICE 
eth0  e27ef1c8-6927-3c3b-822a-2d2c2db7701c  802-3-ethernet  eth0   
wan   76d63904-70d7-4489-8a5a-97525cdfc3f8  802-3-ethernet  wan    
[root@localhost ~]# nmcli dev
DEVICE  TYPE      STATE        CONNECTION 
eth0    ethernet  connected    eth0       
wan     ethernet  connected    wan        
lan0    ethernet  unavailable  --         
lan1    ethernet  unavailable  --         
bond0   bond      unmanaged    --         
lo      loopback  unmanaged    --         
[root@localhost ~]#

Comment 4 Fedora Update System 2017-11-02 16:11:17 UTC
NetworkManager-1.8.4-6.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2017-55996a5a4f

Comment 5 Fedora Update System 2017-11-04 18:03:07 UTC
NetworkManager-1.8.4-6.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-55996a5a4f

Comment 6 Fedora Update System 2017-11-11 03:11:49 UTC
NetworkManager-1.8.4-6.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.