Skip to content

Commit

Permalink
virtio: Intel IFC VF driver for VDPA
Browse files Browse the repository at this point in the history
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 <lingshan.zhu@intel.com>
Signed-off-by: Bie Tiwei <tiwei.bie@intel.com>
Signed-off-by: Wang Xiao <xiao.w.wang@intel.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Link: https://lore.kernel.org/r/20200326140125.19794-10-jasowang@redhat.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
  • Loading branch information
Zhu Lingshan authored and Michael S. Tsirkin committed Apr 2, 2020
1 parent 2c53d0f commit 5a2414b
Show file tree
Hide file tree
Showing 6 changed files with 957 additions and 0 deletions.
11 changes: 11 additions & 0 deletions drivers/virtio/vdpa/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,15 @@ config VDPA_SIM
to RX. This device is used for testing, prototyping and
development of vDPA.

config IFCVF
tristate "Intel IFC VF VDPA driver"
depends on PCI_MSI
select VDPA
default n
help
This kernel module can drive Intel IFC VF NIC to offload
virtio dataplane traffic to hardware.
To compile this driver as a module, choose M here: the module will
be called ifcvf.

endif # VDPA_MENU
1 change: 1 addition & 0 deletions drivers/virtio/vdpa/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: GPL-2.0
obj-$(CONFIG_VDPA) += vdpa.o
obj-$(CONFIG_VDPA_SIM) += vdpa_sim/
obj-$(CONFIG_IFCVF) += ifcvf/
3 changes: 3 additions & 0 deletions drivers/virtio/vdpa/ifcvf/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# SPDX-License-Identifier: GPL-2.0
obj-$(CONFIG_IFCVF) += ifcvf.o
ifcvf-$(CONFIG_IFCVF) += ifcvf_main.o ifcvf_base.o
Loading

0 comments on commit 5a2414b

Please sign in to comment.