On Wed, 29 May 2019, [UTF-8] Andr?? S. Almeida wrote:

When the network interface media "em0" is changed the communication stops
working.

To reproduce the problem simply execute:

ifconfig em0 media autoselect

If you change "autoselect" to any other media, the same problem happens.

I am using FreeBSD 12.0 with the last stable kernel.

iflib still doesn't stop the interface when doing media changes, even in
-current.  I use the following fix.

XX Index: iflib.c
XX ===================================================================
XX --- iflib.c  (revision 332488)
XX +++ iflib.c  (working copy)
XX @@ -2232,7 +2234,7 @@
XX XX CTX_LOCK(ctx);
XX      if ((err = IFDI_MEDIA_CHANGE(ctx)) == 0)
XX -            iflib_init_locked(ctx);
XX +            iflib_if_init_locked(ctx);
XX      CTX_UNLOCK(ctx);
XX      return (err);
XX  }

The corresponding bug for resume was fixed in r342855.

Bruce
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"

Reply via email to