Lines Matching defs:mac

168 	LIBFCOE_FIP_DBG(fip, "New FCF fab %16.16llx mac %pM\n",
179 memcpy(temp->mac, new->fcf_mac, ETH_ALEN);
383 struct fip_mac_desc mac;
409 sol->desc.mac.fd_desc.fip_dtype = FIP_DT_MAC;
410 sol->desc.mac.fd_desc.fip_dlen = sizeof(sol->desc.mac) / FIP_BPW;
411 memcpy(sol->desc.mac.fd_mac, fip->ctl_src_addr, ETH_ALEN);
537 struct fip_mac_desc mac;
563 kal->fip.fip_dl_len = htons((sizeof(kal->mac) +
569 kal->mac.fd_desc.fip_dtype = FIP_DT_MAC;
570 kal->mac.fd_desc.fip_dlen = sizeof(kal->mac) / FIP_BPW;
571 memcpy(kal->mac.fd_mac, fip->ctl_src_addr, ETH_ALEN);
613 struct fip_mac_desc *mac;
655 dlen += sizeof(*mac);
656 mac = skb_put_zero(skb, sizeof(*mac));
657 mac->fd_desc.fip_dtype = FIP_DT_MAC;
658 mac->fd_desc.fip_dlen = sizeof(*mac) / FIP_BPW;
660 memcpy(mac->fd_mac, fip->get_src_addr(lport), ETH_ALEN);
662 hton24(mac->fd_mac, FIP_VN_FC_MAP);
663 hton24(mac->fd_mac + 3, fip->port_id);
666 memcpy(mac->fd_mac, fip->ctl_src_addr, ETH_ALEN);
704 u8 mac[ETH_ALEN];
765 * the source mac based on the SID. The destination
773 fc_fcoe_set_mac(mac, fh->fh_d_id);
774 fip->update_mac(lport, mac);
1055 "for FCF, fab %16.16llx mac %pM\n",
1084 LIBFCOE_FIP_DBG(fip, "New FCF fab %16.16llx mac %pM\n",
1622 "VFID %d mac %pM map %x val %d "
1648 LIBFCOE_FIP_DBG(fip, "using FCF mac %pM\n", best->fcf_mac);
1792 u8 *mac;
1857 mac = fip->get_src_addr(fip->lp);
1858 fcoe_ctlr_send_keep_alive(fip, fip->lp, 1, mac);
1860 mac = fip->get_src_addr(vport);
1861 fcoe_ctlr_send_keep_alive(fip, vport, 1, mac);
1924 * If the src mac addr is FC_OUI-based, then we mark the
1958 * @mac: The MAC address to convert
1964 u64 fcoe_wwn_from_mac(unsigned char mac[ETH_ALEN],
1971 host_mac = ((u64) mac[0] << 40) |
1972 ((u64) mac[1] << 32) |
1973 ((u64) mac[2] << 24) |
1974 ((u64) mac[3] << 16) |
1975 ((u64) mac[4] << 8) |
1976 (u64) mac[5];
2021 struct fip_mac_desc mac;
2038 dlen += sizeof(frame->mac) + sizeof(frame->wwnn) + sizeof(frame->vn);
2062 frame->mac.fd_desc.fip_dtype = FIP_DT_MAC;
2063 frame->mac.fd_desc.fip_dlen = sizeof(frame->mac) / FIP_BPW;
2064 memcpy(frame->mac.fd_mac, fip->ctl_src_addr, ETH_ALEN);
2538 * @mac: buffer which will hold the VN_NODE destination MAC address, if found.
2542 static int fcoe_ctlr_vn_lookup(struct fcoe_ctlr *fip, u32 port_id, u8 *mac)
2552 memcpy(mac, frport->enode_mac, ETH_ALEN);
2899 struct fip_mac_desc mac;
2906 dlen = sizeof(frame->mac) + sizeof(frame->vlan);
2929 frame->mac.fd_desc.fip_dtype = FIP_DT_MAC;
2930 frame->mac.fd_desc.fip_dlen = sizeof(frame->mac) / FIP_BPW;
2931 memcpy(frame->mac.fd_mac, fip->ctl_src_addr, ETH_ALEN);
3076 u8 mac[ETH_ALEN];
3096 hton24(mac, FIP_VN_FC_MAP);
3097 hton24(mac + 3, new_port_id);
3099 fip->update_mac(fip->lp, mac);