mirror of
https://github.com/raspberrypi/linux.git
synced 2026-01-02 15:53:42 +00:00
Currently, all HW supporting idpf supports the singleq model, but none of it advertises it by default, as splitq is supported and preferred for multiple reasons. Still, this almost dead code often times adds hotpath branches and redundant cacheline accesses. While it can't currently be removed, add CONFIG_IDPF_SINGLEQ and build the singleq code only when it's enabled manually. This corresponds to -10 Kb of object code size and a good bunch of hotpath checks. idpf_is_queue_model_split() works as a gate and compiles out to `true` when the config option is disabled. Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com> Signed-off-by: Alexander Lobakin <aleksander.lobakin@intel.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
20 lines
407 B
Makefile
20 lines
407 B
Makefile
# SPDX-License-Identifier: GPL-2.0-only
|
|
# Copyright (C) 2023 Intel Corporation
|
|
|
|
# Makefile for Intel(R) Infrastructure Data Path Function Linux Driver
|
|
|
|
obj-$(CONFIG_IDPF) += idpf.o
|
|
|
|
idpf-y := \
|
|
idpf_controlq.o \
|
|
idpf_controlq_setup.o \
|
|
idpf_dev.o \
|
|
idpf_ethtool.o \
|
|
idpf_lib.o \
|
|
idpf_main.o \
|
|
idpf_txrx.o \
|
|
idpf_virtchnl.o \
|
|
idpf_vf_dev.o
|
|
|
|
idpf-$(CONFIG_IDPF_SINGLEQ) += idpf_singleq_txrx.o
|