On Tue, 31 Oct 2023 10:57:45 +0800 "lihuisong (C)" <lihuis...@huawei.com> wrote:
> >> User do decide their implement based on their cases in project. > >> May it be a point for this that user don't want to do memcpy for > >> multi segment packets and just use the first mbuf memory. > >> > >> Now that there is the "min_rx_bufsize" to report in ethdev layer. > >> Anyway, DPDK is indeed the lack of the way to report the maximum Rx > >> buffer size per hw descriptor. > > My concern is that you are creating a special case for one driver. > understand your concern. > > And other drivers probably have similar upper bound. > Yes, they also have similar upper bound. > From the codes, the max buffer size of Most PMDs are 16K and bnxt is > 9600Byte. > Do we need to report this size? It's a common feature for all PMDs. It would make sense then to have max_rx_bufsize set to 16K by default in ethdev, and PMD could then raise/lower based on hardware.