fm10k: Check tunnel header length in encap offload
authorJoe Stringer <joestringer@nicira.com>
Fri, 14 Nov 2014 07:47:40 +0000 (07:47 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 23 Jan 2015 02:10:21 +0000 (18:10 -0800)
commitb66b6d9f6dbe0655a570fb2a2482cceac5f1a9bc
treecffd645bf612e024996c7c623110fe3590a16a0a
parente2929e453a1dddf489cc8bc360eb207df39d196c
fm10k: Check tunnel header length in encap offload

fm10k supports up to 184 bytes of inner+outer headers. Add an initial
check to fail encap offload if these are too large.

Signed-off-by: Joe Stringer <joestringer@nicira.com>
Tested-by: Krishneil Singh <Krishneil.k.singh@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/fm10k/fm10k_main.c