vdpa/ifc/base: access block device registers
authorAndy Pei <andy.pei@intel.com>
Tue, 24 May 2022 02:48:17 +0000 (10:48 +0800)
committerMaxime Coquelin <maxime.coquelin@redhat.com>
Wed, 1 Jun 2022 09:50:10 +0000 (11:50 +0200)
commit5d75517beffe1b8315114a69975e0fa2549a6cc2
tree28def86fb22d5c9fc520961d64f247a6a17bb6e1
parent65575dadc7960f80347bd1a016f78f5a31b2987c
vdpa/ifc/base: access block device registers

Register address is different between net and blk device.
We are re-using most of the code, when register address is
different, we have to check net and blk device go through
different code.

Signed-off-by: Andy Pei <andy.pei@intel.com>
Reviewed-by: Chenbo Xia <chenbo.xia@intel.com>
drivers/vdpa/ifc/base/ifcvf.c