idxd: Remove unused nop_check callback
Signed-off-by: Ben Walker <benjamin.walker@intel.com> Change-Id: Ibda86694edc10a3edec8cb85638b4950647b13eb Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/11435 Reviewed-by: Paul Luse <paul.e.luse@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
parent
7ddc75abdb
commit
8c400e494a
@ -162,8 +162,6 @@ struct spdk_idxd_impl {
|
||||
void (*destruct)(struct spdk_idxd_device *idxd);
|
||||
void (*dump_sw_error)(struct spdk_idxd_device *idxd, void *portal);
|
||||
char *(*portal_get_addr)(struct spdk_idxd_device *idxd);
|
||||
/* It is a workaround for simulator */
|
||||
bool (*nop_check)(struct spdk_idxd_device *idxd);
|
||||
|
||||
STAILQ_ENTRY(spdk_idxd_impl) link;
|
||||
};
|
||||
|
@ -550,27 +550,13 @@ user_idxd_portal_get_addr(struct spdk_idxd_device *idxd)
|
||||
return (char *)idxd->portals + idxd->wq_id * WQ_TOTAL_PORTAL_SIZE;
|
||||
}
|
||||
|
||||
static bool
|
||||
user_idxd_nop_check(struct spdk_idxd_device *idxd)
|
||||
{
|
||||
struct spdk_user_idxd_device *user_idxd = __user_idxd(idxd);
|
||||
|
||||
/* TODO: temp workaround for simulator. Remove this function when fixed or w/silicon. */
|
||||
if (user_idxd->registers.gencap.raw == 0x1833f011f) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
static struct spdk_idxd_impl g_user_idxd_impl = {
|
||||
.name = "user",
|
||||
.set_config = user_idxd_set_config,
|
||||
.probe = user_idxd_probe,
|
||||
.destruct = user_idxd_device_destruct,
|
||||
.dump_sw_error = user_idxd_dump_sw_err,
|
||||
.portal_get_addr = user_idxd_portal_get_addr,
|
||||
.nop_check = user_idxd_nop_check,
|
||||
.portal_get_addr = user_idxd_portal_get_addr
|
||||
};
|
||||
|
||||
/* Caller must hold g_driver_lock */
|
||||
|
Loading…
Reference in New Issue
Block a user