On Thu, 12 May 2022 05:57:19 +0000 Ke Zhang <ke1x.zh...@intel.com> wrote:
> > -static const struct iavf_rxq_ops def_rxq_ops = { > - .release_mbufs = release_rxq_mbufs, > +static > +struct iavf_rxq_ops iavf_rxq_release_mbufs_ops[] = { > + [IAVF_REL_MBUFS_DEFAULT].release_mbufs = release_rxq_mbufs, > + [IAVF_REL_MBUFS_SSE_VEC].release_mbufs = > iavf_rx_queue_release_mbufs_sse, > }; > > -static const struct iavf_txq_ops def_txq_ops = { > - .release_mbufs = release_txq_mbufs, > +static > +struct iavf_txq_ops iavf_txq_release_mbufs_ops[] = { > + [IAVF_REL_MBUFS_DEFAULT].release_mbufs = release_txq_mbufs, > + [IAVF_REL_MBUFS_SSE_VEC].release_mbufs = > iavf_tx_queue_release_mbufs_sse, > + [IAVF_REL_MBUFS_AVX512_VEC].release_mbufs = > iavf_tx_queue_release_mbufs_avx512, > }; Did you have to take const off of these?