examples/multi_process: fix resilience by enabling Rx drop
authorBruce Richardson <bruce.richardson@intel.com>
Wed, 3 Dec 2014 16:56:59 +0000 (16:56 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 5 Dec 2014 15:55:00 +0000 (16:55 +0100)
commit94aa16b45c722156df8c458c4e841b991b072688
tree419164a6892db3374da4527066beb37233321ccd
parent58507670cf1a4832eba725eba872d57b81d85491
examples/multi_process: fix resilience by enabling Rx drop

The symmetric_mp example app is set up to allow two processes to
share a NIC port, with each pulling packets from one queue. In order
to have the app continue working when one of the process dies, the
drop_en bit should be set in the NIC configuration. Without this bit
set, the NIC will stall once any queue fills. With the bit set, once
a queue fills, all subsequent packets for that queue are discarded
allowing other queues to continue operating as normal.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
examples/multi_process/symmetric_mp/main.c