/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright(c) 2007 Intel Corporation. All rights reserved. * * Maintained at www.Open-FCoE.org
*/
#ifndef _FC_FCOE_H_ #define _FC_FCOE_H_
/* * FCoE - Fibre Channel over Ethernet. * See T11 FC-BB-5 Rev 2.00 (09-056v5.pdf)
*/
/* * Default FC_FCOE_OUI / FC-MAP value.
*/ #define FC_FCOE_OUI 0x0efc00 /* upper 24 bits of FCOE MAC */
/* * Fabric Login (FLOGI) MAC for non-FIP use. Non-FIP use is deprecated.
*/ #define FC_FCOE_FLOGI_MAC { 0x0e, 0xfc, 0x00, 0xff, 0xff, 0xfe }
#define FC_FCOE_VER 0 /* version */
/* * Ethernet Addresses based on FC S_ID and D_ID. * Generated by FC_FCOE_OUI | S_ID/D_ID
*/ #define FC_FCOE_ENCAPS_ID(n) (((u64) FC_FCOE_OUI << 24) | (n)) #define FC_FCOE_DECAPS_ID(n) ((n) >> 24)
/* * FCoE frame header - 14 bytes * This follows the VLAN header, which includes the ethertype.
*/ struct fcoe_hdr {
__u8 fcoe_ver; /* version field - upper 4 bits */
__u8 fcoe_resvd[12]; /* reserved - send zero and ignore */
__u8 fcoe_sof; /* start of frame per RFC 3643 */
};
/* * fc_fcoe_set_mac - Store OUI + DID into MAC address field. * @mac: mac address to be set * @did: fc dest id to use
*/ staticinlinevoid fc_fcoe_set_mac(u8 *mac, u8 *did)
{
mac[0] = (u8) (FC_FCOE_OUI >> 16);
mac[1] = (u8) (FC_FCOE_OUI >> 8);
mac[2] = (u8) FC_FCOE_OUI;
mac[3] = did[0];
mac[4] = did[1];
mac[5] = did[2];
}
#endif/* _FC_FCOE_H_ */
Messung V0.5
¤ Dauer der Verarbeitung: 0.10 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.