[PATCH v1 1/2] net/i40e/base: add get wake packet AQ command
Anatoly Burakov
anatoly.burakov at intel.com
Fri Oct 16 13:39:28 CEST 2026
From: Oleg Akhrem <oleg.akhrem at intel.com>
Add definitions for the Get Wake Packet Admin Queue command
(opcode 0x0122), which retrieves the firmware-saved packet that
caused a Wake Up event.
Define the command opcode, the command descriptor and the maximum
response buffer size.
Signed-off-by: Oleg Akhrem <oleg.akhrem at intel.com>
Signed-off-by: Anatoly Burakov <anatoly.burakov at intel.com>
---
drivers/net/intel/i40e/base/i40e_adminq_cmd.h | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/drivers/net/intel/i40e/base/i40e_adminq_cmd.h b/drivers/net/intel/i40e/base/i40e_adminq_cmd.h
index eda19ccf32..d41a6d592a 100644
--- a/drivers/net/intel/i40e/base/i40e_adminq_cmd.h
+++ b/drivers/net/intel/i40e/base/i40e_adminq_cmd.h
@@ -138,6 +138,7 @@ enum i40e_admin_queue_opc {
/* WoL commands */
i40e_aqc_opc_set_wol_filter = 0x0120,
i40e_aqc_opc_get_wake_reason = 0x0121,
+ i40e_aqc_opc_get_wake_packet = 0x0122,
i40e_aqc_opc_clear_all_wol_filters = 0x025E,
/* internal switch commands */
@@ -629,6 +630,17 @@ struct i40e_aqc_get_wake_reason_completion {
I40E_CHECK_CMD_LENGTH(i40e_aqc_get_wake_reason_completion);
+/* Get Wake Packet (0x0122) */
+#define I40E_AQC_GET_WAKE_PACKET_BUFFER_SIZE 0x600
+
+struct i40e_aqc_get_wake_packet {
+ u8 reserved[8];
+ __le32 address_high;
+ __le32 address_low;
+};
+
+I40E_CHECK_CMD_LENGTH(i40e_aqc_get_wake_packet);
+
/* Switch configuration commands (0x02xx) */
/* Used by many indirect commands that only pass an seid and a buffer in the
--
2.52.0
More information about the dev
mailing list