mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-21 10:21:24 +07:00
5da0fc9dbf
Current implementation allows each qp to have only one send engine. As such, each qp has only one list to queue prebuilt packets when send engine resources are not available. To improve performance, it is desired to support multiple send engines for each qp. This patch creates the framework to support two send engines (two legs) for each qp for the TID RDMA protocol, which can be easily extended to support more send engines. It achieves the goal by creating a leg specific struct, iowait_work in the iowait struct, to hold the work_struct and the tx_list as well as a pointer to the parent iowait struct. The hfi1_pkt_state now has an additional field to record the current legs work structure and that is now passed to all egress waiters to determine the leg that needs to wait via a new iowait helper. The APIs are adjusted to use the new leg specific struct as required. Many new and modified helpers are added to support this change. Reviewed-by: Mitko Haralanov <mitko.haralanov@intel.com> Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com> Signed-off-by: Kaike Wan <kaike.wan@intel.com> Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
61 lines
821 B
Makefile
61 lines
821 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
#
|
|
# HFI driver
|
|
#
|
|
#
|
|
#
|
|
# Called from the kernel module build system.
|
|
#
|
|
obj-$(CONFIG_INFINIBAND_HFI1) += hfi1.o
|
|
|
|
hfi1-y := \
|
|
affinity.o \
|
|
chip.o \
|
|
device.o \
|
|
driver.o \
|
|
efivar.o \
|
|
eprom.o \
|
|
exp_rcv.o \
|
|
file_ops.o \
|
|
firmware.o \
|
|
init.o \
|
|
intr.o \
|
|
iowait.o \
|
|
mad.o \
|
|
mmu_rb.o \
|
|
msix.o \
|
|
pcie.o \
|
|
pio.o \
|
|
pio_copy.o \
|
|
platform.o \
|
|
qp.o \
|
|
qsfp.o \
|
|
rc.o \
|
|
ruc.o \
|
|
sdma.o \
|
|
sysfs.o \
|
|
trace.o \
|
|
uc.o \
|
|
ud.o \
|
|
user_exp_rcv.o \
|
|
user_pages.o \
|
|
user_sdma.o \
|
|
verbs.o \
|
|
verbs_txreq.o \
|
|
vnic_main.o \
|
|
vnic_sdma.o
|
|
|
|
ifdef CONFIG_DEBUG_FS
|
|
hfi1-y += debugfs.o
|
|
ifdef CONFIG_FAULT_INJECTION
|
|
ifdef CONFIG_FAULT_INJECTION_DEBUG_FS
|
|
hfi1-y += fault.o
|
|
endif
|
|
endif
|
|
endif
|
|
|
|
CFLAGS_trace.o = -I$(src)
|
|
ifdef MVERSION
|
|
CFLAGS_driver.o = -DHFI_DRIVER_VERSION_BASE=\"$(MVERSION)\"
|
|
endif
|