[dpdk-dev] [PATCH v2 9/9] examples/l3fwd-power: fix not stop and close device

Yuanhan Liu yuanhan.liu at linux.intel.com
Fri Dec 30 07:44:38 CET 2016


On Thu, Dec 29, 2016 at 07:30:43AM +0000, Jianfeng Tan wrote:
> As it gets killed, in SIGINT signal handler, device is not stopped
> and closed. In virtio's case, vector assignment in the KVM is not
> deassigned.

What wrong could happen then?

> This patch will invoke dev_stop() and dev_close() in signal handler.

I will just say, it may workaround the bug you encountered, particulary,
for this example only. If some people want to use the virtio interrupt
somewhere at another app, he also has to do similar thing.

Is there a more clean way to handle such case in the driver?

	--yliu


More information about the dev mailing list