/linux-master/tools/testing/selftests/net/forwarding/ |
H A D | router_bridge_pvid_vlan_upper.sh | 75 bridge vlan add dev br1 vid 10 pvid untagged self 76 bridge vlan add dev $swp1 vid 10 81 bridge vlan del dev $swp1 vid 10 82 bridge vlan del dev br1 vid 10 self
|
H A D | mirror_vlan.sh | 39 bridge vlan add dev $swp1 vid 111 42 bridge vlan add dev $swp2 vid 111
|
H A D | mirror_gre_bridge_1q.sh | 68 bridge vlan add dev br1 vid 555 pvid untagged self 77 bridge vlan add dev $swp3 vid 555
|
H A D | vxlan_symmetric.sh | 15 # | | vid 10 pvid untagged vid 20 pvid untagged | | 22 # | | vid 10 pvid untagged vid 20 pvid untagged | | 29 # | | vid 4001 pvid untagged | | 86 # | | vid 10 pvid untagged vid 20 pvid untagged | | 93 # | | vid 4001 pvid untagged | | 96 # | | | vid 10 pvid untagged br1 | vid 2 [all...] |
H A D | vxlan_symmetric_ipv6.sh | 16 # | | vid 10 pvid untagged vid 20 pvid untagged | | 23 # | | vid 10 pvid untagged vid 20 pvid untagged | | 30 # | | vid 4001 pvid untagged | | 87 # | | vid 10 pvid untagged vid 20 pvid untagged | | 94 # | | vid 4001 pvid untagged | | 97 # | | | vid 10 pvid untagged br1 | vid 2 [all...] |
H A D | q_in_vni_ipv6.sh | 19 # | | vid 100 pvid untagged vid 100 pvid | | 25 # | | vid 100 pvid untagged | | 60 # | | vid 100 pvid untagged | | | | vid 100 pvid untagged | | 63 # | | | vid 100 pvid untagged | | | | | vid 100 pvid untagged | | 154 bridge vlan add vid 100 dev vx100 pvid untagged 158 bridge vlan add vid 100 dev $swp1 pvid untagged 162 bridge vlan add vid 10 [all...] |
H A D | q_in_vni.sh | 19 # | | vid 100 pvid untagged vid 100 pvid | | 25 # | | vid 100 pvid untagged | | 60 # | | vid 100 pvid untagged | | | | vid 100 pvid untagged | | 63 # | | | vid 100 pvid untagged | | | | | vid 100 pvid untagged | | 155 bridge vlan add vid 100 dev vx100 pvid untagged 159 bridge vlan add vid 100 dev $swp1 pvid untagged 163 bridge vlan add vid 10 [all...] |
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
H A D | bridge.h | 83 int mlx5_esw_bridge_port_vlan_add(u16 vport_num, u16 esw_owner_vhca_id, u16 vid, u16 flags, 86 void mlx5_esw_bridge_port_vlan_del(u16 vport_num, u16 esw_owner_vhca_id, u16 vid, 90 const unsigned char *addr, u16 vid, 94 const unsigned char *addr, u16 vid,
|
/linux-master/net/batman-adv/ |
H A D | main.h | 222 * batadv_print_vid() - return printable version of vid information 223 * @vid: the VLAN identifier 227 static inline int batadv_print_vid(unsigned short vid) argument 229 if (vid & BATADV_VLAN_HAS_TAG) 230 return (int)(vid & VLAN_VID_MASK); 380 bool batadv_vlan_ap_isola_get(struct batadv_priv *bat_priv, unsigned short vid);
|
H A D | multicast.c | 1176 * @vid: the vlan identifier 1198 struct sk_buff *skb, unsigned short vid, 1207 batadv_mcast_forw_push(bat_priv, skb, vid, is_routable, count)) 1220 * @vid: the vlan identifier 1227 unsigned short vid, int *is_routable) 1257 return batadv_mcast_forw_mode_by_count(bat_priv, skb, vid, *is_routable, 1265 * @vid: the vlan identifier 1272 unsigned short vid, 1281 if (batadv_bla_is_backbone_gw_orig(bat_priv, orig_node->orig, vid)) { 1287 orig_node, vid); 1197 batadv_mcast_forw_mode_by_count(struct batadv_priv *bat_priv, struct sk_buff *skb, unsigned short vid, int is_routable, int count) argument 1226 batadv_mcast_forw_mode(struct batadv_priv *bat_priv, struct sk_buff *skb, unsigned short vid, int *is_routable) argument 1270 batadv_mcast_forw_send_orig(struct batadv_priv *bat_priv, struct sk_buff *skb, unsigned short vid, struct batadv_orig_node *orig_node) argument 1304 batadv_mcast_forw_tt(struct batadv_priv *bat_priv, struct sk_buff *skb, unsigned short vid) argument 1352 batadv_mcast_forw_want_all_ipv4(struct batadv_priv *bat_priv, struct sk_buff *skb, unsigned short vid) argument 1389 batadv_mcast_forw_want_all_ipv6(struct batadv_priv *bat_priv, struct sk_buff *skb, unsigned short vid) argument 1427 batadv_mcast_forw_want_all(struct batadv_priv *bat_priv, struct sk_buff *skb, unsigned short vid) argument 1455 batadv_mcast_forw_want_all_rtr4(struct batadv_priv *bat_priv, struct sk_buff *skb, unsigned short vid) argument 1492 batadv_mcast_forw_want_all_rtr6(struct batadv_priv *bat_priv, struct sk_buff *skb, unsigned short vid) argument 1530 batadv_mcast_forw_want_rtr(struct batadv_priv *bat_priv, struct sk_buff *skb, unsigned short vid) argument 1561 batadv_mcast_forw_send(struct batadv_priv *bat_priv, struct sk_buff *skb, unsigned short vid, int is_routable) argument [all...] |
/linux-master/tools/testing/selftests/drivers/net/mlxsw/spectrum/ |
H A D | q_in_vni_veto.sh | 47 bridge vlan add vid 100 dev vx100 pvid untagged 2>/dev/null 50 bridge vlan add vid 100 dev vx100 pvid untagged 2>&1 >/dev/null \
|
/linux-master/drivers/net/ethernet/intel/ice/ |
H A D | ice_trace.h | 249 __field(u16, vid) 255 __entry->vid = fdb->data.vid; 257 TP_printk("net_device=%s addr=%pM vid=%u flags=%x", 260 __entry->vid, 279 TP_STRUCT__entry(__field(u16, vid) 281 TP_fast_assign(__entry->vid = vlan->vid; 283 TP_printk("vid=%u flags=%x", 284 __entry->vid, [all...] |
H A D | ice_fltr.c | 102 * @vid: VLAN ID to clear VLAN promiscuous 106 u16 vid) 111 result = ice_clear_vsi_promisc(hw, vsi_handle, promisc_mask, vid); 115 ice_get_hw_vsi_num(hw, vsi_handle), vid, result); local 125 * @vid: VLAN ID to set VLAN promiscuous 129 u16 vid) 134 result = ice_set_vsi_promisc(hw, vsi_handle, promisc_mask, vid); 138 ice_get_hw_vsi_num(hw, vsi_handle), vid, result); local 260 info.l_data.vlan.vlan_id = vlan->vid; 105 ice_fltr_clear_vsi_promisc(struct ice_hw *hw, u16 vsi_handle, u8 promisc_mask, u16 vid) argument 128 ice_fltr_set_vsi_promisc(struct ice_hw *hw, u16 vsi_handle, u8 promisc_mask, u16 vid) argument
|
/linux-master/drivers/net/dsa/sja1105/ |
H A D | sja1105.h | 146 const unsigned char *addr, u16 vid); 148 const unsigned char *addr, u16 vid); 189 u16 vid; member in struct:sja1105_key::__anon51::__anon53 404 u8 sja1105et_fdb_hash(struct sja1105_private *priv, const u8 *addr, u16 vid); 406 const unsigned char *addr, u16 vid); 408 const unsigned char *addr, u16 vid); 410 const unsigned char *addr, u16 vid); 412 const unsigned char *addr, u16 vid);
|
/linux-master/net/bluetooth/ |
H A D | hci_codec.c | 24 entry->vid = __le16_to_cpu(sent->vid); 179 caps.vid = vnd_codecs->codec[i].vid; 246 caps.vid = vnd_codecs->codec[i].vid;
|
/linux-master/drivers/mfd/ |
H A D | mt6370.c | 158 int *vid) 167 *vid = FIELD_GET(MT6370_VENID_MASK, devinfo); 168 switch (*vid) { 236 int ret, vid; local 258 ret = mt6370_check_vendor_info(dev, regmap, &vid); 268 switch (vid) { 157 mt6370_check_vendor_info(struct device *dev, struct regmap *rmap, int *vid) argument
|
/linux-master/drivers/net/ethernet/intel/fm10k/ |
H A D | fm10k_pf.c | 186 * @vid: VLAN ID to add to table 195 static s32 fm10k_update_vlan_pf(struct fm10k_hw *hw, u32 vid, u8 vsi, bool set) argument 216 len = vid >> 16; 217 vid = (vid << 17) >> 17; 220 if (len >= FM10K_VLAN_TABLE_VID_MAX || vid >= FM10K_VLAN_TABLE_VID_MAX) 224 for (reg = FM10K_VLAN_TABLE(vsi, vid / 32), bit = vid % 32; 298 * @vid: VLAN ID to add/remove from table 306 const u8 *mac, u16 vid, boo 305 fm10k_update_xc_addr_pf(struct fm10k_hw *hw, u16 glort, const u8 *mac, u16 vid, bool add, u8 flags) argument 352 fm10k_update_uc_addr_pf(struct fm10k_hw *hw, u16 glort, const u8 *mac, u16 vid, bool add, u8 flags) argument 373 fm10k_update_mc_addr_pf(struct fm10k_hw *hw, u16 glort, const u8 *mac, u16 vid, bool add) argument 624 u32 vid = hw->mac.default_vid << FM10K_TXQCTL_VID_SHIFT; local 1172 fm10k_iov_select_vid(struct fm10k_vf_info *vf_info, u16 vid) argument 1201 u32 vid; local [all...] |
/linux-master/tools/testing/selftests/net/ |
H A D | test_vxlan_vnifiltering.sh | 224 local vid=$(echo $vmap | awk -F'-' '{print ($1)}') 231 ip -netns ${vm[$vmid]} link add name $vmvethif.$vid link $vmvethif type vlan id $vid 232 ip -netns ${vm[$vmid]} addr add 10.0.$vid.$vmid/24 dev $vmvethif.$vid 233 ip -netns ${vm[$vmid]} link set $vmvethif.$vid up 235 tid=$vid 243 tid=$((vid+brid)) 272 bridge -netns ${hv[$hvid]} vlan add vid $vid de [all...] |
/linux-master/drivers/net/ethernet/marvell/prestera/ |
H A D | prestera.h | 34 u16 vid; member in struct:prestera_mdb_entry 41 u16 vid; member in struct:prestera_flood_domain_port 244 u32 vid; member in struct:prestera_fdb_event 384 int prestera_port_pvid_set(struct prestera_port *port, u16 vid); 400 const unsigned char *addr, u16 vid); 410 u16 vid); 415 struct net_device *dev, u16 vid);
|
H A D | prestera_hw.c | 373 __le16 vid; member in struct:prestera_msg_vlan_req 388 __le16 vid; member in struct:prestera_msg_fdb_req 513 __le16 vid; member in struct:prestera_msg_stp_req 538 __le16 vid; member in struct:prestera_msg_iface 682 __le32 vid; member in struct:prestera_msg_event_fdb 724 __le16 vid; member in struct:prestera_msg_flood_domain_port 731 __le16 vid; member in struct:prestera_msg_mdb_create_req 738 __le16 vid; member in struct:prestera_msg_mdb_destroy_req 901 evt->fdb_evt.vid = __le32_to_cpu(hw_evt->vid); 1726 prestera_hw_vlan_create(struct prestera_switch *sw, u16 vid) argument 1736 prestera_hw_vlan_delete(struct prestera_switch *sw, u16 vid) argument 1746 prestera_hw_vlan_port_set(struct prestera_port *port, u16 vid, bool is_member, bool untagged) argument 1761 prestera_hw_vlan_port_vid_set(struct prestera_port *port, u16 vid) argument 1773 prestera_hw_vlan_port_stp_set(struct prestera_port *port, u16 vid, u8 state) argument 1786 prestera_hw_fdb_add(struct prestera_port *port, const unsigned char *mac, u16 vid, bool dynamic) argument 1804 prestera_hw_fdb_del(struct prestera_port *port, const unsigned char *mac, u16 vid) argument 1821 prestera_hw_lag_fdb_add(struct prestera_switch *sw, u16 lag_id, const unsigned char *mac, u16 vid, bool dynamic) argument 1839 prestera_hw_lag_fdb_del(struct prestera_switch *sw, u16 lag_id, const unsigned char *mac, u16 vid) argument 1870 prestera_hw_fdb_flush_vlan(struct prestera_switch *sw, u16 vid, u32 mode) argument 1881 prestera_hw_fdb_flush_port_vlan(struct prestera_port *port, u16 vid, u32 mode) argument 1912 prestera_hw_fdb_flush_lag_vlan(struct prestera_switch *sw, u16 lag_id, u16 vid, u32 mode) argument [all...] |
/linux-master/drivers/net/ethernet/ti/ |
H A D | cpsw.c | 92 __be16 proto, u16 vid); 175 * @vid: vlan id, if vid < 0 set/unset address for real device 179 int vid, int add) 185 if (vid < 0) { 187 vid = cpsw->slaves[priv->emac_port].port_vlan; 189 vid = 0; 193 flags = vid ? ALE_VLAN : 0; 196 ret = cpsw_ale_add_mcast(cpsw->ale, addr, mask, flags, vid, 0); 198 ret = cpsw_ale_del_mcast(cpsw->ale, addr, 0, flags, vid); 178 cpsw_set_mc(struct net_device *ndev, const u8 *addr, int vid, int add) argument 203 cpsw_update_vlan_mc(struct net_device *vdev, int vid, void *ctx) argument 268 cpsw_purge_vlan_mc(struct net_device *vdev, int vid, void *ctx) argument 730 cpsw_restore_vlans(struct net_device *vdev, int vid, void *arg) argument 967 u16 vid = 0; local 996 cpsw_add_vlan_ale_entry(struct cpsw_priv *priv, unsigned short vid) argument 1045 cpsw_ndo_vlan_rx_add_vid(struct net_device *ndev, __be16 proto, u16 vid) argument 1081 cpsw_ndo_vlan_rx_kill_vid(struct net_device *ndev, __be16 proto, u16 vid) argument [all...] |
H A D | cpsw_new.c | 121 * @vid: vlan id, if vid < 0 set/unset address for real device 125 int vid, int add) 132 if (vid < 0) 133 vid = cpsw->slaves[slave_no].port_vlan; 136 flags = vid ? ALE_VLAN : 0; 139 ret = cpsw_ale_add_mcast(cpsw->ale, addr, mask, flags, vid, 0); 141 ret = cpsw_ale_del_mcast(cpsw->ale, addr, 0, flags, vid); 146 static int cpsw_update_vlan_mc(struct net_device *vdev, int vid, void *ctx) argument 168 cpsw_set_mc(sync_ctx->ndev, sync_ctx->addr, vid, 124 cpsw_set_mc(struct net_device *ndev, const u8 *addr, int vid, int add) argument 211 cpsw_purge_vlan_mc(struct net_device *vdev, int vid, void *ctx) argument 399 cpsw_add_vlan_ale_entry(struct cpsw_priv *priv, unsigned short vid) argument 438 cpsw_ndo_vlan_rx_add_vid(struct net_device *ndev, __be16 proto, u16 vid) argument 476 cpsw_restore_vlans(struct net_device *vdev, int vid, void *arg) argument 984 u16 vid = 0; local 1011 cpsw_ndo_vlan_rx_kill_vid(struct net_device *ndev, __be16 proto, u16 vid) argument [all...] |
/linux-master/drivers/net/dsa/microchip/ |
H A D | ksz8795.c | 605 static void ksz8_r_vlan_table(struct ksz_device *dev, u16 vid, u16 *vlan) argument 613 addr = vid / 4; 614 index = vid & 3; 619 static void ksz8_w_vlan_table(struct ksz_device *dev, u16 vid, u16 vlan) argument 627 addr = vid / 4; 628 index = vid & 3; 631 dev->vlan_cache[vid].table[0] = vlan; 1221 const unsigned char *addr, u16 vid) 1241 if (!memcmp(alu.mac, addr, ETH_ALEN) && alu.fid == vid) 1257 if (vid) { 1220 ksz8_add_sta_mac(struct ksz_device *dev, int port, const unsigned char *addr, u16 vid) argument 1267 ksz8_del_sta_mac(struct ksz_device *dev, int port, const unsigned char *addr, u16 vid) argument 1310 ksz8_fdb_add(struct ksz_device *dev, int port, const unsigned char *addr, u16 vid, struct dsa_db db) argument 1316 ksz8_fdb_del(struct ksz_device *dev, int port, const unsigned char *addr, u16 vid, struct dsa_db db) argument 1368 unsigned int vid; local 1408 u16 vid; local [all...] |
/linux-master/drivers/regulator/ |
H A D | rt5739.c | 255 unsigned int vid; local 272 ret = regmap_read(regmap, RT5739_REG_ID1, &vid); 277 if (vid & RT5739_VID_MASK) 278 return dev_err_probe(dev, -ENODEV, "Incorrect VID (0x%02x)\n", vid); 282 rt5739_init_regulator_desc(desc, vsel_acth, vid & RT5739_DID_MASK);
|
/linux-master/net/bridge/ |
H A D | br_vlan_tunnel.c | 95 * Must be called with vid in range from 1 to 4094 inclusive. 97 int nbp_vlan_tunnel_info_add(const struct net_bridge_port *port, u16 vid, argument 106 vlan = br_vlan_find(vg, vid); 114 * Must be called with vid in range from 1 to 4094 inclusive. 116 int nbp_vlan_tunnel_info_delete(const struct net_bridge_port *port, u16 vid) argument 124 v = br_vlan_find(vg, vid); 175 /* lookup vid, given tunnel id */ 182 __vlan_hwaccel_put_tag(skb, p->br->vlan_proto, vlan->vid);
|