]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita0b9a52f07907845582e9c2cecfcb391cdbf8f9e
tree83276068f9be9e4e713fd2df557b979edf6d2dcf
parent222ff8e45f2195e87487fb878df053233eb81e4e
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]