| 1820 | } |
| 1821 | |
| 1822 | static void |
| 1823 | vlan_trunk_capabilities(struct ifnet *ifp) |
| 1824 | { |
| 1825 | struct epoch_tracker et; |
| 1826 | struct ifvlantrunk *trunk; |
| 1827 | struct ifvlan *ifv; |
| 1828 | |
| 1829 | VLAN_SLOCK(); |
| 1830 | trunk = ifp->if_vlantrunk; |
| 1831 | if (trunk == NULL) { |
| 1832 | VLAN_SUNLOCK(); |
| 1833 | return; |
| 1834 | } |
| 1835 | NET_EPOCH_ENTER(et); |
| 1836 | VLAN_FOREACH(ifv, trunk) |
| 1837 | vlan_capabilities(ifv); |
| 1838 | NET_EPOCH_EXIT(et); |
| 1839 | VLAN_SUNLOCK(); |
| 1840 | } |
| 1841 | |
| 1842 | static int |
| 1843 | vlan_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data) |
nothing calls this directly
no test coverage detected