aboutsummaryrefslogtreecommitdiffstats
path: root/net/bridge/br_netfilter.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2014-02-23 00:05:26 -0800
committerDavid S. Miller <davem@davemloft.net>2014-02-24 19:16:44 -0500
commit04091142826e5823e31cc6418942ac447b3edb0a (patch)
treedbc0275ae1f732f7985d601b91fbad0dba7ed01b /net/bridge/br_netfilter.c
parentbridge: Use ether_addr_copy and ETH_ALEN (diff)
downloadlinux-dev-04091142826e5823e31cc6418942ac447b3edb0a.tar.xz
linux-dev-04091142826e5823e31cc6418942ac447b3edb0a.zip
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/br_netfilter.c')
-rw-r--r--net/bridge/br_netfilter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bridge/br_netfilter.c b/net/bridge/br_netfilter.c
index b008c59a92c4..df0f114fb8cb 100644
--- a/net/bridge/br_netfilter.c
+++ b/net/bridge/br_netfilter.c
@@ -506,7 +506,7 @@ bridged_dnat:
1);
return 0;
}
- memcpy(eth_hdr(skb)->h_dest, dev->dev_addr, ETH_ALEN);
+ ether_addr_copy(eth_hdr(skb)->h_dest, dev->dev_addr);
skb->pkt_type = PACKET_HOST;
}
} else {