From: Ferruh Yigit <ferruh.yigit@intel.com>
To: Qiming Yang <qiming.yang@intel.com>, dev@dpdk.org
Subject: Re: [dpdk-dev] [PATCH v3 2/2] net/i40e: fix VF bonded device link down
Date: Fri, 28 Oct 2016 12:05:02 +0100 [thread overview]
Message-ID: <7b1cbf2e-99f1-95f9-a579-f88199153ad0@intel.com> (raw)
In-Reply-To: <1477628339-5816-2-git-send-email-qiming.yang@intel.com>
Hi Qiming,
On 10/28/2016 5:18 AM, Qiming Yang wrote:
> If VF device is used as slave of a bond device, it will be polled
> periodically through alarm. Interrupt is involved here. And then
> VF will send I40E_VIRTCHNL_OP_GET_LINK_STAT message to
> PF to query the status. The response is handled by interrupt
> callback. Interrupt is involved here again. That's why bond
> device cannot bring up.
>
> This patch removes I40E_VIRTCHNL_OP_GET_LINK_STAT
> message. Link status in VF driver will be updated when PF driver
> notify it, and VF stores this link status locally. VF driver just
> returns the local status when being required.
>
> Fixes: 4861cde46116 ("i40e: new poll mode driver")
>
> Signed-off-by: Qiming Yang <qiming.yang@intel.com>
> ---
<...>
> static void
> +i40e_notify_all_vfs_link_status(struct rte_eth_dev *dev)
> +{
> + struct i40e_pf *pf = I40E_DEV_PRIVATE_TO_PF(dev->data->dev_private);
> + struct i40e_virtchnl_pf_event event;
> + int i;
> +
> + event.event = I40E_VIRTCHNL_EVENT_LINK_CHANGE;
> + event.event_data.link_event.link_status =
> + dev->data->dev_link.link_status;
> + event.event_data.link_event.link_speed =
> + dev->data->dev_link.link_speed;
This gives a compilation error with icc [1], casting to enum will be
enough to fix I guess.
[1]
.../drivers/net/i40e/i40e_ethdev.c(5453): error #188: enumerated type
mixed with another type
event.event_data.link_event.link_speed =
^
<...>
> diff --git a/drivers/net/i40e/i40e_pf.c b/drivers/net/i40e/i40e_pf.c
> index d5b2d45..350f6a0 100644
<...>
>
> +static void
> +i40e_notify_vf_link_status(struct rte_eth_dev *dev, struct i40e_pf_vf *vf)
> +{
> + struct i40e_virtchnl_pf_event event;
> +
> + event.event = I40E_VIRTCHNL_EVENT_LINK_CHANGE;
> + event.event_data.link_event.link_status =
> + dev->data->dev_link.link_status;
> + event.event_data.link_event.link_speed =
> + dev->data->dev_link.link_speed;
Same error here:
.../drivers/net/i40e/i40e_pf.c(908): error #188: enumerated type mixed
with another type
event.event_data.link_event.link_speed =
^
And while sending a new version of the patch, can you please:
1- CC the maintainers
2- Patchset already acked by Jingjing, keep the ack in the patches.
Thanks,
ferruh
next prev parent reply other threads:[~2016-10-28 11:05 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-25 4:19 [dpdk-dev] [PATCH v2 1/2] net/i40e: fix link status change interrupt Qiming Yang
2016-10-25 4:19 ` [dpdk-dev] [PATCH v2 2/2] net/i40e: fix VF bonded device link down Qiming Yang
2016-10-25 10:45 ` Wu, Jingjing
2016-10-28 4:18 ` [dpdk-dev] [PATCH v3 1/2] net/i40e: fix link status change interrupt Qiming Yang
2016-10-28 4:18 ` [dpdk-dev] [PATCH v3 2/2] net/i40e: fix VF bonded device link down Qiming Yang
2016-10-28 11:05 ` Ferruh Yigit [this message]
2016-11-04 9:10 ` [dpdk-dev] [PATCH v4 1/2] net/i40e: fix link status change interrupt Qiming Yang
2016-11-04 9:10 ` [dpdk-dev] [PATCH v4 2/2] net/i40e: fix VF bonded device link down Qiming Yang
2016-11-07 16:48 ` Thomas Monjalon
2016-10-25 10:43 ` [dpdk-dev] [PATCH v2 1/2] net/i40e: fix link status change interrupt Wu, Jingjing
2016-10-25 12:53 ` Bruce Richardson
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=7b1cbf2e-99f1-95f9-a579-f88199153ad0@intel.com \
--to=ferruh.yigit@intel.com \
--cc=dev@dpdk.org \
--cc=qiming.yang@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 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).