1ETHER_ADDR_EQUAL_64B(9) Network device support ETHER_ADDR_EQUAL_64B(9)
2
3
4
6 ether_addr_equal_64bits - Compare two Ethernet addresses
7
9 bool ether_addr_equal_64bits(const u8 addr1[6+2], const u8 addr2[6+2]);
10
12 addr1[6+2]
13 Pointer to an array of 8 bytes
14
15 addr2[6+2]
16 Pointer to an other array of 8 bytes
17
19 Compare two Ethernet addresses, returns true if equal, false otherwise.
20
21 The function doesn't need any conditional branches and possibly uses
22 word memory accesses on CPU allowing cheap unaligned memory reads.
23 arrays = { byte1, byte2, byte3, byte4, byte5, byte6, pad1, pad2 }
24
25 Please note that alignment of addr1 & addr2 are only guaranteed to be
26 16 bits.
27
29Kernel Hackers Manual 3.10 June 2019 ETHER_ADDR_EQUAL_64B(9)