fm10k: rework vxlan_port offload before adding geneve support
authorJacob Keller <jacob.e.keller@intel.com>
Fri, 26 Aug 2016 07:14:34 +0000 (00:14 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 29 Aug 2016 08:31:03 +0000 (01:31 -0700)
commitf92e0e489225cae41290f8b42bf04128b2451789
tree59c1ef9b16f6fd035eb607c04725f4223a7c3949
parent5f45c83024c49f71e50cf8156b165f11d2ab35a9
fm10k: rework vxlan_port offload before adding geneve support

In preparation for adding Geneve Rx offload support, refactor the
current VXLAN offload flow to be a bit more generic so that it will be
easier to add the new Geneve code. The fm10k hardware supports one VXLAN
and one Geneve tunnel, so we will eventually treat the VXLAN and Geneve
tunnels identically. To this end, factor out the code that handles the
current list so that we can use the generic flow for both tunnels in the
next patch.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.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.h
drivers/net/ethernet/intel/fm10k/fm10k_main.c
drivers/net/ethernet/intel/fm10k/fm10k_netdev.c