Function switchml::ChangeMacEndianness¶
Defined in File dpdk_utils.h
Function Documentation¶
-
uint64_t
switchml::ChangeMacEndianness(uint64_t mac)¶ Take a MAC address as an 8 bytes integer with the first 6 bytes representing the MAC address and convert its endianness.
- Parameters
mac – an 8 bytes integer with the first 6 bytes representing the original MAC address.
- Returns
uint64_t an 8 bytes integer with the first 6 bytes representing the converted MAC address.