[dpdk-dev] [PATCH] net/avf: fix AVF traffic blocked issue
Wu, Jingjing
jingjing.wu at intel.com
Fri May 18 06:29:59 CEST 2018
> -----Original Message-----
> From: Li, Xiaoyun
> Sent: Thursday, May 17, 2018 7:24 PM
> To: Wu, Jingjing <jingjing.wu at intel.com>; Lu, Wenzhuo <wenzhuo.lu at intel.com>
> Cc: dev at dpdk.org; Li, Xiaoyun <xiaoyun.li at intel.com>; stable at dpdk.org
> Subject: [PATCH] net/avf: fix AVF traffic blocked issue
>
> When resetting ports, traffic will be blocked. There is a mistake when
> getting hw info at avf_dev_stop. This causes the device stop without
> stopping queues. This patch fixes this issue.
>
> Fixes: 69dd4c3d0898 ("net/avf: enable queue and device")
> Cc: stable at dpdk.org
>
> Signed-off-by: Xiaoyun Li <xiaoyun.li at intel.com>
> ---
> drivers/net/avf/avf_ethdev.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/net/avf/avf_ethdev.c b/drivers/net/avf/avf_ethdev.c
> index 0ef1f17..ad83a57 100644
> --- a/drivers/net/avf/avf_ethdev.c
> +++ b/drivers/net/avf/avf_ethdev.c
> @@ -475,7 +475,7 @@ avf_dev_stop(struct rte_eth_dev *dev)
> {
> struct avf_adapter *adapter =
> AVF_DEV_PRIVATE_TO_ADAPTER(dev->data->dev_private);
> - struct avf_hw *hw = AVF_DEV_PRIVATE_TO_HW(dev);
> + struct avf_hw *hw = AVF_DEV_PRIVATE_TO_HW(dev->data->dev_private);
> struct rte_pci_device *pci_dev = RTE_ETH_DEV_TO_PCI(dev);
> struct rte_intr_handle *intr_handle = dev->intr_handle;
> int ret, i;
> --
> 2.7.4
Acked-by: Jingjing Wu <jingjing.wu at intel.com>
Thanks, Xiaoyun!
More information about the dev
mailing list