diff options
author | Joe Perches <joe@perches.com> | 2014-02-18 23:15:45 +0400 |
---|---|---|
committer | Jesse Gross <jesse@nicira.com> | 2014-05-17 00:40:29 +0400 |
commit | 8c63ff09bddf944ab0033fea97aacfadfffa76de (patch) | |
tree | 1edb3de3a1752b4b6b7c368728db550cc8edbd5c /net/openvswitch/actions.c | |
parent | 2235ad1c3ac545bd8fc2c026be5be16d98b9a891 (diff) | |
download | linux-8c63ff09bddf944ab0033fea97aacfadfffa76de.tar.xz |
openvswitch: Use ether_addr_copy
It's slightly smaller/faster for some architectures.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
Diffstat (limited to 'net/openvswitch/actions.c')
-rw-r--r-- | net/openvswitch/actions.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/openvswitch/actions.c b/net/openvswitch/actions.c index 2c77e7b1a913..c36856a457ca 100644 --- a/net/openvswitch/actions.c +++ b/net/openvswitch/actions.c @@ -134,8 +134,8 @@ static int set_eth_addr(struct sk_buff *skb, skb_postpull_rcsum(skb, eth_hdr(skb), ETH_ALEN * 2); - memcpy(eth_hdr(skb)->h_source, eth_key->eth_src, ETH_ALEN); - memcpy(eth_hdr(skb)->h_dest, eth_key->eth_dst, ETH_ALEN); + ether_addr_copy(eth_hdr(skb)->h_source, eth_key->eth_src); + ether_addr_copy(eth_hdr(skb)->h_dest, eth_key->eth_dst); ovs_skb_postpush_rcsum(skb, eth_hdr(skb), ETH_ALEN * 2); |