svn commit: r319697 - stable/11/sys/net
Alexander Motin
mav at FreeBSD.org
Thu Jun 8 14:34:41 UTC 2017
Author: mav
Date: Thu Jun 8 14:34:39 2017
New Revision: 319697
URL: https://svnweb.freebsd.org/changeset/base/319697
Log:
MFC r318970: Call VLAN_CAPABILITIES() when LAGG capabilities change.
This makes VLAN on top of LAGG to expose proper capabilities if they are
changed after creation.
Approved by: re (marius)
Modified:
stable/11/sys/net/if_lagg.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/net/if_lagg.c
==============================================================================
--- stable/11/sys/net/if_lagg.c Thu Jun 8 14:33:47 2017 (r319696)
+++ stable/11/sys/net/if_lagg.c Thu Jun 8 14:34:39 2017 (r319697)
@@ -890,6 +890,7 @@ lagg_port_ioctl(struct ifnet *ifp, u_long cmd, caddr_t
LAGG_XLOCK(sc);
lagg_capabilities(sc);
LAGG_XUNLOCK(sc);
+ VLAN_CAPABILITIES(sc->sc_ifp);
break;
case SIOCSIFMTU:
@@ -1003,6 +1004,7 @@ lagg_port_ifdetach(void *arg __unused, struct ifnet *i
lp->lp_detaching = 1;
lagg_port_destroy(lp, 1);
LAGG_XUNLOCK(sc);
+ VLAN_CAPABILITIES(sc->sc_ifp);
}
static void
@@ -1362,6 +1364,7 @@ lagg_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data
error = lagg_port_create(sc, tpif);
LAGG_XUNLOCK(sc);
if_rele(tpif);
+ VLAN_CAPABILITIES(ifp);
break;
case SIOCSLAGGDELPORT:
error = priv_check(td, PRIV_NET_LAGG);
@@ -1385,6 +1388,7 @@ lagg_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data
error = lagg_port_destroy(lp, 1);
LAGG_XUNLOCK(sc);
if_rele(tpif);
+ VLAN_CAPABILITIES(ifp);
break;
case SIOCSIFFLAGS:
/* Set flags on ports too */
@@ -1435,6 +1439,7 @@ lagg_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data
}
lagg_capabilities(sc);
LAGG_XUNLOCK(sc);
+ VLAN_CAPABILITIES(ifp);
error = 0;
break;
More information about the svn-src-stable
mailing list