i40e: avoid large memcpy by assigning struct
authorJacob Keller <jacob.e.keller@intel.com>
Mon, 4 Jan 2016 18:33:11 +0000 (10:33 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 17 Feb 2016 16:57:44 +0000 (08:57 -0800)
commit45d043597d2d0e780e768866c6fbfe8dbee5f2cf
tree797ded4a72ea6e86ea456f92eabbc906c91dc20d
parentc40918c3ad80e550ec68339d6816059e11648012
i40e: avoid large memcpy by assigning struct

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.

Change-ID: I17604e23be2616521eb760290befcb767b52b3f7
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Reviewed-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_debugfs.c