Skip to content

Commit 5a2414b

Browse files
Zhu Lingshanmstsirkin
authored andcommitted
virtio: Intel IFC VF driver for VDPA
This commit introduced two layers to drive IFC VF: (1) ifcvf_base layer, which handles IFC VF NIC hardware operations and configurations. (2) ifcvf_main layer, which complies to VDPA bus framework, implemented device operations for VDPA bus, handles device probe, bus attaching, vring operations, etc. Signed-off-by: Zhu Lingshan <[email protected]> Signed-off-by: Bie Tiwei <[email protected]> Signed-off-by: Wang Xiao <[email protected]> Signed-off-by: Jason Wang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Michael S. Tsirkin <[email protected]>
1 parent 2c53d0f commit 5a2414b

File tree

6 files changed

+957
-0
lines changed

6 files changed

+957
-0
lines changed

drivers/virtio/vdpa/Kconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,15 @@ config VDPA_SIM
2323
to RX. This device is used for testing, prototyping and
2424
development of vDPA.
2525

26+
config IFCVF
27+
tristate "Intel IFC VF VDPA driver"
28+
depends on PCI_MSI
29+
select VDPA
30+
default n
31+
help
32+
This kernel module can drive Intel IFC VF NIC to offload
33+
virtio dataplane traffic to hardware.
34+
To compile this driver as a module, choose M here: the module will
35+
be called ifcvf.
36+
2637
endif # VDPA_MENU

drivers/virtio/vdpa/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# SPDX-License-Identifier: GPL-2.0
22
obj-$(CONFIG_VDPA) += vdpa.o
33
obj-$(CONFIG_VDPA_SIM) += vdpa_sim/
4+
obj-$(CONFIG_IFCVF) += ifcvf/

drivers/virtio/vdpa/ifcvf/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
obj-$(CONFIG_IFCVF) += ifcvf.o
3+
ifcvf-$(CONFIG_IFCVF) += ifcvf_main.o ifcvf_base.o

0 commit comments

Comments
 (0)