Lines Matching full:vlan

12  * FIP VLAN functions that will eventually move to libfcoe.
19 struct fip_vlan *vlan; in qedf_fcoe_send_vlan_req() local
33 vlan = (struct fip_vlan *)eth_fr; in qedf_fcoe_send_vlan_req()
35 memset(vlan, 0, sizeof(*vlan)); in qedf_fcoe_send_vlan_req()
36 ether_addr_copy(vlan->eth.h_source, qedf->mac); in qedf_fcoe_send_vlan_req()
37 ether_addr_copy(vlan->eth.h_dest, my_fcoe_all_fcfs); in qedf_fcoe_send_vlan_req()
38 vlan->eth.h_proto = htons(ETH_P_FIP); in qedf_fcoe_send_vlan_req()
40 vlan->fip.fip_ver = FIP_VER_ENCAPS(FIP_VER); in qedf_fcoe_send_vlan_req()
41 vlan->fip.fip_op = htons(FIP_OP_VLAN); in qedf_fcoe_send_vlan_req()
42 vlan->fip.fip_subcode = FIP_SC_VL_REQ; in qedf_fcoe_send_vlan_req()
43 vlan->fip.fip_dl_len = htons(sizeof(vlan->desc) / FIP_BPW); in qedf_fcoe_send_vlan_req()
45 vlan->desc.mac.fd_desc.fip_dtype = FIP_DT_MAC; in qedf_fcoe_send_vlan_req()
46 vlan->desc.mac.fd_desc.fip_dlen = sizeof(vlan->desc.mac) / FIP_BPW; in qedf_fcoe_send_vlan_req()
47 ether_addr_copy(vlan->desc.mac.fd_mac, qedf->mac); in qedf_fcoe_send_vlan_req()
49 vlan->desc.wwnn.fd_desc.fip_dtype = FIP_DT_NAME; in qedf_fcoe_send_vlan_req()
50 vlan->desc.wwnn.fd_desc.fip_dlen = sizeof(vlan->desc.wwnn) / FIP_BPW; in qedf_fcoe_send_vlan_req()
51 put_unaligned_be64(qedf->lport->wwnn, &vlan->desc.wwnn.fd_wwn); in qedf_fcoe_send_vlan_req()
53 skb_put(skb, sizeof(*vlan)); in qedf_fcoe_send_vlan_req()
58 QEDF_INFO(&(qedf->dbg_ctx), QEDF_LOG_DISC, "Sending FIP VLAN " in qedf_fcoe_send_vlan_req()
62 QEDF_WARN(&(qedf->dbg_ctx), "Cannot send vlan request " in qedf_fcoe_send_vlan_req()
105 "Dropping VLAN response as link is down.\n"); in qedf_fcoe_process_vlan_resp()
109 QEDF_INFO(&(qedf->dbg_ctx), QEDF_LOG_DISC, "VLAN response, " in qedf_fcoe_process_vlan_resp()
142 * Add VLAN tag to non-offload FIP frame based on current stored VLAN in qedf_fip_send()
147 /* Get VLAN ID from skb for printing purposes */ in qedf_fip_send()
151 "dest=%pM op=%x sub=%x vlan=%04x.", eth_hdr->h_dest, op, sub, in qedf_fip_send()
184 u16 vlan = 0; in qedf_fip_recv() local
192 "FIP frame received: skb=%p fiph=%p source=%pM destn=%pM op=%x sub=%x vlan=%04x", in qedf_fip_recv()
194 sub, vlan); in qedf_fip_recv()
210 /* Handle FIP VLAN resp in the driver */ in qedf_fip_recv()