From: Zaiyu Wang <zaiyuwang@trustnetic.com>
To: dev@dpdk.org
Cc: Zaiyu Wang <zaiyuwang@trustnetic.com>,
Jiawen Wu <jiawenwu@trustnetic.com>,
Jian Wang <jianwang@trustnetic.com>
Subject: [PATCH 2/6] net/txgbe: add flush operation for Amber-Lite NICs
Date: Thu, 23 Oct 2025 20:13:51 +0800 [thread overview]
Message-ID: <20251023121356.21944-3-zaiyuwang@trustnetic.com> (raw)
In-Reply-To: <20251023121356.21944-1-zaiyuwang@trustnetic.com>
Add flush operation for AML NICs to ensure configuration takes effect.
The flush forces hardware to apply new settings right after driver
updates. Missing flush may cause potential negative impacts as
configurations could remain pending.
Signed-off-by: Zaiyu Wang <zaiyuwang@trustnetic.com>
---
drivers/net/txgbe/base/txgbe_regs.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/net/txgbe/base/txgbe_regs.h b/drivers/net/txgbe/base/txgbe_regs.h
index f2e4994863..505e42a666 100644
--- a/drivers/net/txgbe/base/txgbe_regs.h
+++ b/drivers/net/txgbe/base/txgbe_regs.h
@@ -1997,9 +1997,12 @@ static inline void txgbe_flush(struct txgbe_hw *hw)
{
switch (hw->mac.type) {
case txgbe_mac_sp:
+ case txgbe_mac_aml:
+ case txgbe_mac_aml40:
rd32(hw, TXGBE_PWR);
break;
case txgbe_mac_sp_vf:
+ case txgbe_mac_aml_vf:
rd32(hw, TXGBE_VFSTATUS);
break;
default:
--
2.21.0.windows.1
next prev parent reply other threads:[~2025-10-23 12:14 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-23 12:13 [PATCH 0/6] net/txgbe: fill in functionality gaps " Zaiyu Wang
2025-10-23 12:13 ` [PATCH 1/6] net/txgbe: add Amber-Lite 25G VF IDs to PCI ID map Zaiyu Wang
2025-10-23 12:13 ` Zaiyu Wang [this message]
2025-10-23 12:13 ` [PATCH 3/6] net/txgbe: add RSS register selection for Amber-Lite 25G VF Zaiyu Wang
2025-10-23 12:13 ` [PATCH 4/6] net/txgbe: add BME reset " Zaiyu Wang
2025-10-23 12:13 ` [PATCH 5/6] net/txgbe: add check link for Amber-Lite VF Zaiyu Wang
2025-10-23 12:13 ` [PATCH 6/6] net/txgbe: add PF-triggered VF link status change handling Zaiyu Wang
2025-10-24 22:49 ` [PATCH 0/6] net/txgbe: fill in functionality gaps for Amber-Lite NICs Stephen Hemminger
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=20251023121356.21944-3-zaiyuwang@trustnetic.com \
--to=zaiyuwang@trustnetic.com \
--cc=dev@dpdk.org \
--cc=jianwang@trustnetic.com \
--cc=jiawenwu@trustnetic.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).