From d36e456154e7c5d3a2ef6864d2a58bbfc2e4fc31 Mon Sep 17 00:00:00 2001 From: Duan Jiong Date: Sat, 8 Sep 2012 16:32:28 +0000 Subject: [PATCH] --- yaml --- r: 327842 b: refs/heads/master c: 6d57e9078e880a3dd232d579f42ac437a8f1ef7b h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/include/linux/etherdevice.h | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 24eef48bcc06..fc76053d2427 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 82346a7b6a14793a48cc7a0692a007daf0843f99 +refs/heads/master: 6d57e9078e880a3dd232d579f42ac437a8f1ef7b diff --git a/trunk/include/linux/etherdevice.h b/trunk/include/linux/etherdevice.h index d426336d92d9..b006ba0a9f42 100644 --- a/trunk/include/linux/etherdevice.h +++ b/trunk/include/linux/etherdevice.h @@ -150,6 +150,17 @@ static inline void eth_broadcast_addr(u8 *addr) memset(addr, 0xff, ETH_ALEN); } +/** + * eth_zero_addr - Assign zero address + * @addr: Pointer to a six-byte array containing the Ethernet address + * + * Assign the zero address to the given address array. + */ +static inline void eth_zero_addr(u8 *addr) +{ + memset(addr, 0x00, ETH_ALEN); +} + /** * eth_hw_addr_random - Generate software assigned random Ethernet and * set device flag