diff options
author | Joe Perches <joe@perches.com> | 2014-02-23 12:05:26 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-02-25 04:16:44 +0400 |
commit | 04091142826e5823e31cc6418942ac447b3edb0a (patch) | |
tree | dbc0275ae1f732f7985d601b91fbad0dba7ed01b /net/bridge/netfilter/ebt_among.c | |
parent | e5a727f6632654098fa4e87d8551a5873e8f658a (diff) | |
download | linux-04091142826e5823e31cc6418942ac447b3edb0a.tar.xz |
bridge: netfilter: Use ether_addr_copy
Convert the uses of memcpy to ether_addr_copy because
for some architectures it is smaller and faster.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge/netfilter/ebt_among.c')
-rw-r--r-- | net/bridge/netfilter/ebt_among.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bridge/netfilter/ebt_among.c b/net/bridge/netfilter/ebt_among.c index 3fb3c848affe..9024283d2bca 100644 --- a/net/bridge/netfilter/ebt_among.c +++ b/net/bridge/netfilter/ebt_among.c @@ -28,7 +28,7 @@ static bool ebt_mac_wormhash_contains(const struct ebt_mac_wormhash *wh, uint32_t cmp[2] = { 0, 0 }; int key = ((const unsigned char *)mac)[5]; - memcpy(((char *) cmp) + 2, mac, ETH_ALEN); + ether_addr_copy(((char *) cmp) + 2, mac); start = wh->table[key]; limit = wh->table[key + 1]; if (ip) { |