/net/bridge/ |
D | br_vlan.c | 11 static void nbp_vlan_set_vlan_dev_state(struct net_bridge_port *p, u16 vid); 17 u16 vid = *(u16 *)arg->key; in br_vlan_cmp() local 19 return vle->vid != vid; in br_vlan_cmp() 24 .key_offset = offsetof(struct net_bridge_vlan, vid), 32 static struct net_bridge_vlan *br_vlan_lookup(struct rhashtable *tbl, u16 vid) in br_vlan_lookup() argument 34 return rhashtable_lookup_fast(tbl, &vid, br_vlan_rht_params); in br_vlan_lookup() 37 static bool __vlan_add_pvid(struct net_bridge_vlan_group *vg, u16 vid) in __vlan_add_pvid() argument 39 if (vg->pvid == vid) in __vlan_add_pvid() 43 vg->pvid = vid; in __vlan_add_pvid() 48 static bool __vlan_delete_pvid(struct net_bridge_vlan_group *vg, u16 vid) in __vlan_delete_pvid() argument [all …]
|
D | br_netlink_tunnel.c | 51 } else if ((v->vid - vtend->vid) == 1 && in __get_num_vlan_tunnel_infos() 56 if ((vtend->vid - vtbegin->vid) > 0) in __get_num_vlan_tunnel_infos() 67 if ((vtend->vid - vtbegin->vid) > 0) in __get_num_vlan_tunnel_infos() 90 static int br_fill_vlan_tinfo(struct sk_buff *skb, u16 vid, in br_fill_vlan_tinfo() argument 103 vid)) in br_fill_vlan_tinfo() 124 if (vtend && (vtend->vid - vtbegin->vid) > 0) { in br_fill_vlan_tinfo_range() 126 err = br_fill_vlan_tinfo(skb, vtbegin->vid, in br_fill_vlan_tinfo_range() 132 err = br_fill_vlan_tinfo(skb, vtend->vid, in br_fill_vlan_tinfo_range() 138 err = br_fill_vlan_tinfo(skb, vtbegin->vid, in br_fill_vlan_tinfo_range() 167 } else if ((v->vid - vtend->vid) == 1 && in br_fill_vlan_tunnel_info() [all …]
|
D | br_fdb.c | 36 const unsigned char *addr, u16 vid); 91 __u16 vid) in fdb_find_rcu() argument 97 key.vlan_id = vid; in fdb_find_rcu() 106 __u16 vid) in br_fdb_find() argument 113 fdb = fdb_find_rcu(&br->fdb_hash_tbl, addr, vid); in br_fdb_find() 121 __u16 vid) in br_fdb_find_port() argument 134 f = br_fdb_find_rcu(br, addr, vid); in br_fdb_find_port() 145 __u16 vid) in br_fdb_find_rcu() argument 147 return fdb_find_rcu(&br->fdb_hash_tbl, addr, vid); in br_fdb_find_rcu() 219 u16 vid = f->key.vlan_id; in fdb_delete_local() local [all …]
|
D | br_private.h | 133 u16 vid; member 554 const unsigned char *addr, u16 vid); 559 const struct net_bridge_port *p, u16 vid, int do_all); 562 __u16 vid); 567 const unsigned char *addr, u16 vid); 569 const unsigned char *addr, u16 vid, bool added_by_user); 572 struct net_device *dev, const unsigned char *addr, u16 vid); 574 const unsigned char *addr, u16 vid, u16 nlh_flags, 579 const unsigned char *addr, u16 vid, u32 portid, u32 seq, 584 const unsigned char *addr, u16 vid, [all …]
|
D | br_switchdev.c | 107 u16 vid, struct net_device *dev, in br_switchdev_fdb_call_notifiers() argument 114 info.vid = vid; in br_switchdev_fdb_call_notifiers() 145 int br_switchdev_port_vlan_add(struct net_device *dev, u16 vid, u16 flags, in br_switchdev_port_vlan_add() argument 152 .vid_begin = vid, in br_switchdev_port_vlan_add() 153 .vid_end = vid, in br_switchdev_port_vlan_add() 159 int br_switchdev_port_vlan_del(struct net_device *dev, u16 vid) in br_switchdev_port_vlan_del() argument 164 .vid_begin = vid, in br_switchdev_port_vlan_del() 165 .vid_end = vid, in br_switchdev_port_vlan_del()
|
D | br_input.c | 78 u16 vid = 0; in br_handle_frame_finish() local 83 if (!br_allowed_ingress(p->br, nbp_vlan_group_rcu(p), skb, &vid)) in br_handle_frame_finish() 91 br_fdb_update(br, p, eth_hdr(skb)->h_source, vid, false); in br_handle_frame_finish() 101 if (br_multicast_rcv(br, p, skb, vid)) in br_handle_frame_finish() 115 br_do_proxy_suppress_arp(skb, br, vid, p); in br_handle_frame_finish() 126 br_do_suppress_nd(skb, br, vid, p, msg); in br_handle_frame_finish() 131 mdst = br_mdb_get(br, skb, vid); in br_handle_frame_finish() 146 dst = br_fdb_find_rcu(br, eth_hdr(skb)->h_dest, vid); in br_handle_frame_finish() 181 u16 vid = 0; in __br_handle_local_finish() local 186 br_should_learn(p, skb, &vid)) in __br_handle_local_finish() [all …]
|
D | br_private_tunnel.h | 14 u16 vid; member 35 int nbp_vlan_tunnel_info_delete(struct net_bridge_port *port, u16 vid); 36 int nbp_vlan_tunnel_info_add(struct net_bridge_port *port, u16 vid, u32 tun_id); 52 u16 vid) in nbp_vlan_tunnel_info_delete() argument 58 u16 vid, u32 tun_id) in nbp_vlan_tunnel_info_add() argument
|
D | br_multicast.c | 51 __u16 vid, 59 __u16 vid, const unsigned char *src); 83 __be32 dst, __u16 vid) in br_mdb_ip4_get() argument 90 br_dst.vid = vid; in br_mdb_ip4_get() 98 __u16 vid) in br_mdb_ip6_get() argument 105 br_dst.vid = vid; in br_mdb_ip6_get() 112 struct sk_buff *skb, u16 vid) in br_mdb_get() argument 124 ip.vid = vid; in br_mdb_get() 589 __u16 vid, in br_ip4_multicast_add_group() argument 600 br_group.vid = vid; in br_ip4_multicast_add_group() [all …]
|
D | br_netlink.c | 39 if (v->vid == pvid) in __get_num_vlan_infos() 47 } else if ((v->vid - vid_range_end) == 1 && in __get_num_vlan_infos() 49 vid_range_end = v->vid; in __get_num_vlan_infos() 58 vid_range_start = v->vid; in __get_num_vlan_infos() 59 vid_range_end = v->vid; in __get_num_vlan_infos() 256 vinfo.vid = vid_start; in br_fill_ifvlaninfo_range() 262 vinfo.vid = vid_end; in br_fill_ifvlaninfo_range() 268 vinfo.vid = vid_start; in br_fill_ifvlaninfo_range() 298 if (v->vid == pvid) in br_fill_ifvlaninfo_compressed() 306 } else if ((v->vid - vid_range_end) == 1 && in br_fill_ifvlaninfo_compressed() [all …]
|
D | br_mdb.c | 70 ip->vid = entry->vid; in __mdb_entry_to_br_ip() 102 e.vid = mp->addr.vid; in __mdb_fill_info() 351 .vid = entry->vid, in br_mdb_switchdev_host_port() 391 .vid = entry->vid, in __br_mdb_notify() 455 entry.vid = group->vid; in br_mdb_notify() 546 if (entry->vid >= VLAN_VID_MASK) in is_valid_mdb_entry() 714 if (br_vlan_enabled(br->dev) && vg && entry->vid == 0) { in br_mdb_add() 716 entry->vid = v->vid; in br_mdb_add() 819 if (br_vlan_enabled(br->dev) && vg && entry->vid == 0) { in br_mdb_del() 821 entry->vid = v->vid; in br_mdb_del()
|
D | br_arp_nd_proxy.c | 121 u16 vid, struct net_bridge_port *p) in br_do_proxy_suppress_arp() argument 168 if (vid != 0) { in br_do_proxy_suppress_arp() 170 vid); in br_do_proxy_suppress_arp() 193 f = br_fdb_find_rcu(br, n->ha, vid); in br_do_proxy_suppress_arp() 200 if (!vid) in br_do_proxy_suppress_arp() 384 u16 vid, struct net_bridge_port *p, struct nd_msg *msg) in br_do_suppress_nd() argument 417 if (vid != 0) { in br_do_suppress_nd() 420 vid); in br_do_suppress_nd() 444 f = br_fdb_find_rcu(br, n->ha, vid); in br_do_suppress_nd() 449 if (vid != 0) in br_do_suppress_nd()
|
D | br_vlan_tunnel.c | 92 int nbp_vlan_tunnel_info_add(struct net_bridge_port *port, u16 vid, u32 tun_id) in nbp_vlan_tunnel_info_add() argument 100 vlan = br_vlan_find(vg, vid); in nbp_vlan_tunnel_info_add() 110 int nbp_vlan_tunnel_info_delete(struct net_bridge_port *port, u16 vid) in nbp_vlan_tunnel_info_delete() argument 118 v = br_vlan_find(vg, vid); in nbp_vlan_tunnel_info_delete() 176 __vlan_hwaccel_put_tag(skb, p->br->vlan_proto, vlan->vid); in br_handle_ingress_vlan_tunnel()
|
/net/batman-adv/ |
D | distributed-arp-table.c | 288 __be16 vid; in batadv_hash_dat() local 298 vid = htons(dat->vid); in batadv_hash_dat() 299 key = (__force const unsigned char *)&vid; in batadv_hash_dat() 300 for (i = 0; i < sizeof(dat->vid); i++) { in batadv_hash_dat() 324 unsigned short vid) in batadv_dat_entry_hash_find() argument 335 to_find.vid = vid; in batadv_dat_entry_hash_find() 364 u8 *mac_addr, unsigned short vid) in batadv_dat_entry_add() argument 369 dat_entry = batadv_dat_entry_hash_find(bat_priv, ip, vid); in batadv_dat_entry_add() 378 batadv_print_vid(vid)); in batadv_dat_entry_add() 387 dat_entry->vid = vid; in batadv_dat_entry_add() [all …]
|
D | bridge_loop_avoidance.c | 72 hash = jhash(&claim->vid, sizeof(claim->vid), hash); in batadv_choose_claim() 90 hash = jhash(&claim->vid, sizeof(claim->vid), hash); in batadv_choose_backbone_gw() 113 if (gw1->vid != gw2->vid) in batadv_compare_backbone_gw() 137 if (cl1->vid != cl2->vid) in batadv_compare_claim() 252 unsigned short vid) in batadv_backbone_hash_find() argument 264 search_entry.vid = vid; in batadv_backbone_hash_find() 334 unsigned short vid, int claimtype) in batadv_bla_send_claim() argument 385 batadv_print_vid(vid)); in batadv_bla_send_claim() 394 batadv_print_vid(vid)); in batadv_bla_send_claim() 403 ethhdr->h_source, batadv_print_vid(vid)); in batadv_bla_send_claim() [all …]
|
D | translation-table.h | 20 unsigned short vid, int ifindex, u32 mark); 22 const u8 *addr, unsigned short vid, 33 unsigned short vid); 36 const u8 *addr, unsigned short vid); 39 unsigned short vid); 42 unsigned short vid); 44 unsigned short vid); 47 u8 *addr, unsigned short vid); 49 u8 *addr, unsigned short vid); 54 unsigned short vid); [all …]
|
D | translation-table.c | 67 unsigned short vid, 75 unsigned short vid, const char *message, 94 return (tt1->vid == tt2->vid) && batadv_compare_eth(data1, data2); in batadv_compare_tt() 112 hash = jhash(&tt->vid, sizeof(tt->vid), hash); in batadv_choose_tt() 128 unsigned short vid) in batadv_tt_hash_find() argument 138 to_search.vid = vid; in batadv_tt_hash_find() 148 if (tt->vid != vid) in batadv_tt_hash_find() 173 unsigned short vid) in batadv_tt_local_hash_find() argument 179 vid); in batadv_tt_local_hash_find() 198 unsigned short vid) in batadv_tt_global_hash_find() argument [all …]
|
D | soft-interface.c | 147 batadv_tt_local_remove(bat_priv, old_addr, vlan->vid, in batadv_interface_set_mac_addr() 149 batadv_tt_local_add(dev, addr->sa_data, vlan->vid, in batadv_interface_set_mac_addr() 198 unsigned short vid; in batadv_interface_tx() local 213 vid = batadv_get_vid(skb, 0); in batadv_interface_tx() 240 if (batadv_bla_tx(bat_priv, skb, vid)) in batadv_interface_tx() 250 vid, skb->skb_iif, in batadv_interface_tx() 257 batadv_dat_snoop_outgoing_dhcp_ack(bat_priv, skb, proto, vid); in batadv_interface_tx() 365 ret = batadv_send_skb_via_gw(bat_priv, skb, vid); in batadv_interface_tx() 369 mcast_single_orig, vid); in batadv_interface_tx() 371 ret = batadv_mcast_forw_send(bat_priv, skb, vid); in batadv_interface_tx() [all …]
|
D | bridge_loop_avoidance.h | 38 unsigned short vid, bool is_bcast); 40 unsigned short vid); 50 unsigned short vid); 62 unsigned short vid); 68 struct sk_buff *skb, unsigned short vid, in batadv_bla_rx() argument 75 struct sk_buff *skb, unsigned short vid) in batadv_bla_tx() argument 100 u8 *orig, unsigned short vid) in batadv_bla_is_backbone_gw_orig() argument 142 unsigned short vid) in batadv_bla_check_claim() argument
|
D | send.h | 57 unsigned short vid); 61 unsigned short vid); 63 unsigned short vid); 80 unsigned short vid) in batadv_send_skb_via_tt() argument 83 dst_hint, vid); in batadv_send_skb_via_tt() 105 unsigned short vid) in batadv_send_skb_via_tt_4addr() argument 109 packet_subtype, dst_hint, vid); in batadv_send_skb_via_tt_4addr()
|
/net/8021q/ |
D | vlan_core.c | 164 u16 vid; member 180 __be16 proto, u16 vid) in vlan_vid_info_get() argument 185 if (vid_info->proto == proto && vid_info->vid == vid) in vlan_vid_info_get() 191 static struct vlan_vid_info *vlan_vid_info_alloc(__be16 proto, u16 vid) in vlan_vid_info_alloc() argument 199 vid_info->vid = vid; in vlan_vid_info_alloc() 204 static int vlan_add_rx_filter_info(struct net_device *dev, __be16 proto, u16 vid) in vlan_add_rx_filter_info() argument 210 return dev->netdev_ops->ndo_vlan_rx_add_vid(dev, proto, vid); in vlan_add_rx_filter_info() 215 static int vlan_kill_rx_filter_info(struct net_device *dev, __be16 proto, u16 vid) in vlan_kill_rx_filter_info() argument 221 return dev->netdev_ops->ndo_vlan_rx_kill_vid(dev, proto, vid); in vlan_kill_rx_filter_info() 227 int (*action)(struct net_device *dev, int vid, void *arg), in vlan_for_each() argument [all …]
|
/net/caif/ |
D | cfvidl.c | 24 struct cfsrvl *vid = kzalloc(sizeof(struct cfsrvl), GFP_ATOMIC); in cfvidl_create() local 25 if (!vid) in cfvidl_create() 29 cfsrvl_init(vid, channel_id, dev_info, false); in cfvidl_create() 30 vid->layer.receive = cfvidl_receive; in cfvidl_create() 31 vid->layer.transmit = cfvidl_transmit; in cfvidl_create() 32 snprintf(vid->layer.name, CAIF_LAYER_NAME_SZ, "vid1"); in cfvidl_create() 33 return &vid->layer; in cfvidl_create()
|
/net/dsa/ |
D | tag_8021q.c | 83 int dsa_8021q_rx_switch_id(u16 vid) in dsa_8021q_rx_switch_id() argument 85 return (vid & DSA_8021Q_SWITCH_ID_MASK) >> DSA_8021Q_SWITCH_ID_SHIFT; in dsa_8021q_rx_switch_id() 90 int dsa_8021q_rx_source_port(u16 vid) in dsa_8021q_rx_source_port() argument 92 return (vid & DSA_8021Q_PORT_MASK) >> DSA_8021Q_PORT_SHIFT; in dsa_8021q_rx_source_port() 130 static int dsa_8021q_vid_apply(struct dsa_switch *ds, int port, u16 vid, in dsa_8021q_vid_apply() argument 138 return dsa_port_vid_add(dp, vid, flags); in dsa_8021q_vid_apply() 140 err = dsa_port_vid_del(dp, vid); in dsa_8021q_vid_apply() 152 err = br_vlan_get_info(dp->slave, vid, &vinfo); in dsa_8021q_vid_apply() 160 err = dsa_port_vid_add(dp, vid, vinfo.flags); in dsa_8021q_vid_apply() 166 return dsa_port_vid_add(dp->cpu_dp, vid, vinfo.flags); in dsa_8021q_vid_apply()
|
D | dsa_priv.h | 45 u16 vid; member 91 const unsigned char *addr, u16 vid, 96 const unsigned char *addr, u16 vid); 140 u16 vid); 142 u16 vid); 160 int dsa_port_vid_add(struct dsa_port *dp, u16 vid, u16 flags); 161 int dsa_port_vid_del(struct dsa_port *dp, u16 vid);
|
D | port.c | 277 u16 vid) in dsa_port_fdb_add() argument 283 .vid = vid, in dsa_port_fdb_add() 290 u16 vid) in dsa_port_fdb_del() argument 296 .vid = vid, in dsa_port_fdb_del() 366 int dsa_port_vid_add(struct dsa_port *dp, u16 vid, u16 flags) in dsa_port_vid_add() argument 371 .vid_begin = vid, in dsa_port_vid_add() 372 .vid_end = vid, in dsa_port_vid_add() 387 int dsa_port_vid_del(struct dsa_port *dp, u16 vid) in dsa_port_vid_del() argument 391 .vid_begin = vid, in dsa_port_vid_del() 392 .vid_end = vid, in dsa_port_vid_del()
|
/net/ncsi/ |
D | ncsi-manage.c | 597 u16 vid; in clear_one_vid() local 608 vid = ncf->vids[index]; in clear_one_vid() 615 nca->words[1] = vid; in clear_one_vid() 633 u16 vid; in set_one_vid() local 645 vid = vlan->vid; in set_one_vid() 647 if (ncf->vids[i] == vid) { in set_one_vid() 648 vid = 0; in set_one_vid() 651 if (vid) in set_one_vid() 656 if (!vid) { in set_one_vid() 671 ncf->vids[index] = vid; in set_one_vid() [all …]
|