Re: [dpdk-dev] [PATCH v2] net/i40e: fix PF notify issue when VF not up

2017-07-28 Thread Li, Xiaoyun
1. At first, I add vs state modification as follows, but it will show a warning when I check the patch. The warning says that usually the else after return or break would not be executed. if (i >= VFRESET_MAX_WAIT_CNT) { PMD_DRV_LOG(ERR, "VF reset timeout")

Re: [dpdk-dev] [PATCH v2] net/i40e: fix PF notify issue when VF not up

2017-07-27 Thread Wu, Jingjing
> -Original Message- > From: Li, Xiaoyun > Sent: Friday, July 28, 2017 7:40 PM > To: Wu, Jingjing > Cc: dev@dpdk.org; Li, Xiaoyun ; sta...@dpdk.org > Subject: [PATCH v2] net/i40e: fix PF notify issue when VF not up > > This patch modifies PF notify error to warning when not starting > u

[dpdk-dev] [PATCH v2] net/i40e: fix PF notify issue when VF not up

2017-07-27 Thread Xiaoyun Li
This patch modifies PF notify error to warning when not starting up VF and modifies VF state to active when VF reset is completed. Fixes: 4861cde46116 ("i40e: new poll mode driver") Cc: sta...@dpdk.org Signed-off-by: Xiaoyun Li --- v2 changes: * add VF state modification when VF reset is done. -