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.
This commit is contained in:
Navdeep Parhar 2016-09-24 13:23:47 +00:00
parent d26312a4e4
commit d44268d135
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=306295
2 changed files with 2 additions and 0 deletions

View File

@ -1737,6 +1737,7 @@ cxgbe_ioctl(struct ifnet *ifp, unsigned long cmd, caddr_t data)
case SIOCSIFMEDIA:
case SIOCGIFMEDIA:
case SIOCGIFXMEDIA:
ifmedia_ioctl(ifp, ifr, &vi->media, cmd);
break;

View File

@ -472,6 +472,7 @@ tracer_ioctl(struct ifnet *ifp, unsigned long cmd, caddr_t data)
break;
case SIOCSIFMEDIA:
case SIOCGIFMEDIA:
case SIOCGIFXMEDIA:
sx_xlock(&t4_trace_lock);
sc = ifp->if_softc;
if (sc == NULL)