> > > +/* Enqueue one encode operations for ACC200 device in TB mode. */ > > > +static inline int enqueue_enc_one_op_tb(struct acc_queue *q, struct > > > +rte_bbdev_enc_op *op, > > > + uint16_t total_enqueued_cbs, uint8_t cbs_in_tb) { > > > + union acc_dma_desc *desc = NULL; > > > + int ret; > > > + uint8_t r, c; > > > + uint32_t in_offset, out_offset, out_length, mbuf_total_left, > > > + seg_total_left; > > > + struct rte_mbuf *input, *output_head, *output; > > > + uint16_t current_enqueued_cbs = 0; > > > + > > > + uint16_t desc_idx = ((q->sw_ring_head + total_enqueued_cbs) > > > + & q->sw_ring_wrap_mask); > > > > Maybe I did not make the comment on this patch specifically, but having a > > helper to get the descriptor index would make sense givent it is duplicated > > at > > several places. > > > > > > With this fixed, you can add: > > It is a good idea, notably for readability. But unsure we need it now for > 22.11 > with still a lot of acc100 and acc200 commits in flight. > Are you okay if we to defer this small refactor to 23.03? > There are few similar routines which may benefit from similar wrapper > functions. > Let me know what you think. > We have time of atleast 2 weeks from now to close RC2 and all these acc patches. Do you think you need time more than that? I believe this is a simple code movement.
- [PATCH v9 01/14] baseband/acc100: remove unused registers Nicolas Chautru
- [PATCH v9 03/14] baseband/acc: rename directory from acc1... Nicolas Chautru
- [PATCH v9 04/14] baseband/acc: introduce PMD for ACC200 Nicolas Chautru
- [PATCH v9 05/14] baseband/acc: add HW register definition... Nicolas Chautru
- [PATCH v9 06/14] baseband/acc: add info get function for ... Nicolas Chautru
- [PATCH v9 07/14] baseband/acc: add queue configuration fo... Nicolas Chautru
- [PATCH v9 08/14] baseband/acc: add LDPC processing functi... Nicolas Chautru
- [PATCH v9 09/14] baseband/acc: add LTE processing functio... Nicolas Chautru
- Re: [PATCH v9 09/14] baseband/acc: add LTE processin... Maxime Coquelin
- RE: [PATCH v9 09/14] baseband/acc: add LTE proce... Chautru, Nicolas
- RE: [PATCH v9 09/14] baseband/acc: add LTE p... Akhil Goyal
- RE: [PATCH v9 09/14] baseband/acc: add L... Chautru, Nicolas
- [PATCH v9 10/14] baseband/acc: add support for FFT operat... Nicolas Chautru
- Re: [PATCH v9 10/14] baseband/acc: add support for F... Maxime Coquelin
- [PATCH v9 11/14] baseband/acc: support interrupt Nicolas Chautru
- Re: [PATCH v9 11/14] baseband/acc: support interrupt Maxime Coquelin
- [PATCH v9 12/14] baseband/acc: add device status and vf2p... Nicolas Chautru
- [PATCH v9 13/14] baseband/acc: add PF configure companion... Nicolas Chautru
- Re: [PATCH v9 13/14] baseband/acc: add PF configure ... Maxime Coquelin
- RE: [EXT] Re: [PATCH v9 13/14] baseband/acc: add... Akhil Goyal
- RE: [EXT] Re: [PATCH v9 13/14] baseband/acc:... Chautru, Nicolas