Date: Sat, 24 Sep 2016 13:23:47 +0000 (UTC) From: Navdeep Parhar <np@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r306295 - head/sys/dev/cxgbe Message-ID: <201609241323.u8ODNlqv093068@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: np Date: Sat Sep 24 13:23:47 2016 New Revision: 306295 URL: https://svnweb.freebsd.org/changeset/base/306295 Log: cxgbe(4): Support SIOGIFXMEDIA so that ifconfig displays correct media for 25Gbps and 100Gbps ports. This should have been part of r305713, which is when the driver first started reporting extended media types. Modified: head/sys/dev/cxgbe/t4_main.c head/sys/dev/cxgbe/t4_tracer.c Modified: head/sys/dev/cxgbe/t4_main.c ============================================================================== --- head/sys/dev/cxgbe/t4_main.c Sat Sep 24 10:34:35 2016 (r306294) +++ head/sys/dev/cxgbe/t4_main.c Sat Sep 24 13:23:47 2016 (r306295) @@ -1737,6 +1737,7 @@ fail: case SIOCSIFMEDIA: case SIOCGIFMEDIA: + case SIOCGIFXMEDIA: ifmedia_ioctl(ifp, ifr, &vi->media, cmd); break; Modified: head/sys/dev/cxgbe/t4_tracer.c ============================================================================== --- head/sys/dev/cxgbe/t4_tracer.c Sat Sep 24 10:34:35 2016 (r306294) +++ head/sys/dev/cxgbe/t4_tracer.c Sat Sep 24 13:23:47 2016 (r306295) @@ -472,6 +472,7 @@ tracer_ioctl(struct ifnet *ifp, unsigned break; case SIOCSIFMEDIA: case SIOCGIFMEDIA: + case SIOCGIFXMEDIA: sx_xlock(&t4_trace_lock); sc = ifp->if_softc; if (sc == NULL)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201609241323.u8ODNlqv093068>