mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
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:
parent
2235ad1c3a
commit
8c63ff09bd
3 changed files with 16 additions and 16 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue