* Re: [dpdk-dev] [PATCH 2/2] net/ixgbe: fix l3fwd start failed on PF
2017-11-02 17:04 ` [dpdk-dev] [PATCH 2/2] net/ixgbe: fix l3fwd start failed on PF Yanglong Wu
@ 2017-11-02 14:05 ` Ananyev, Konstantin
2017-11-07 8:39 ` Wu, Jingjing
0 siblings, 1 reply; 4+ messages in thread
From: Ananyev, Konstantin @ 2017-11-02 14:05 UTC (permalink / raw)
To: Wu, Yanglong, dev; +Cc: Wu, Yanglong
Hi,
> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Yanglong Wu
> Sent: Thursday, November 2, 2017 5:05 PM
> To: dev@dpdk.org
> Cc: Wu, Yanglong <yanglong.wu@intel.com>
> Subject: [dpdk-dev] [PATCH 2/2] net/ixgbe: fix l3fwd start failed on PF
>
> which occurred when the SRIOV is active and tx_q > rx_q.
> The number of nb_q_per_pool should equeal to max number
> of queues supported by HW not nb_rx_q.
>
> Fixes: 27b609cbd1c6 (ethdev: move the multi-queue mode
> check to specific drivers)
>
> Signed-off-by: Yanglong Wu <yanglong.wu@intel.com>
> ---
> drivers/net/ixgbe/ixgbe_ethdev.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c
> index ae9c44421..0f0641da1 100644
> --- a/drivers/net/ixgbe/ixgbe_ethdev.c
> +++ b/drivers/net/ixgbe/ixgbe_ethdev.c
> @@ -2180,7 +2180,7 @@ ixgbe_check_vf_rss_rxq_num(struct rte_eth_dev *dev, uint16_t nb_rx_q)
> return -EINVAL;
> }
>
> - RTE_ETH_DEV_SRIOV(dev).nb_q_per_pool = nb_rx_q;
> + RTE_ETH_DEV_SRIOV(dev).nb_q_per_pool = 128/RTE_ETH_DEV_SRIOV(dev).active;
> RTE_ETH_DEV_SRIOV(dev).def_pool_q_idx = pci_dev->max_vfs * nb_rx_q;
>
> return 0;
> --
> 2.11.0
Not sure I understand what is the purpose of that patch...
Do you want to prevent RTE_ETH_DEV_SRIOV(dev).nb_q_per_pool = 1?
Konstantin
^ permalink raw reply [flat|nested] 4+ messages in thread
* [dpdk-dev] [PATCH 1/2] net/ixgbe: fix l3fwd start failed on VF
@ 2017-11-02 17:04 Yanglong Wu
2017-11-02 17:04 ` [dpdk-dev] [PATCH 2/2] net/ixgbe: fix l3fwd start failed on PF Yanglong Wu
0 siblings, 1 reply; 4+ messages in thread
From: Yanglong Wu @ 2017-11-02 17:04 UTC (permalink / raw)
To: dev; +Cc: Yanglong Wu
VF can't run in multi queue module,if nb_q_per_pool was set as 1.
Since the value of nb_q_per_pool pass through to max_rx_q and max_tx_q in
VF.
Fixes: 27b609cbd1c6 ("ethdev: move the multi-queue mode check to specific drivers")
Signed-off-by: Yanglong Wu <yanglong.wu@intel.com>
---
drivers/net/ixgbe/ixgbe_ethdev.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c
index 14b9c5303..ae9c44421 100644
--- a/drivers/net/ixgbe/ixgbe_ethdev.c
+++ b/drivers/net/ixgbe/ixgbe_ethdev.c
@@ -2222,8 +2222,6 @@ ixgbe_check_mq_mode(struct rte_eth_dev *dev)
case ETH_MQ_RX_NONE:
/* if nothing mq mode configure, use default scheme */
dev->data->dev_conf.rxmode.mq_mode = ETH_MQ_RX_VMDQ_ONLY;
- if (RTE_ETH_DEV_SRIOV(dev).nb_q_per_pool > 1)
- RTE_ETH_DEV_SRIOV(dev).nb_q_per_pool = 1;
break;
default: /* ETH_MQ_RX_DCB, ETH_MQ_RX_DCB_RSS or ETH_MQ_TX_DCB*/
/* SRIOV only works in VMDq enable mode */
--
2.11.0
^ permalink raw reply [flat|nested] 4+ messages in thread
* [dpdk-dev] [PATCH 2/2] net/ixgbe: fix l3fwd start failed on PF
2017-11-02 17:04 [dpdk-dev] [PATCH 1/2] net/ixgbe: fix l3fwd start failed on VF Yanglong Wu
@ 2017-11-02 17:04 ` Yanglong Wu
2017-11-02 14:05 ` Ananyev, Konstantin
0 siblings, 1 reply; 4+ messages in thread
From: Yanglong Wu @ 2017-11-02 17:04 UTC (permalink / raw)
To: dev; +Cc: Yanglong Wu
which occurred when the SRIOV is active and tx_q > rx_q.
The number of nb_q_per_pool should equeal to max number
of queues supported by HW not nb_rx_q.
Fixes: 27b609cbd1c6 (ethdev: move the multi-queue mode
check to specific drivers)
Signed-off-by: Yanglong Wu <yanglong.wu@intel.com>
---
drivers/net/ixgbe/ixgbe_ethdev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c
index ae9c44421..0f0641da1 100644
--- a/drivers/net/ixgbe/ixgbe_ethdev.c
+++ b/drivers/net/ixgbe/ixgbe_ethdev.c
@@ -2180,7 +2180,7 @@ ixgbe_check_vf_rss_rxq_num(struct rte_eth_dev *dev, uint16_t nb_rx_q)
return -EINVAL;
}
- RTE_ETH_DEV_SRIOV(dev).nb_q_per_pool = nb_rx_q;
+ RTE_ETH_DEV_SRIOV(dev).nb_q_per_pool = 128/RTE_ETH_DEV_SRIOV(dev).active;
RTE_ETH_DEV_SRIOV(dev).def_pool_q_idx = pci_dev->max_vfs * nb_rx_q;
return 0;
--
2.11.0
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [dpdk-dev] [PATCH 2/2] net/ixgbe: fix l3fwd start failed on PF
2017-11-02 14:05 ` Ananyev, Konstantin
@ 2017-11-07 8:39 ` Wu, Jingjing
0 siblings, 0 replies; 4+ messages in thread
From: Wu, Jingjing @ 2017-11-07 8:39 UTC (permalink / raw)
To: Ananyev, Konstantin, Wu, Yanglong, dev; +Cc: Wu, Yanglong
> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Ananyev, Konstantin
> Sent: Thursday, November 2, 2017 10:06 PM
> To: Wu, Yanglong <yanglong.wu@intel.com>; dev@dpdk.org
> Cc: Wu, Yanglong <yanglong.wu@intel.com>
> Subject: Re: [dpdk-dev] [PATCH 2/2] net/ixgbe: fix l3fwd start failed on PF
>
> Hi,
>
> > -----Original Message-----
> > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Yanglong Wu
> > Sent: Thursday, November 2, 2017 5:05 PM
> > To: dev@dpdk.org
> > Cc: Wu, Yanglong <yanglong.wu@intel.com>
> > Subject: [dpdk-dev] [PATCH 2/2] net/ixgbe: fix l3fwd start failed on PF
> >
> > which occurred when the SRIOV is active and tx_q > rx_q.
> > The number of nb_q_per_pool should equeal to max number
> > of queues supported by HW not nb_rx_q.
> >
> > Fixes: 27b609cbd1c6 (ethdev: move the multi-queue mode
> > check to specific drivers)
> >
> > Signed-off-by: Yanglong Wu <yanglong.wu@intel.com>
> > ---
> > drivers/net/ixgbe/ixgbe_ethdev.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c
> > index ae9c44421..0f0641da1 100644
> > --- a/drivers/net/ixgbe/ixgbe_ethdev.c
> > +++ b/drivers/net/ixgbe/ixgbe_ethdev.c
> > @@ -2180,7 +2180,7 @@ ixgbe_check_vf_rss_rxq_num(struct rte_eth_dev *dev,
> uint16_t nb_rx_q)
> > return -EINVAL;
> > }
> >
> > - RTE_ETH_DEV_SRIOV(dev).nb_q_per_pool = nb_rx_q;
> > + RTE_ETH_DEV_SRIOV(dev).nb_q_per_pool = 128/RTE_ETH_DEV_SRIOV(dev).active;
> > RTE_ETH_DEV_SRIOV(dev).def_pool_q_idx = pci_dev->max_vfs * nb_rx_q;
> >
> > return 0;
> > --
> > 2.11.0
>
> Not sure I understand what is the purpose of that patch...
> Do you want to prevent RTE_ETH_DEV_SRIOV(dev).nb_q_per_pool = 1?
> Konstantin
>
I think his purpose is to set the RTE_ETH_DEV_SRIOV(dev).nb_q_per_pool to be the max number of queues in one pool
according to the how to split the queue index.
Now, for rss and virtualization mode, ixgbe has combination like 2 queues * 64 pools and 4 queues * 32 pools.
BTW, I think the title of this patch need to be reword. It looks confusing if it is a bug in ixgbe.
>
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-11-07 8:40 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-02 17:04 [dpdk-dev] [PATCH 1/2] net/ixgbe: fix l3fwd start failed on VF Yanglong Wu
2017-11-02 17:04 ` [dpdk-dev] [PATCH 2/2] net/ixgbe: fix l3fwd start failed on PF Yanglong Wu
2017-11-02 14:05 ` Ananyev, Konstantin
2017-11-07 8:39 ` Wu, Jingjing
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).