DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] dpdk 0005-net-bonding-reconfigure-all-slave-queues-every-time.patch issue
@ 2017-03-09  2:22 Wen Chiu
  2017-03-10 16:16 ` Jan Blunck
  0 siblings, 1 reply; 2+ messages in thread
From: Wen Chiu @ 2017-03-09  2:22 UTC (permalink / raw)
  To: dev

Hi,

0005-net-bonding-reconfigure-all-slave-queues-every-time.patch is now 
officially in dpdk 17.02. But, it caused segmentation fault every time 
when I configured bonding. In slave_configure(), "Setup Tx Queues" logic 
change from for q_id=old_nb_tx_queues to qid=0 which always enters the 
for loop and calls rte_eth_tx_queue_setup. After that, 
rte_eth_dev_start() is called to start the device. In 
rte_eth_dev_start(), vmxnet3_dev_start() is called which calls 
vmxnet3_dev_rxtx_init(). In vmxnet3_dev_rxtx_init(), after for loop for 
rx_queues; dev->data->tx_queues[0] is override with value like 
0x121b20600 which is an invalid memory address that caused the fault.

Without this 0005 patch, looks like rte_eth_tx_queue_setup() is never 
called as q_id=old_nb_tx_queues never < nb_tx_queues. So, I suspect the 
calls to queue_setup() somehow makes the queues to be setup incorrectly 
or incompletely which causes the fault. Has anyone else encounters the 
same issue?

Regards,

Wen Chiu

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dpdk-dev] dpdk 0005-net-bonding-reconfigure-all-slave-queues-every-time.patch issue
  2017-03-09  2:22 [dpdk-dev] dpdk 0005-net-bonding-reconfigure-all-slave-queues-every-time.patch issue Wen Chiu
@ 2017-03-10 16:16 ` Jan Blunck
  0 siblings, 0 replies; 2+ messages in thread
From: Jan Blunck @ 2017-03-10 16:16 UTC (permalink / raw)
  To: Wen Chiu; +Cc: dev

On Thu, Mar 9, 2017 at 3:22 AM, Wen Chiu <wchiu@brocade.com> wrote:
> Hi,
>
> 0005-net-bonding-reconfigure-all-slave-queues-every-time.patch is now
> officially in dpdk 17.02.

This is commit 1e2eff64f554 ("net/bonding: reconfigure all slave
queues every time").

> But, it caused segmentation fault every time when
> I configured bonding. In slave_configure(), "Setup Tx Queues" logic change
> from for q_id=old_nb_tx_queues to qid=0 which always enters the for loop and
> calls rte_eth_tx_queue_setup. After that, rte_eth_dev_start() is called to
> start the device. In rte_eth_dev_start(), vmxnet3_dev_start() is called
> which calls vmxnet3_dev_rxtx_init(). In vmxnet3_dev_rxtx_init(), after for
> loop for rx_queues; dev->data->tx_queues[0] is override with value like
> 0x121b20600 which is an invalid memory address that caused the fault.
>
> Without this 0005 patch, looks like rte_eth_tx_queue_setup() is never called
> as q_id=old_nb_tx_queues never < nb_tx_queues. So, I suspect the calls to
> queue_setup() somehow makes the queues to be setup incorrectly or
> incompletely which causes the fault.

So did the slave_configure() actually return an error?

> Has anyone else encounters the same
> issue?

No, not with the device I tested with.

> Regards,
>
> Wen Chiu
>
>
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-03-10 16:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-09  2:22 [dpdk-dev] dpdk 0005-net-bonding-reconfigure-all-slave-queues-every-time.patch issue Wen Chiu
2017-03-10 16:16 ` Jan Blunck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).