On Mon, Mar 6, 2023 at 5:05 PM David Marchand <david.march...@redhat.com> wrote:
> > diff --git a/lib/netdev-dpdk.c b/lib/netdev-dpdk.c
> > index fb0dd43f7..e901f857e 100644
> > --- a/lib/netdev-dpdk.c
> > +++ b/lib/netdev-dpdk.c
> > @@ -1008,4 +1008,13 @@ dpdk_watchdog(void *dummy OVS_UNUSED)
> >  }
> >
> > +static int
> > +dpdk_limit_desc_size(int desc_size, struct rte_eth_desc_lim *lim)
> > +{
> > +    desc_size = ROUND_UP(desc_size, lim->nb_align);
>
> Based on a quick grep, it seems possible a driver exposes nb_align == 0.
> Like for example:
> https://git.dpdk.org/dpdk/tree/drivers/net/bnxt/bnxt_ethdev.c#n1020

Ok... you can scratch that, ethdev provides a 1 default value.

https://git.dpdk.org/dpdk/tree/lib/ethdev/rte_ethdev.h#n3275
https://git.dpdk.org/dpdk/tree/lib/ethdev/rte_ethdev.c#n3577


-- 
David Marchand

_______________________________________________
dev mailing list
d...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to