All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ye Xiaolong <xiaolong.ye@intel.com>
To: Shougang Wang <shougangx.wang@intel.com>
Cc: dev@dpdk.org, qi.z.zhang@intel.com, qiming.yang@intel.com
Subject: Re: [dpdk-dev] [PATCH] net/i40e: fix compile warning
Date: Wed, 19 Feb 2020 12:53:52 +0800	[thread overview]
Message-ID: <20200219045352.GB111443@intel.com> (raw)
In-Reply-To: <20200219030055.76699-1-shougangx.wang@intel.com>

On 02/19, Shougang Wang wrote:
>This patch adds memset array before using.
>
>Fixes: 622e24aa6712 ("net/i40e: fix multiple interrupt for VF")
>
>Signed-off-by: Shougang Wang <shougangx.wang@intel.com>
>---
> drivers/net/i40e/i40e_ethdev_vf.c | 1 +
> 1 file changed, 1 insertion(+)
>
>diff --git a/drivers/net/i40e/i40e_ethdev_vf.c b/drivers/net/i40e/i40e_ethdev_vf.c
>index 868117508..c34f5206c 100644
>--- a/drivers/net/i40e/i40e_ethdev_vf.c
>+++ b/drivers/net/i40e/i40e_ethdev_vf.c
>@@ -659,6 +659,7 @@ i40evf_config_irq_map(struct rte_eth_dev *dev)
> 	uint16_t rxq_map[vf->vf_res->max_vectors];
> 	int err;
> 
>+	memset(rxq_map, 0, sizeof(rxq_map));
> 	if (dev->data->dev_conf.intr_conf.rxq != 0 &&
> 		rte_intr_allow_others(intr_handle)) {
> 		msix_base = I40E_RX_VEC_START;
>-- 
>2.17.1
>

Applied to dpdk-next-net-intel, Squashed into previous commit. 

      reply	other threads:[~2020-02-19  4:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-19  3:00 [dpdk-dev] [PATCH] net/i40e: fix compile warning Shougang Wang
2020-02-19  4:53 ` Ye Xiaolong [this message]

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=20200219045352.GB111443@intel.com \
    --to=xiaolong.ye@intel.com \
    --cc=dev@dpdk.org \
    --cc=qi.z.zhang@intel.com \
    --cc=qiming.yang@intel.com \
    --cc=shougangx.wang@intel.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.