mirror of
https://github.com/opnsense/src.git
synced 2026-02-20 00:11:07 -05:00
tap(4): allow full-duplex and non-zero speed
tap(4) devices advertise themselves as just 'ethernet autoselect', without duplex or speed capabilities. This advertisement makes them unable to be aggregated into lacp-based lagg(4): - lacp code requires underlying interfaces to be full-duplex, else interface will not participate in lacp at all - lacp code requires underlying interface to have non-zero speed, else this interface can not be selected as active aggregator PR: 217374 Reported-by: Alexandre Snarskii <snar@snar.spb.ru> Co-authored-by: Mina Galić <freebsd@igalic.co> Reviewed-by: imp,karles Pull-request: https://github.com/freebsd/freebsd-src/pull/745
This commit is contained in:
parent
ae16cbfdd2
commit
0ec220df52
1 changed files with 1 additions and 1 deletions
|
|
@ -1341,7 +1341,7 @@ tunifioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
|
|||
dummy = ifmr->ifm_count;
|
||||
ifmr->ifm_count = 1;
|
||||
ifmr->ifm_status = IFM_AVALID;
|
||||
ifmr->ifm_active = IFM_ETHER;
|
||||
ifmr->ifm_active = IFM_ETHER | IFM_FDX | IFM_1000_T;
|
||||
if (tp->tun_flags & TUN_OPEN)
|
||||
ifmr->ifm_status |= IFM_ACTIVE;
|
||||
ifmr->ifm_current = ifmr->ifm_active;
|
||||
|
|
|
|||
Loading…
Reference in a new issue