> -----Original Message----- > From: Ferruh Yigit <ferruh.yi...@intel.com> > Sent: Wednesday, October 14, 2020 0:59 > To: Slava Ovsiienko <viachesl...@nvidia.com>; Andrew Rybchenko > <andrew.rybche...@oktetlabs.ru>; dev@dpdk.org > Cc: Thomas Monjalon <thom...@mellanox.com>; > step...@networkplumber.org; Shahaf Shuler <shah...@nvidia.com>; > olivier.m...@6wind.com; jerinjac...@gmail.com; > maxime.coque...@redhat.com; david.march...@redhat.com; Asaf Penso > <as...@nvidia.com>; Konstantin Ananyev > <konstantin.anan...@intel.com> > Subject: Re: [dpdk-dev] [RFC] ethdev: introduce Rx buffer split > > On 10/12/2020 10:56 AM, Slava Ovsiienko wrote: > > Hi, Andrew > > > > Thank you for the comments. > > > > We have two approaches how to specify multiple segments to split Rx > packets: > > 1. update queue configuration structure 2. introduce new > > rx_queue_setup_ex() routine with extra parameters. > > > > For [1] my only actual dislike is that we would have multiple places > > to specify the pool - in rx_queue_setup() and in the config structure. > > So, we should implement some checking (if we have offload flag set we > > should check whether mp parameter is NULL and segment descriptions > > array pointer/size is provided, if no offload flag set - we must check the > description array is empty). > > > >> @Thomas, @Ferruh: I'd like to hear what other ethdev maintainers > >> think about it. > > > > Yes, it would be very nice to hear extra opinions. Do we think the > > providing of extra API function is worse than extending existing > > structure, introducing some conditional ambiguity and complicating the > > parameter compliance check? > > > > I think decision was given with the deprecation notice which already says > ``rte_eth_rxconf`` will be updated for this. > > With new API, we need to create a new dev_ops too, not sure about creating > a new dev_ops for a single PMD.
I would rather consider the feature as generic one, not as for "single PMD". Currently DPDK does not provide any flexibility about Rx buffer and applications just have no way to control Rx buffer(s) attributes. I suppose the split is not very specific to mlx5, it is very likely the hardware of many other vendors should be capable to perform the same things. > > For the PMD that supports this feature will need two dev_ops that is fairly > close to each other, as Andrew mentioned this is a duplication. > > And from user perspective two setup functions with overlaps can be > confusing. > > +1 to having single setup function but update the config, and I can see > +v5 sent > this way, I will check it. OK, got it, thank you very much for the opinion, let's move in this way. v5 with reverted (back to deprecation notice) approach is sent, I will address the comments. With best regards, Slaa