[PATCH net-next v2 0/3] net/ncsi: Add NC-SI 1.2 Get MC MAC Address command

From: Patrick Williams
Date: Tue Nov 14 2023 - 11:07:57 EST


NC-SI 1.2 has now been published[1] and adds a new command for "Get MC
MAC Address". This is often used by BMCs to get the assigned MAC
address for the channel used by the BMC.

This change set has been tested on a Broadcomm 200G NIC with updated
firmware for NC-SI 1.2 and at least one other non-public NIC design.

1. https://www.dmtf.org/sites/default/files/standards/documents/DSP0222_1.2.0.pdf

Peter Delevoryas (3):
net/ncsi: Simplify Kconfig/dts control flow
net/ncsi: Fix netlink major/minor version numbers
net/ncsi: Add NC-SI 1.2 Get MC MAC Address command

net/ncsi/internal.h | 7 +++--
net/ncsi/ncsi-cmd.c | 3 +-
net/ncsi/ncsi-manage.c | 29 ++++++------------
net/ncsi/ncsi-netlink.c | 4 +--
net/ncsi/ncsi-pkt.h | 17 +++++++++--
net/ncsi/ncsi-rsp.c | 67 +++++++++++++++++++++++++++++++++++++++--
6 files changed, 98 insertions(+), 29 deletions(-)

Signed-off-by: Peter Delevoryas <peter@xxxxxxx>
Signed-off-by: Patrick Williams <patrick@xxxxxxxxx>

---

I am taking over this patch set for Peter D, who has moved to another
team and no longer working on this.

Changes v2:
- Conform to published NC-SI 1.2 spec (switch byte order).
- Use netdev_info instead of netdev_warn for MAC.
- Fix checkpatch warnings.

v1: https://lore.kernel.org/lkml/20221221052246.519674-1-peter@xxxxxxx/

--
2.41.0