i40evf: pass struct virtchnl_filter by reference rather than by value
authorColin Ian King <colin.king@canonical.com>
Thu, 15 Feb 2018 19:26:05 +0000 (19:26 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 26 Feb 2018 20:35:01 +0000 (12:35 -0800)
commite85c1b8234e65134ccf801938f98352a43263a9f
tree38886720a5f2e6f6af71d528967a97f19edc2475
parent04d4105174349dceccf9545a3e5e421c18f2cc56
i40evf: pass struct virtchnl_filter by reference rather than by value

Passing struct virtchnl_filter f by value requires a 272 byte copy
on x86_64, so instead pass it by reference is much more efficient. Also
adjust some lines that are over 80 chars.

Detected by CoverityScan, CID#1465285 ("Big parameter passed by value")

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Harshitha Ramamurthy <harshitha.ramamurthy@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40evf/i40evf_virtchnl.c