[Intel-wired-lan] [PATCH S30 v4 4/9] ice: Move common functions to ice_txrx_lib.c
Bowers, AndrewX
andrewx.bowers at intel.com
Mon Nov 4 20:17:02 UTC 2019
> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On
> Behalf Of Tony Nguyen
> Sent: Thursday, October 31, 2019 7:30 AM
> To: intel-wired-lan at lists.osuosl.org
> Subject: [Intel-wired-lan] [PATCH S30 v4 4/9] ice: Move common functions to
> ice_txrx_lib.c
>
> From: Krzysztof Kazimierczak <krzysztof.kazimierczak at intel.com>
>
> 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 at intel.com>
> Signed-off-by: Tony Nguyen <anthony.l.nguyen at intel.com>
> ---
> v4:
> - Change ice_build_ctob() call to build_ctob()
> v2:
> - Move ice_build_ctob() to ice_txrx_lib.h
> ---
> drivers/net/ethernet/intel/ice/Makefile | 1 +
> drivers/net/ethernet/intel/ice/ice_txrx.c | 303 +-----------------
> drivers/net/ethernet/intel/ice/ice_txrx.h | 10 -
> drivers/net/ethernet/intel/ice/ice_txrx_lib.c | 273 ++++++++++++++++
> drivers/net/ethernet/intel/ice/ice_txrx_lib.h | 59 ++++
> 5 files changed, 334 insertions(+), 312 deletions(-) create mode 100644
> drivers/net/ethernet/intel/ice/ice_txrx_lib.c
> create mode 100644 drivers/net/ethernet/intel/ice/ice_txrx_lib.h
Tested-by: Andrew Bowers <andrewx.bowers at intel.com>
More information about the Intel-wired-lan
mailing list