examples/kni: fix crash during MTU set
authorFerruh Yigit <ferruh.yigit@intel.com>
Thu, 21 May 2020 15:10:42 +0000 (16:10 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 24 May 2020 16:04:20 +0000 (18:04 +0200)
commit36f9eba4710b521b95d72f0e65e85f38c1cff9b5
treecbb78074e5bd5bc194ad5dfb34180e173e04a59b
parent61d6c7a98b48da02d905a45fa6314befcc567ff4
examples/kni: fix crash during MTU set

During MTU set (kni_change_mtu) sample application setup queues, which
can free and re-allocate queues.
Meanwhile sample application keeps continues in Rx/Tx burst calls in
different threads, which may cause crash during queue setup.

Pausing application Rx/Tx calls before MTU set and starts it back
afterwards.

Bugzilla ID: 482
Fixes: a26b116749a3 ("examples/kni: fix MTU change to setup Tx queue")
Cc: stable@dpdk.org
Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
Acked-by: Rasesh Mody <rmody@marvell.com>
Tested-by: Xi Zhang <xix.zhang@intel.com>
examples/kni/main.c