[ovs-dev] [PATCH] netdev-dpdk: use defined values for queues length

Pravin Shelar pshelar at nicira.com
Fri May 23 23:35:29 UTC 2014


On Fri, May 23, 2014 at 4:12 PM, Daniele Di Proietto
<ddiproietto at vmware.com> wrote:
> Signed-off-by: Daniele Di Proietto <ddiproietto at vmware.com>

Looks good.
Acked-by: Pravin B Shelar <pshelar at nicira.com>
> ---
>  lib/netdev-dpdk.c | 7 ++++---
>  1 file changed, 4 insertions(+), 3 deletions(-)
>
> diff --git a/lib/netdev-dpdk.c b/lib/netdev-dpdk.c
> index 0798a18..b0047bf 100644
> --- a/lib/netdev-dpdk.c
> +++ b/lib/netdev-dpdk.c
> @@ -369,7 +369,8 @@ dpdk_eth_dev_init(struct netdev_dpdk *dev) OVS_REQUIRES(dpdk_mutex)
>      }
>
>      for (i = 0; i < NR_QUEUE; i++) {
> -        diag = rte_eth_tx_queue_setup(dev->port_id, i, 64, 0, &tx_conf);
> +        diag = rte_eth_tx_queue_setup(dev->port_id, i, MAX_TX_QUEUE_LEN, 0,
> +                                      &tx_conf);
>          if (diag) {
>              VLOG_ERR("eth dev tx queue setup error %d",diag);
>              return diag;
> @@ -377,8 +378,8 @@ dpdk_eth_dev_init(struct netdev_dpdk *dev) OVS_REQUIRES(dpdk_mutex)
>      }
>
>      for (i = 0; i < NR_QUEUE; i++) {
> -        diag = rte_eth_rx_queue_setup(dev->port_id, i, 64, 0, &rx_conf,
> -                                      dev->dpdk_mp->mp);
> +        diag = rte_eth_rx_queue_setup(dev->port_id, i, MAX_RX_QUEUE_LEN, 0,
> +                                      &rx_conf, dev->dpdk_mp->mp);
>          if (diag) {
>              VLOG_ERR("eth dev rx queue setup error %d",diag);
>              return diag;
> --
> 2.0.0.rc0
>
> _______________________________________________
> dev mailing list
> dev at openvswitch.org
> http://openvswitch.org/mailman/listinfo/dev



More information about the dev mailing list