diff options
-rw-r--r-- | include/linux/etherdevice.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/etherdevice.h b/include/linux/etherdevice.h index c47631fac229..f3301140d28a 100644 --- a/include/linux/etherdevice.h +++ b/include/linux/etherdevice.h | |||
@@ -171,6 +171,18 @@ static inline unsigned compare_ether_addr(const u8 *addr1, const u8 *addr2) | |||
171 | return ((a[0] ^ b[0]) | (a[1] ^ b[1]) | (a[2] ^ b[2])) != 0; | 171 | return ((a[0] ^ b[0]) | (a[1] ^ b[1]) | (a[2] ^ b[2])) != 0; |
172 | } | 172 | } |
173 | 173 | ||
174 | /** | ||
175 | * ether_addr_equal - Compare two Ethernet addresses | ||
176 | * @addr1: Pointer to a six-byte array containing the Ethernet address | ||
177 | * @addr2: Pointer other six-byte array containing the Ethernet address | ||
178 | * | ||
179 | * Compare two ethernet addresses, returns true if equal | ||
180 | */ | ||
181 | static inline bool ether_addr_equal(const u8 *addr1, const u8 *addr2) | ||
182 | { | ||
183 | return !compare_ether_addr(addr1, addr2); | ||
184 | } | ||
185 | |||
174 | static inline unsigned long zap_last_2bytes(unsigned long value) | 186 | static inline unsigned long zap_last_2bytes(unsigned long value) |
175 | { | 187 | { |
176 | #ifdef __BIG_ENDIAN | 188 | #ifdef __BIG_ENDIAN |