Calculate BMC MAC address from NCSI NIC's base MAC
Tao Ren
taoren at fb.com
Fri Aug 2 07:14:55 AEST 2019
Hi,
I'm running Facebook Yamp AST2500 BMC and its MAC is connected to Broadcom NCSI-NIC. When CONFIG_NCSI_OEM_CMD_GET_MAC is enabled, BMC's MAC address is calculated by adding 1 to NCSI-NIC's base MAC.
This adding-one logic doesn't work for Yamp because Host-BMC MAC offset needs to be 2. What would be the preferred way to fix it? For example:
1) adding a device tree node (such as "ncsi-bmc-mac-offset") and send it to ncsi stack when calling ncsi_register_dev?
2) adding a device tree node to be parsed in ncsi stack directly?
3) adding a KCONFIG option so it can be parsed in ncsi-rsp.c directly?
Thanks,
Tao
More information about the openbmc
mailing list