On Thu, Dec 19, 2019 at 01:59:30PM +0100, Hrvoje Popovski wrote: > On 15.12.2019. 23:01, Hrvoje Popovski wrote: > > On 15.12.2019. 12:45, Holger Glaess wrote: > >> hi > >> > >> > >> ?? runing version > >> > >> > >> /etc 16>dmesg | more > >> Copyright (c) 1982, 1986, 1989, 1991, 1993 > >> ?????????????? The Regents of the University of California.?? All rights > >> reserved. > >> Copyright (c) 1995-2019 OpenBSD. All rights reserved. > >> https://www.OpenBSD.org > >> > >> OpenBSD 6.6-current (GENERIC.MP) #48: Tue Dec 10 16:30:01 MST 2019 > >> dera...@octeon.openbsd.org:/usr/src/sys/arch/octeon/compile/GENERIC.MP > >> > >> > >> > >> after a reboot the aggr interface do not aggregate the connection with > >> the switch, > >> > >> just after an physical disaconnection from the ethernet cable , wait for > >> some sec, > >> > >> and replugin . > >> > >> > >> the the iterface are up and active, before ifconfig says "no carrier" > >> but the interfaces have > >> > >> carrier. > >> > >> i dont have the problem with the trunk interface on the same hardware. > >> > >> > >> you are on bellab as root > >> /etc 20>cat /etc/hostname.cnmac1 > >> mtu 1518 > >> up > >> > >> 12:43:59 Sun Dec 15 > >> you are on bellab as root > >> /etc 21>cat /etc/hostname.cnmac2 > >> mtu 1518 > >> up > >> > >> 12:44:01 Sun Dec 15 > >> you are on bellab as root > >> /etc 22>cat /etc/hostname.aggr0 > >> trunkport cnmac1 > >> trunkport cnmac2 > >> mtu 1518 > >> up > >> > >> > >> holger > >> > >> > >> > > Hi, > > > > maybe logs below would help for further troubleshooting because i'm > > seeing same behavior. > > > > when i add debug statement in hostname.agg0 and boot box i'm getting > > this log > > > > starting network > > aggr0 ix0 rxm: LACP_DISABLED (LACP_Enabled) -> PORT_DISABLED > > aggr0 ix0: selection logic: unselected (rxm !CURRENT) > > aggr0 ix1 rxm: LACP_DISABLED (LACP_Enabled) -> PORT_DISABLED > > aggr0 ix1: selection logic: unselected (rxm !CURRENT) > > aggr0 ix2 rxm: LACP_DISABLED (LACP_Enabled) -> PORT_DISABLED > > aggr0 ix2: selection logic: unselected (rxm !CURRENT) > > aggr0 ix3 rxm: LACP_DISABLED (LACP_Enabled) -> PORT_DISABLED > > aggr0 ix3: selection logic: unselected (rxm !CURRENT) > > reordering libraries: done. > > > > after boot aggr status is "no carrier" > > sh /etc/netstart isn't helping > > > > but with ifconfig ix0-ix4 down/up aggr interface start to work normally > > > > log when doing ifconfig ix0-ix4 down/up > > > just a little follow up: > > i've tested aggr on two boxes. first box is dell r620 and second one is > supermicro SYS-5018D-FN8T. both boxes are connected to dell s4810 > switch. Same cables, same ports, same port-channles on switch, timeout > fast or slow, both with ix 82599 interfaces ... (x552 ix interfaces are > disabled on supermicro box) ... > > r620 is working without any problems and supermicro box is having same > problem as described above... > > trunk interface are working on both boxes without any problem .. > > > this is fun :)
:/ can you try this diff? Index: if_aggr.c =================================================================== RCS file: /cvs/src/sys/net/if_aggr.c,v retrieving revision 1.19 diff -u -p -r1.19 if_aggr.c --- if_aggr.c 5 Aug 2019 10:42:51 -0000 1.19 +++ if_aggr.c 23 Dec 2019 04:50:30 -0000 @@ -2401,8 +2401,7 @@ aggr_up(struct aggr_softc *sc) TAILQ_FOREACH(p, &sc->sc_ports, p_entry) { aggr_rxm(sc, p, LACP_RXM_E_LACP_ENABLED); - - aggr_selection_logic(sc, p); + aggr_p_linkch(p); } /* start the Periodic Transmission machine */