[PATCH net-next 0/3] eth: fbnic: Cleanup macros and string function

From: Lee Trager
Date: Fri Feb 28 2025 - 14:59:19 EST


We have received some feedback that the macros we use for reading FW mailbox
attributes are too large in scope and confusing to understanding. Additionally
the string function did not provide errors allowing it to silently succeed.
This patch set fixes theses issues.

Lee Trager (3):
eth: fbnic: Prepend TSENE FW fields with FBNIC_FW
eth: fbnic: Update fbnic_tlv_attr_get_string() to work like
nla_strscpy()
eth: fbnic: Replace firmware field macros

drivers/net/ethernet/meta/fbnic/fbnic_fw.c | 109 ++++++++++----------
drivers/net/ethernet/meta/fbnic/fbnic_fw.h | 8 +-
drivers/net/ethernet/meta/fbnic/fbnic_tlv.c | 55 +++++++---
drivers/net/ethernet/meta/fbnic/fbnic_tlv.h | 39 ++-----
4 files changed, 110 insertions(+), 101 deletions(-)

--
2.43.5