From: Jakub Slepecki <jakub.slepecki@intel.com>
To: patches@ignore.pl
Cc: please@ignore.pl, Jakub Slepecki <jakub.slepecki@intel.com>
Subject: [PATCH what 2/3] ice: add LLDP filter control 0x0A0A
Date: Tue, 24 Feb 2026 09:56:33 +0100 [thread overview]
Message-ID: <20260224085635.319107-3-jakub.slepecki@intel.com> (raw)
In-Reply-To: <20260224085635.319107-1-jakub.slepecki@intel.com>
Signed-off-by: Jakub Slepecki <jakub.slepecki@intel.com>
---
samples/linux.log | 8 +++++++
what/ice/opcodes/0x0a0a.lua | 43 +++++++++++++++++++++++++++++++++++++
2 files changed, 51 insertions(+)
create mode 100644 what/ice/opcodes/0x0a0a.lua
diff --git a/samples/linux.log b/samples/linux.log
index a32fcd06bf75..b1f15c4ab890 100644
--- a/samples/linux.log
+++ b/samples/linux.log
@@ -26,3 +26,11 @@
addr (h,l) 0x00000004 0x3CB75000
[ 5.000000] ice 0x00000004 0x3CB75000 00000000: 00 40 80 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 5.000000] ice 0x00000004 0x3CB75000 00000010: e0 00 00 00 00 00 04 00
+[ 5.000000] ice 0000:01:00.0: AQ Command: opcode 0x0A0A, flags 0x2000, datalen 0x0000, retval 0x0000
+ cookie (h,l) 0x00000000 0x00000000
+ param (0,1) 0x00030001 0x00000000
+ addr (h,l) 0x00000000 0x00000000
+[ 5.000000] ice 0000:01:00.0: AQ Response: opcode 0x0A0A, flags 0x2003, datalen 0x0000, retval 0x0000
+ cookie (h,l) 0x00000000 0x00000000
+ param (0,1) 0x00030001 0x00000000
+ addr (h,l) 0x00000000 0x00000000
diff --git a/what/ice/opcodes/0x0a0a.lua b/what/ice/opcodes/0x0a0a.lua
new file mode 100644
index 000000000000..f9ce3bc3a177
--- /dev/null
+++ b/what/ice/opcodes/0x0a0a.lua
@@ -0,0 +1,43 @@
+local b = require "what.bits".b
+local dis = require "what.dissecting"
+local flags = require "what.ice.flags"
+local lldp_filter_ctl = {}
+local dump = [[
+---
+opcode: 0x0a0a (LLDP Filter Control)
+kind: %s %s
+flags: %s
+retval: 0x%x
+cookie: 0x%08x 0x%08x
+Command Flag: %s
+VSI: %d
+...]]
+
+
+--- 9.8.5.2.2.11 LLDP Filter Control (0x0A0A) [E810]
+--- Table 9-93. LLDP Filter Control Command [E810]
+--- Table 9-94. LLDP Filter Control Response [E810]
+local command_buffer = dis.new{
+ ["16.0-16.1"] = dis.toggle "Command Flag" {
+ [b'00'] = "Add",
+ [b'01'] = "Delete",
+ [b'10'] = "Update (change VSI number)",
+ [b'11'] = "Reserved",
+ },
+ ["18.0-19.7"] = dis.decimal "VSI",
+}
+
+
+function lldp_filter_ctl:dump ()
+ local res = command_buffer({}, self:command_buffer())
+ return dump:format(
+ self.queue, self.kind,
+ flags.dump(self.flags),
+ self.retval,
+ self.cookie_h, self.cookie_l,
+ res["Command Flag"],
+ res["VSI"])
+end
+
+
+return lldp_filter_ctl
--
2.43.0
next prev parent reply other threads:[~2026-02-24 8:56 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-24 8:56 [PATCH what 0/3] " Jakub Slepecki
2026-02-24 8:56 ` [PATCH what 1/3] what: add bits.b() for binary number "literals" Jakub Slepecki
2026-02-24 8:56 ` Jakub Slepecki [this message]
2026-02-24 8:56 ` [PATCH what 3/3] scripts: add ID=ubuntu to scripts/install Jakub Slepecki
2026-02-24 9:08 ` [PATCH what 0/3] ice: add LLDP filter control 0x0A0A Aki
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=20260224085635.319107-3-jakub.slepecki@intel.com \
--to=jakub.slepecki@intel.com \
--cc=patches@ignore.pl \
--cc=please@ignore.pl \
/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