/net/8021q/ |
D | vlan_gvrp.c | 30 __be16 vlan_id = htons(vlan->vlan_id); in vlan_gvrp_request_join() local 35 &vlan_id, sizeof(vlan_id), GVRP_ATTR_VID); in vlan_gvrp_request_join() 41 __be16 vlan_id = htons(vlan->vlan_id); in vlan_gvrp_request_leave() local 46 &vlan_id, sizeof(vlan_id), GVRP_ATTR_VID); in vlan_gvrp_request_leave()
|
D | vlan_mvrp.c | 36 __be16 vlan_id = htons(vlan->vlan_id); in vlan_mvrp_request_join() local 41 &vlan_id, sizeof(vlan_id), MVRP_ATTR_VID); in vlan_mvrp_request_join() 47 __be16 vlan_id = htons(vlan->vlan_id); in vlan_mvrp_request_leave() local 52 &vlan_id, sizeof(vlan_id), MVRP_ATTR_VID); in vlan_mvrp_request_leave()
|
D | vlan.c | 51 __be16 vlan_proto, u16 vlan_id) in vlan_group_prealloc_vid() argument 64 vidx = vlan_id / VLAN_GROUP_ARRAY_PART_LEN; in vlan_group_prealloc_vid() 95 u16 vlan_id = vlan->vlan_id; in unregister_vlan_dev() local 111 vlan_group_set_device(grp, vlan->vlan_proto, vlan_id, NULL); in unregister_vlan_dev() 125 vlan_vid_del(real_dev, vlan->vlan_proto, vlan_id); in unregister_vlan_dev() 129 __be16 protocol, u16 vlan_id, in vlan_check_real_dev() argument 140 if (vlan_find_dev(real_dev, protocol, vlan_id) != NULL) { in vlan_check_real_dev() 152 u16 vlan_id = vlan->vlan_id; in register_vlan_dev() local 157 err = vlan_vid_add(real_dev, vlan->vlan_proto, vlan_id); in register_vlan_dev() 175 err = vlan_group_prealloc_vid(grp, vlan->vlan_proto, vlan_id); in register_vlan_dev() [all …]
|
D | vlan.h | 54 u16 vlan_id) in __vlan_group_get_device() argument 59 [vlan_id / VLAN_GROUP_ARRAY_PART_LEN]; in __vlan_group_get_device() 64 return array ? array[vlan_id % VLAN_GROUP_ARRAY_PART_LEN] : NULL; in __vlan_group_get_device() 69 u16 vlan_id) in vlan_group_get_device() argument 76 return __vlan_group_get_device(vg, pidx, vlan_id); in vlan_group_get_device() 80 __be16 vlan_proto, u16 vlan_id, in vlan_group_set_device() argument 89 [vlan_id / VLAN_GROUP_ARRAY_PART_LEN]; in vlan_group_set_device() 90 array[vlan_id % VLAN_GROUP_ARRAY_PART_LEN] = dev; in vlan_group_set_device() 95 __be16 vlan_proto, u16 vlan_id) in vlan_find_dev() argument 101 vlan_proto, vlan_id); in vlan_find_dev() [all …]
|
D | vlan_core.c | 14 u16 vlan_id = skb_vlan_tag_get_id(skb); in vlan_do_receive() local 18 vlan_dev = vlan_find_dev(skb->dev, vlan_proto, vlan_id); in vlan_do_receive() 77 __be16 vlan_proto, u16 vlan_id) in __vlan_find_dev_deep_rcu() argument 83 vlan_proto, vlan_id); in __vlan_find_dev_deep_rcu() 95 vlan_proto, vlan_id); in __vlan_find_dev_deep_rcu() 115 return vlan_dev_priv(dev)->vlan_id; in vlan_dev_vlan_id()
|
D | vlan_netlink.c | 172 vlan->vlan_id = nla_get_u16(data[IFLA_VLAN_ID]); in vlan_newlink() 177 err = vlan_check_real_dev(real_dev, vlan->vlan_proto, vlan->vlan_id, in vlan_newlink() 228 nla_put_u16(skb, IFLA_VLAN_ID, vlan->vlan_id)) in vlan_fill_info()
|
D | vlanproc.c | 236 vlan->vlan_id, vlan->real_dev->name); in vlan_seq_show() 256 vlandev->name, vlan->vlan_id, in vlandev_seq_show()
|
D | vlan_dev.c | 58 vlan_tci = vlan->vlan_id; in vlan_dev_hard_header() 114 vlan_tci = vlan->vlan_id; in vlan_dev_hard_start_xmit() 798 path->encap.id = vlan->vlan_id; in vlan_dev_fill_forward_path() 805 ctx->vlan[ctx->num_vlans].id = vlan->vlan_id; in vlan_dev_fill_forward_path()
|
/net/smc/ |
D | smc_ism.c | 28 int smc_ism_cantalk(u64 peer_gid, unsigned short vlan_id, struct smcd_dev *smcd) in smc_ism_cantalk() argument 30 return smcd->ops->query_remote_gid(smcd, peer_gid, vlan_id ? 1 : 0, in smc_ism_cantalk() 31 vlan_id); in smc_ism_cantalk() 198 dmb.vlan_id = lgr->vlan_id; in smc_ism_register_dmb() 318 unsigned short vlan_id; member 330 smc_smcd_terminate(wrk->smcd, wrk->event.tok, ev_info.vlan_id); in smcd_handle_sw_event() 354 ev_info.vlan_id = lgr->vlan_id; in smc_ism_signal_shutdown()
|
D | smc_ism.h | 40 int smc_ism_cantalk(u64 peer_gid, unsigned short vlan_id, struct smcd_dev *dev); 43 int smc_ism_get_vlan(struct smcd_dev *dev, unsigned short vlan_id); 44 int smc_ism_put_vlan(struct smcd_dev *dev, unsigned short vlan_id);
|
D | smc_core.c | 301 if (nla_put_u8(skb, SMC_NLA_LGR_R_VLAN_ID, lgr->vlan_id)) in smc_nl_fill_lgr() 464 if (nla_put_u8(skb, SMC_NLA_LGR_D_VLAN_ID, lgr->vlan_id)) in smc_nl_fill_smcd_lgr() 718 ini->vlan_id, lnk->gid, &lnk->sgid_index); in smcr_link_init() 768 if (ini->is_smcd && ini->vlan_id) { in smc_lgr_create() 770 ini->vlan_id)) { in smc_lgr_create() 791 lgr->vlan_id = ini->vlan_id; in smc_lgr_create() 844 if (ini->is_smcd && ini->vlan_id) in smc_lgr_create() 845 smc_ism_put_vlan(ini->ism_dev[ini->ism_selected], ini->vlan_id); in smc_lgr_create() 1230 smc_ism_put_vlan(lgr->smcd, lgr->vlan_id); in smc_lgr_free() 1350 (vlan == VLAN_VID_MASK || lgr->vlan_id == vlan)) { in smc_smcd_terminate() [all …]
|
D | smc_ib.c | 188 unsigned short vlan_id, u8 gid[], u8 *sgid_index) in smc_ib_determine_gid() argument 202 ((!vlan_id && !is_vlan_dev(ndev)) || in smc_ib_determine_gid() 203 (vlan_id && is_vlan_dev(ndev) && in smc_ib_determine_gid() 204 vlan_dev_vlan_id(ndev) == vlan_id)) && in smc_ib_determine_gid()
|
D | smc_ib.h | 94 unsigned short vlan_id, u8 gid[], u8 *sgid_index);
|
D | smc_core.h | 226 unsigned short vlan_id; /* vlan id of link group */ member 311 unsigned short vlan_id; member
|
D | smc_llc.c | 880 ini.vlan_id = lgr->vlan_id; in smc_llc_cli_add_link() 946 ini.vlan_id = lgr->vlan_id; in smc_llc_cli_add_link_invite() 1166 ini.vlan_id = lgr->vlan_id; in smc_llc_srv_add_link()
|
D | smc_pnet.c | 976 !smc_ib_determine_gid(ibdev, i, ini->vlan_id, in _smc_pnet_find_roce_by_pnetid() 1021 !smc_ib_determine_gid(ibdev, i, ini->vlan_id, in smc_pnet_find_rdma_dev() 1070 !smc_ism_cantalk(ini->ism_peer_gid[0], ini->vlan_id, in smc_pnet_find_ism_by_pnetid()
|
D | af_smc.c | 841 if (ini->vlan_id && smc_ism_get_vlan(ini->ism_dev[0], ini->vlan_id)) in smc_connect_ism_vlan_setup() 886 if (ini->vlan_id && smc_ism_put_vlan(ini->ism_dev[0], ini->vlan_id)) in smc_connect_ism_vlan_cleanup()
|
/net/core/ |
D | pktgen.c | 245 #define VLAN_TAG_SIZE(x) ((x)->vlan_id == 0xffff ? 0 : 4) 368 __u16 vlan_id; /* 0xffff means no vlan tag */ member 641 if (pkt_dev->vlan_id != 0xffff) in pktgen_if_show() 643 pkt_dev->vlan_id, pkt_dev->vlan_p, in pktgen_if_show() 1639 if (pkt_dev->nr_labels && pkt_dev->vlan_id != 0xffff) { in pktgen_if_write() 1640 pkt_dev->vlan_id = 0xffff; /* turn off VLAN/SVLAN */ in pktgen_if_write() 1656 pkt_dev->vlan_id = value; /* turn on VLAN */ in pktgen_if_write() 1665 sprintf(pg_result, "OK: vlan_id=%u", pkt_dev->vlan_id); in pktgen_if_write() 1667 pkt_dev->vlan_id = 0xffff; /* turn off VLAN/SVLAN */ in pktgen_if_write() 1682 if ((value <= 7) && (pkt_dev->vlan_id != 0xffff)) { in pktgen_if_write() [all …]
|
D | selftests.c | 37 int vlan_id; member
|
/net/bridge/ |
D | br_fdb.c | 98 key.vlan_id = vid; in fdb_find_rcu() 220 u16 vid = f->key.vlan_id; in fdb_delete_local() 418 (vid && f->key.vlan_id != vid)) in br_fdb_delete_by_port() 518 fdb->key.vlan_id = vid; in fdb_create() 695 if (fdb->key.vlan_id && nla_put(skb, NDA_VLAN, sizeof(u16), in fdb_fill_info() 696 &fdb->key.vlan_id)) in fdb_fill_info() 744 item.vid = fdb->key.vlan_id; in br_fdb_replay_one() 1374 if (f->dst == p && f->key.vlan_id == vid) in br_fdb_clear_offload()
|
D | br_device.c | 406 f = br_fdb_find_rcu(br, ctx->daddr, path->bridge.vlan_id); in br_fill_forward_path() 425 ctx->vlan[ctx->num_vlans].id = path->bridge.vlan_id; in br_fill_forward_path()
|
D | br_switchdev.c | 132 .vid = fdb->key.vlan_id, in br_switchdev_fdb_notify()
|
D | br_vlan.c | 1404 path->bridge.vlan_id = vid; in br_vlan_fill_forward_path_pvid() 1419 v = br_vlan_find(vg, path->bridge.vlan_id); in br_vlan_fill_forward_path_mode() 1527 vlan_dev_priv(dev)->vlan_id == data->vid) { in br_vlan_match_bind_vlan_dev_fn() 1561 u16 vid = vlan_dev_priv(vlan_dev)->vlan_id; in br_vlan_set_vlan_dev_state()
|
/net/netfilter/ |
D | nf_flow_table_offload.c | 83 u16 vlan_id, __be16 proto) in nf_flow_rule_vlan_match() argument 85 key->vlan_id = vlan_id; in nf_flow_rule_vlan_match() 86 mask->vlan_id = VLAN_VID_MASK; in nf_flow_rule_vlan_match()
|
D | nft_flow_offload.c | 143 info->encap[info->num_encaps].id = path->bridge.vlan_id; in nft_dev_path_info()
|