svn commit: r306295 - head/sys/dev/cxgbe
Navdeep Parhar
np at FreeBSD.org
Sat Sep 24 13:23:48 UTC 2016
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)
More information about the svn-src-all
mailing list