• Home
  • Raw
  • Download

Lines Matching refs:vlan

335 	struct fip_vlan *vlan;  in fnic_fcoe_send_vlan_req()  local
346 fr_len = sizeof(*vlan); in fnic_fcoe_send_vlan_req()
348 vlan = (struct fip_vlan *)eth_fr; in fnic_fcoe_send_vlan_req()
350 memset(vlan, 0, sizeof(*vlan)); in fnic_fcoe_send_vlan_req()
351 memcpy(vlan->eth.h_source, fip->ctl_src_addr, ETH_ALEN); in fnic_fcoe_send_vlan_req()
352 memcpy(vlan->eth.h_dest, fcoe_all_fcfs, ETH_ALEN); in fnic_fcoe_send_vlan_req()
353 vlan->eth.h_proto = htons(ETH_P_FIP); in fnic_fcoe_send_vlan_req()
355 vlan->fip.fip_ver = FIP_VER_ENCAPS(FIP_VER); in fnic_fcoe_send_vlan_req()
356 vlan->fip.fip_op = htons(FIP_OP_VLAN); in fnic_fcoe_send_vlan_req()
357 vlan->fip.fip_subcode = FIP_SC_VL_REQ; in fnic_fcoe_send_vlan_req()
358 vlan->fip.fip_dl_len = htons(sizeof(vlan->desc) / FIP_BPW); in fnic_fcoe_send_vlan_req()
360 vlan->desc.mac.fd_desc.fip_dtype = FIP_DT_MAC; in fnic_fcoe_send_vlan_req()
361 vlan->desc.mac.fd_desc.fip_dlen = sizeof(vlan->desc.mac) / FIP_BPW; in fnic_fcoe_send_vlan_req()
362 memcpy(&vlan->desc.mac.fd_mac, fip->ctl_src_addr, ETH_ALEN); in fnic_fcoe_send_vlan_req()
364 vlan->desc.wwnn.fd_desc.fip_dtype = FIP_DT_NAME; in fnic_fcoe_send_vlan_req()
365 vlan->desc.wwnn.fd_desc.fip_dlen = sizeof(vlan->desc.wwnn) / FIP_BPW; in fnic_fcoe_send_vlan_req()
366 put_unaligned_be64(fip->lp->wwnn, &vlan->desc.wwnn.fd_wwn); in fnic_fcoe_send_vlan_req()
369 skb_put(skb, sizeof(*vlan)); in fnic_fcoe_send_vlan_req()
389 struct fcoe_vlan *vlan; in fnic_fcoe_process_vlan_resp() local
413 vlan = kmalloc(sizeof(*vlan), in fnic_fcoe_process_vlan_resp()
415 if (!vlan) { in fnic_fcoe_process_vlan_resp()
421 memset(vlan, 0, sizeof(struct fcoe_vlan)); in fnic_fcoe_process_vlan_resp()
422 vlan->vid = vid & 0x0fff; in fnic_fcoe_process_vlan_resp()
423 vlan->state = FIP_VLAN_AVAIL; in fnic_fcoe_process_vlan_resp()
424 list_add_tail(&vlan->list, &fnic->vlans); in fnic_fcoe_process_vlan_resp()
441 vlan = list_first_entry(&fnic->vlans, struct fcoe_vlan, list); in fnic_fcoe_process_vlan_resp()
442 fnic->set_vlan(fnic, vlan->vid); in fnic_fcoe_process_vlan_resp()
443 vlan->state = FIP_VLAN_SENT; /* sent now */ in fnic_fcoe_process_vlan_resp()
444 vlan->sol_count++; in fnic_fcoe_process_vlan_resp()
459 struct fcoe_vlan *vlan; in fnic_fcoe_start_fcf_disc() local
463 vlan = list_first_entry(&fnic->vlans, struct fcoe_vlan, list); in fnic_fcoe_start_fcf_disc()
464 fnic->set_vlan(fnic, vlan->vid); in fnic_fcoe_start_fcf_disc()
465 vlan->state = FIP_VLAN_SENT; /* sent now */ in fnic_fcoe_start_fcf_disc()
466 vlan->sol_count = 1; in fnic_fcoe_start_fcf_disc()
801 u16 q_number, completed_index, bytes_written = 0, vlan, checksum; in fnic_rq_cmpl_frame_recv() local
823 &vlan); in fnic_rq_cmpl_frame_recv()
835 &vlan_stripped, &vlan, &checksum, in fnic_rq_cmpl_frame_recv()
1244 struct fcoe_vlan *vlan; in fnic_fcoe_reset_vlans() local
1254 list_for_each_entry_safe(vlan, next, &fnic->vlans, list) { in fnic_fcoe_reset_vlans()
1255 list_del(&vlan->list); in fnic_fcoe_reset_vlans()
1256 kfree(vlan); in fnic_fcoe_reset_vlans()
1265 struct fcoe_vlan *vlan; in fnic_handle_fip_timer() local
1289 vlan = list_first_entry(&fnic->vlans, struct fcoe_vlan, list); in fnic_handle_fip_timer()
1292 vlan->vid, vlan->state, vlan->sol_count); in fnic_handle_fip_timer()
1293 switch (vlan->state) { in fnic_handle_fip_timer()
1307 if (vlan->sol_count >= FCOE_CTLR_MAX_SOL) { in fnic_handle_fip_timer()
1314 vlan->vid); in fnic_handle_fip_timer()
1315 list_del(&vlan->list); in fnic_handle_fip_timer()
1316 kfree(vlan); in fnic_handle_fip_timer()
1317 vlan = NULL; in fnic_handle_fip_timer()
1329 vlan = list_first_entry(&fnic->vlans, struct fcoe_vlan, in fnic_handle_fip_timer()
1331 fnic->set_vlan(fnic, vlan->vid); in fnic_handle_fip_timer()
1332 vlan->state = FIP_VLAN_SENT; /* sent now */ in fnic_handle_fip_timer()
1336 vlan->sol_count++; in fnic_handle_fip_timer()