From: Stephen Hemminger <stephen@networkplumber.org>
To: Wenjun Wu <wenjun1.wu@intel.com>
Cc: dev@dpdk.org, jingjing.wu@intel.com, beilei.xing@intel.com,
qi.z.zhang@intel.com, simei.su@intel.com
Subject: Re: [PATCH v1] net/iavf: fix race condition for multi-cores
Date: Wed, 18 May 2022 20:13:04 -0700 [thread overview]
Message-ID: <20220518201304.0d74228c@hermes.local> (raw)
In-Reply-To: <20220519011959.613966-1-wenjun1.wu@intel.com>
On Thu, 19 May 2022 09:19:59 +0800
Wenjun Wu <wenjun1.wu@intel.com> wrote:
> if (dev->data->dev_conf.rxmode.offloads &
> - RTE_ETH_RX_OFFLOAD_TIMESTAMP) {
> - if (iavf_get_phc_time(adapter)) {
> - PMD_DRV_LOG(ERR, "get physical time failed");
> - goto err_mac;
> - }
> - adapter->hw_time_update = rte_get_timer_cycles() / (rte_get_timer_hz() / 1000);
> - }
> + RTE_ETH_RX_OFFLOAD_TIMESTAMP)
> + rte_spinlock_init(&vf->phc_time_aq_lock);
Be safe just always init the spin_lock. It is just a simple assignment.
next prev parent reply other threads:[~2022-05-19 3:13 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-19 1:19 Wenjun Wu
2022-05-19 3:13 ` Stephen Hemminger [this message]
2022-05-19 7:33 ` [PATCH v2] " Wenjun Wu
2022-05-19 15:27 ` Stephen Hemminger
2022-05-20 7:35 ` [PATCH v3] " Wenjun Wu
2022-05-23 4:49 ` [PATCH v4] " Wenjun Wu
2022-05-23 5:17 ` 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=20220518201304.0d74228c@hermes.local \
--to=stephen@networkplumber.org \
--cc=beilei.xing@intel.com \
--cc=dev@dpdk.org \
--cc=jingjing.wu@intel.com \
--cc=qi.z.zhang@intel.com \
--cc=simei.su@intel.com \
--cc=wenjun1.wu@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).