projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5674726
)
i40e: use struct assign instead of memcpy
author
Mitch Williams
<
[email protected]
>
Thu, 28 Nov 2013 06:39:38 +0000
(06:39 +0000)
committer
Jeff Kirsher
<
[email protected]
>
Mon, 6 Jan 2014 10:20:10 +0000
(
02:20
-0800)
Use struct assignment rather than an expensive memory copy.
Change-Id: I1d18d510774dfd41a9c1250cdef238a4187528f5
Signed-off-by: Mitch Williams <
[email protected]
>
Signed-off-by: Jesse Brandeburg <
[email protected]
>
Tested-by: Sibai Li <
[email protected]
>
Signed-off-by: Jeff Kirsher <
[email protected]
>
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c
b/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c
index bed60220e6924ea313e728211f639a9df50adc67..f92404c8646e48356958bdbbf6d1361d6e8ee362 100644
(file)
--- a/
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c
+++ b/
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c
@@
-1310,7
+1310,7
@@
static int i40e_vc_get_stats_msg(struct i40e_vf *vf, u8 *msg, u16 msglen)
goto error_param;
}
i40e_update_eth_stats(vsi);
-
memcpy(&stats, &vsi->eth_stats, sizeof(struct i40e_eth_stats))
;
+
stats = vsi->eth_stats
;
error_param:
/* send the response back to the vf */