
The 'sq_head_index' is operated by the accelerator hardware, and is useless to the driver. Therefore, remove 'sq_head_index'. Signed-off-by: Weili Qian <qianweili@huawei.com> --- drv/hisi_qm_udrv.c | 1 - include/hisi_qm_udrv.h | 1 - 2 files changed, 2 deletions(-) diff --git a/drv/hisi_qm_udrv.c b/drv/hisi_qm_udrv.c index b1cb4f2..71c4c25 100644 --- a/drv/hisi_qm_udrv.c +++ b/drv/hisi_qm_udrv.c @@ -510,7 +510,6 @@ static int hisi_qm_recv_single(struct hisi_qm_queue_info *q_info, void *resp) /* only support one thread poll one queue, so no need protect */ q_info->cq_head_index = i; - q_info->sq_head_index = i; __atomic_sub_fetch(&q_info->used_num, 1, __ATOMIC_RELAXED); pthread_spin_unlock(&q_info->rv_lock); diff --git a/include/hisi_qm_udrv.h b/include/hisi_qm_udrv.h index 92333ed..22dedf3 100644 --- a/include/hisi_qm_udrv.h +++ b/include/hisi_qm_udrv.h @@ -67,7 +67,6 @@ struct hisi_qm_queue_info { void *ds_rx_base; __u8 qp_mode; __u16 sq_tail_index; - __u16 sq_head_index; __u16 cq_head_index; __u16 sqn; __u16 qc_type; -- 2.33.0