Lines Matching full:vlan

98             path[is] == '_'); // handle VLAN IF uses '_' e.g.  in ifnameInPath()
111 // Enumerate all VLAN + ETHERNET interfaces in maybeGetChannelParams()
125 bool vlan = false; in maybeGetChannelParams() local
131 vlan = true; in maybeGetChannelParams()
138 if (params.service.empty() && (vlan || ethernet)) in maybeGetChannelParams()
142 if (params.ifPath.empty() && !vlan && ethernet) in maybeGetChannelParams()
146 if (params.logicalPath.empty() && vlan) in maybeGetChannelParams()
158 // We don't have a VLAN so the logical path is the same in maybeGetChannelParams()
486 /** @brief Gets the vlan ID configured on the interface
490 * @return VLAN id or the standard 0 for no VLAN
494 // VLAN devices will always have a separate logical object in getVLANProperty()
500 auto vlan = std::get<uint32_t>(getDbusProperty( in getVLANProperty() local
502 if ((vlan & VLAN_VALUE_MASK) != vlan) in getVLANProperty()
504 lg2::error("networkd returned an invalid vlan: {VLAN} " in getVLANProperty()
506 "CHANNEL", params.id, "IFNAME", params.ifname, "VLAN", vlan); in getVLANProperty()
509 return vlan; in getVLANProperty()
533 // Update params to reflect the deletion of vlan in deconfigureChannel()
546 /** @brief Creates a new VLAN on the specified interface
550 * @param[in] vlan - The id of the new vlan
552 void createVLAN(sdbusplus::bus_t& bus, ChannelParams& params, uint16_t vlan) in createVLAN() argument
554 if (vlan == 0) in createVLAN()
560 INTF_VLAN_CREATE, "VLAN"); in createVLAN()
561 req.append(params.ifname, static_cast<uint32_t>(vlan)); in createVLAN()
568 /** @brief Performs the necessary reconfiguration to change the VLAN
572 * @param[in] vlan - The new vlan id to use
575 uint16_t vlan) in reconfigureVLAN() argument
578 // customizations to new VLAN interfaces, or have some kind of decoupling. in reconfigureVLAN()
579 // We therefore must retain all of our old information, setup the new VLAN in reconfigureVLAN()
606 createVLAN(bus, params, vlan); in reconfigureVLAN()
639 // we need to return the VLAN id for disabled VLANs. The value is only
922 uint16_t vlan = static_cast<uint16_t>(vlanData); in setLanInt() local
926 lastDisabledVlan[channel] = vlan; in setLanInt()
927 vlan = 0; in setLanInt()
929 else if (vlan == 0 || vlan == VLAN_VALUE_MASK) in setLanInt()
934 channelCall<reconfigureVLAN>(channel, vlan); in setLanInt()
1254 uint16_t vlan = channelCall<getVLANProperty>(channel); in getLan() local
1255 if (vlan != 0) in getLan()
1257 vlan |= VLAN_ENABLE_FLAG; in getLan()
1261 vlan = lastDisabledVlan[channel]; in getLan()
1263 ret.pack(vlan); in getLan()