Donovan Watteau [tso...@gmail.com] wrote: > Hi, > > Is there a way to force the disabling of flow control on em(4)? > > Henning said (http://marc.info/?l=openbsd-misc&m=123003276308084&w=2): > > flow control is enabled on openbsd whenever the peer supports it; done > > in the autonegotiation phase. there is no button to turn it off. why > > should there? > > But in my case, although flow control is disabled and auto-negociation > is enabled on the Cisco side, "rxpause,txpause" still appears in > ifconfig(8). > > However, looking at /sys/dev/pci/if_em_hw.c, it looks like "software > [can] manually configure flow control". This makes me think of > dev.em.X.fc on FreeBSD, but I don't think there's an equivalent on > OpenBSD. > > Is there a not-too-gruesome way of disabling flow control on em(4)? > Or a define to tweak in if_em_hw.h or something? >
If you don't want to edit the driver, you can simply disable media autoselection by forcing speed and duplex. The switch will require forced speed and duplex. ifconfig em0 media 1000baseT mediaopt full-duplex for instance.