ice: Move common functions to ice_txrx_lib.c
authorKrzysztof Kazimierczak <krzysztof.kazimierczak@intel.com>
Mon, 4 Nov 2019 17:38:56 +0000 (09:38 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 4 Nov 2019 19:45:05 +0000 (11:45 -0800)
commit0891d6d4b1fe1becf1a77353b03449955820084b
tree83276068f9be9e4e713fd2df557b979edf6d2dcf
parentefc2214b6047b6f5b4ca53151eba62521b9452d6
ice: Move common functions to ice_txrx_lib.c

In preparation of AF XDP, move functions that will be used both by skb and
zero-copy paths to a new file called ice_txrx_lib.c.  This allows us to
avoid using ifdefs to control the staticness of said functions.

Move other functions (ice_rx_csum, ice_rx_hash and ice_ptype_to_htype)
called only by the moved ones to the new file as well.

Signed-off-by: Krzysztof Kazimierczak <krzysztof.kazimierczak@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ice/Makefile
drivers/net/ethernet/intel/ice/ice_txrx.c
drivers/net/ethernet/intel/ice/ice_txrx.h
drivers/net/ethernet/intel/ice/ice_txrx_lib.c [new file with mode: 0644]
drivers/net/ethernet/intel/ice/ice_txrx_lib.h [new file with mode: 0644]