]> git.baikalelectronics.ru Git - kernel.git/commit
i40e/virtchnl: refactor code for validate checks
authorJesse Brandeburg <jesse.brandeburg@intel.com>
Thu, 11 May 2017 18:23:14 +0000 (11:23 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 1 Jun 2017 21:17:02 +0000 (14:17 -0700)
commit07362b4d2a68480e6596661be00471692df32b9b
treeb67e0b10a130a2205aa49d54ea58423e7731ac5a
parent5d069db3b8ad13fdc837c76e6204e1a00f1c5088
i40e/virtchnl: refactor code for validate checks

This change updates the arguments passed to the validate function
and fixes the caller, as well as uses the new return values added to
virtchnl.h

One other minor tweak, remove a duplicate set to zero of valid_len.

This is in preparation for moving the function to virtchnl.h.

Signed-off-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_virtchnl_pf.c
include/linux/avf/virtchnl.h