[Intel-wired-lan] [next PATCH S26 11/12] i40e: avoid large memcpy by assigning struct

Bowers, AndrewX andrewx.bowers at intel.com
Thu Jan 7 19:30:24 UTC 2016


> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at lists.osuosl.org] On
> Behalf Of Deepthi Kavalur
> Sent: Monday, January 04, 2016 10:33 AM
> To: intel-wired-lan at lists.osuosl.org
> Subject: [Intel-wired-lan] [next PATCH S26 11/12] i40e: avoid large memcpy
> by assigning struct
> 
> From: Jacob Keller <jacob.e.keller at intel.com>
> 
> Assign the i40e_pf structure directly instead of using a large memcpy, which
> avoids a sparse warning and lets the compiler optimize the copy since it
> knows the size of the structure in advance.
> 
> Signed-off-by: Jacob Keller <jacob.e.keller at intel.com>
> Reviewed-by: Brandeburg, Jesse <jesse.brandeburg at intel.com>
> Change-ID: I17604e23be2616521eb760290befcb767b52b3f7
> ---
>  drivers/net/ethernet/intel/i40e/i40e_debugfs.c | 8 +++++---
>  1 file changed, 5 insertions(+), 3 deletions(-)

Tested-by: Andrew Bowers <andrewx.bowers at intel.com>
Patch code changes correctly applied


More information about the Intel-wired-lan mailing list