RE: [PATCH] examples/vhost: fix floating point exception when there is no VMDQ

2022-05-17 Thread Wang, YuanX
Hi Chenbo, > -Original Message- > From: Xia, Chenbo > Sent: Monday, May 16, 2022 8:57 PM > To: Wang, YuanX ; maxime.coque...@redhat.com > Cc: dev@dpdk.org; Hu, Jiayu ; He, Xingguang > > Subject: RE: [PATCH] examples/vhost: fix floating point exception when >

RE: [PATCH] examples/vhost: fix floating point exception when there is no VMDQ

2022-05-16 Thread Xia, Chenbo
Hi Yuan, > -Original Message- > From: Wang, YuanX > Sent: Tuesday, April 12, 2022 12:35 AM > To: maxime.coque...@redhat.com; Xia, Chenbo > Cc: dev@dpdk.org; Hu, Jiayu ; He, Xingguang > ; Wang, YuanX > Subject: [PATCH] examples/vhost: fix floating point exception wh

[PATCH] examples/vhost: fix floating point exception when there is no VMDQ

2022-04-11 Thread Yuan Wang
If the VMDQ limits is 0, a divide-by-zero error occurs. This patch replaces throwing a floating point exception with a normal error message. Signed-off-by: Yuan Wang --- examples/vhost/main.c | 4 1 file changed, 4 insertions(+) diff --git a/examples/vhost/main.c b/examples/vhost/main.c in