From: "Zhao1, Wei" <wei.zhao1@intel.com>
To: "Stillwell Jr, Paul M" <paul.m.stillwell.jr@intel.com>,
"dev@dpdk.org" <dev@dpdk.org>
Cc: "stable@dpdk.org" <stable@dpdk.org>,
"Zhang, Qi Z" <qi.z.zhang@intel.com>
Subject: Re: [dpdk-dev] [PATCH] net/iavf: fix vertor interrupt number configuration error
Date: Thu, 21 Mar 2019 03:30:11 +0000 [thread overview]
Message-ID: <A2573D2ACFCADC41BB3BE09C6DE313CA07EC9434@PGSMSX103.gar.corp.intel.com> (raw)
Message-ID: <20190321033011.BWuNy1Wscl5XeQ6Nhwm6zODcp2B3w9pJTNKtxvYX6EM@z> (raw)
In-Reply-To: <F8A4ECA1C1D86B4081DD6BF503D1F436C7463092@fmsmsx120.amr.corp.intel.com>
> -----Original Message-----
> From: Stillwell Jr, Paul M
> Sent: Tuesday, March 19, 2019 12:17 PM
> To: Zhao1, Wei <wei.zhao1@intel.com>; dev@dpdk.org
> Cc: stable@dpdk.org; Zhang, Qi Z <qi.z.zhang@intel.com>; Zhao1, Wei
> <wei.zhao1@intel.com>
> Subject: RE: [dpdk-dev] [PATCH] net/iavf: fix vertor interrupt number
> configuration error
>
>
> > -----Original Message-----
> > From: dev <dev-bounces@dpdk.org> On Behalf Of Wei Zhao
> > Sent: Monday, March 18, 2019 8:05 PM
> > To: dev@dpdk.org
> > Cc: stable@dpdk.org; Zhang, Qi Z <qi.z.zhang@intel.com>; Zhao1, Wei
> > <wei.zhao1@intel.com>
> > Subject: [dpdk-dev] [PATCH] net/iavf: fix vertor interrupt number
> > configuration error
> >
>
> Should the patch name be net/avf?
No, DPDK has change name to iavf in recent days.
>
> > There is a issue when iavf do vertor interrupt configuration, it will
> > miss one interrupt vector which set admin queue interrupt when
> > communicate with host pf.
> >
>
> I would reword this to be clearer, something like:
>
> The AVF driver needs to send an extra vector number to the Linux PF to
> Work around an issue with interrupt vector mapping. The admin queue
> needs to be added to the number of queues sent to the PF.
Good, add in v2 later
>
> > Fixes: 69dd4c3d0898 ("net/avf: enable queue and device")
> > Cc: stable@dpdk.org
> >
> > Signed-off-by: Wei Zhao <wei.zhao1@intel.com>
> > Signed-off-by: Zhao Wei <wei.zhao1@intel.com>
> > ---
> > drivers/net/iavf/iavf_ethdev.c | 4 ++--
> > drivers/net/iavf/iavf_vchnl.c | 8
> > +++++++-
> > 2 files changed, 9 insertions(+), 3 deletions(-)
> >
> > diff --git a/drivers/net/iavf/iavf_ethdev.c
> > b/drivers/net/iavf/iavf_ethdev.c index 846e604..49c9499 100644
> > --- a/drivers/net/iavf/iavf_ethdev.c
> > +++ b/drivers/net/iavf/iavf_ethdev.c
> > @@ -308,7 +308,7 @@ static int iavf_config_rx_queues_irqs(struct
> > rte_eth_dev *dev,
> > if (!dev->data->dev_conf.intr_conf.rxq ||
> > !rte_intr_dp_is_en(intr_handle)) {
> > /* Rx interrupt disabled, Map interrupt only for writeback */
> > - vf->nb_msix = 1;
> > + vf->nb_msix = 2;
> > if (vf->vf_res->vf_cap_flags &
> > VIRTCHNL_VF_OFFLOAD_WB_ON_ITR) {
> > /* If WB_ON_ITR supports, enable it */ @@ -338,7
> > +338,7 @@ static int iavf_config_rx_queues_irqs(struct rte_eth_dev
> > +*dev,
> > vf->rxq_map[vf->msix_base] |= 1 << i;
> > } else {
> > if (!rte_intr_allow_others(intr_handle)) {
> > - vf->nb_msix = 1;
> > + vf->nb_msix = 2;
> > vf->msix_base = IAVF_MISC_VEC_ID;
> > for (i = 0; i < dev->data->nb_rx_queues; i++) {
> > vf->rxq_map[vf->msix_base] |= 1 << i; diff --
> git
> > a/drivers/net/iavf/iavf_vchnl.c b/drivers/net/iavf/iavf_vchnl.c index
> > 6381fb6..d9a376e 100644
> > --- a/drivers/net/iavf/iavf_vchnl.c
> > +++ b/drivers/net/iavf/iavf_vchnl.c
> > @@ -609,7 +609,7 @@ iavf_config_irq_map(struct iavf_adapter *adapter)
> > return -ENOMEM;
> >
> > map_info->num_vectors = vf->nb_msix;
> > - for (i = 0; i < vf->nb_msix; i++) {
> > + for (i = 0; i < vf->nb_msix - 1; i++) {
> > vecmap = &map_info->vecmap[i];
> > vecmap->vsi_id = vf->vsi_res->vsi_id;
> > vecmap->rxitr_idx = IAVF_ITR_INDEX_DEFAULT; @@ -618,6
> > +618,12 @@ iavf_config_irq_map(struct iavf_adapter *adapter)
> > vecmap->rxq_map = vf->rxq_map[vf->msix_base + i];
> > }
> >
> > + vecmap = &map_info->vecmap[i];
> > + vecmap->vsi_id = vf->vsi_res->vsi_id;
> > + vecmap->vector_id = 0;
> > + vecmap->txq_map = 0;
> > + vecmap->rxq_map = 0;
> > +
> > args.ops = VIRTCHNL_OP_CONFIG_IRQ_MAP;
> > args.in_args = (u8 *)map_info;
> > args.in_args_size = len;
> > --
> > 2.7.5
next prev parent reply other threads:[~2019-03-21 3:30 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-19 3:04 Wei Zhao
2019-03-19 3:04 ` Wei Zhao
2019-03-19 4:00 ` Zhang, Qi Z
2019-03-19 4:00 ` Zhang, Qi Z
2019-03-19 5:57 ` Zhao1, Wei
2019-03-19 5:57 ` Zhao1, Wei
2019-03-19 4:16 ` Stillwell Jr, Paul M
2019-03-19 4:16 ` Stillwell Jr, Paul M
2019-03-21 3:30 ` Zhao1, Wei [this message]
2019-03-21 3:30 ` Zhao1, Wei
2019-03-22 6:27 ` [dpdk-dev] [PATCH v2] " Wei Zhao
2019-03-22 6:27 ` Wei Zhao
2019-03-26 2:40 ` [dpdk-dev] [PATCH v3] net/iavf: fix Tx interrupt vertor " Wei Zhao
2019-03-26 2:40 ` Wei Zhao
2019-03-26 5:07 ` [dpdk-dev] [PATCH v4] " Wei Zhao
2019-03-26 5:07 ` Wei Zhao
2019-03-26 7:03 ` Zhang, Qi Z
2019-03-26 7:03 ` Zhang, Qi Z
2019-04-02 2:49 ` Zhang, Qi Z
2019-04-02 2:49 ` Zhang, Qi Z
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=A2573D2ACFCADC41BB3BE09C6DE313CA07EC9434@PGSMSX103.gar.corp.intel.com \
--to=wei.zhao1@intel.com \
--cc=dev@dpdk.org \
--cc=paul.m.stillwell.jr@intel.com \
--cc=qi.z.zhang@intel.com \
--cc=stable@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).