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>
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user