IB/hfi1: Add functions to receive accelerated ipoib packets
authorKaike Wan <kaike.wan@intel.com>
Mon, 11 May 2020 16:06:31 +0000 (12:06 -0400)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 21 May 2020 14:23:56 +0000 (11:23 -0300)
commit6991abcb993cf6c0711237b9d393d4f0a2008f1f
treeab8795a0471d72cd89fbdffae3232dd77d90a14a
parent89dcaa366bffb9fcef39b97d08cc26d0a115ee35
IB/hfi1: Add functions to receive accelerated ipoib packets

Ipoib netdev will share receive contexts with existing VNIC netdev.
To achieve that, a dummy netdev is allocated with hfi1_devdata to
own the receive contexts, and ipoib and VNIC netdevs will be put
on top of it. Each receive context is associated with a single
NAPI object.

This patch adds the functions to receive incoming packets for
accelerated ipoib.

Link: https://lore.kernel.org/r/20200511160631.173205.54184.stgit@awfm-01.aw.intel.com
Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Sadanand Warrier <sadanand.warrier@intel.com>
Signed-off-by: Grzegorz Andrejczuk <grzegorz.andrejczuk@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>
drivers/infiniband/hw/hfi1/Makefile
drivers/infiniband/hw/hfi1/driver.c
drivers/infiniband/hw/hfi1/hfi.h
drivers/infiniband/hw/hfi1/ipoib.h
drivers/infiniband/hw/hfi1/ipoib_rx.c [new file with mode: 0644]
drivers/infiniband/hw/hfi1/netdev.h [new file with mode: 0644]
drivers/infiniband/hw/hfi1/netdev_rx.c [new file with mode: 0644]