[AMD Official Use Only - General]

Reviewed-by: Abner Chang <abner.ch...@amd.com>

Mike,  could you please create a PR for this patch set?
Thanks
Abner

> -----Original Message-----
> From: Mike Maslenkin <mike.maslen...@gmail.com>
> Sent: Thursday, November 23, 2023 8:01 AM
> To: devel@edk2.groups.io
> Cc: Chang, Abner <abner.ch...@amd.com>; nick...@nvidia.com;
> ig...@ami.com
> Subject: [PATCH v2 3/3] RedfishPkg: fix searching for the BMC-exposed USB
> NIC
>
> Caution: This message originated from an External Source. Use proper caution
> when opening attachments, clicking links, or responding.
>
>
> According to RedfishPkg/Readme.md document:
> "The last byte of host-end USB NIC MAC address is the last byte of
> BMC-end USB NIC MAC address minus 1."
>
> It is necessary to subtract 1 from IpmiLanChannelMacAddress.
>
> Cc: Abner Chang <abner.ch...@amd.com>
> Cc: Nickle Wang <nick...@nvidia.com>
> Cc: Igor Kulchytskyy <ig...@ami.com>
> Signed-off-by: Mike Maslenkin <mike.maslen...@gmail.com>
> ---
>  .../PlatformHostInterfaceBmcUsbNicLib.c                       | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git
> a/RedfishPkg/Library/PlatformHostInterfaceBmcUsbNicLib/PlatformHostInter
> faceBmcUsbNicLib.c
> b/RedfishPkg/Library/PlatformHostInterfaceBmcUsbNicLib/PlatformHostInter
> faceBmcUsbNicLib.c
> index 95900579118b..20ec89d4fcb0 100644
> ---
> a/RedfishPkg/Library/PlatformHostInterfaceBmcUsbNicLib/PlatformHostInter
> faceBmcUsbNicLib.c
> +++
> b/RedfishPkg/Library/PlatformHostInterfaceBmcUsbNicLib/PlatformHostInter
> faceBmcUsbNicLib.c
> @@ -738,8 +738,8 @@ HostInterfaceIpmiCheckMacAddress (
>               (VOID *)&IpmiLanChannelMacAddress.Addr,
>
>               IpmiLanMacAddressSize - 1
>
>               ) != 0) ||
>
> -          (IpmiLanChannelMacAddress.Addr[IpmiLanMacAddressSize - 1] !=
>
> -           *(UsbNicInfo->MacAddress + IpmiLanMacAddressSize - 1) - 1)
>
> +          (IpmiLanChannelMacAddress.Addr[IpmiLanMacAddressSize - 1] - 1 !=
>
> +           *(UsbNicInfo->MacAddress + IpmiLanMacAddressSize - 1))
>
>            )
>
>        {
>
>          DEBUG ((DEBUG_REDFISH_HOST_INTERFACE, "    MAC address is not
> matched.\n"));
>
> --
> 2.32.0 (Apple Git-132)



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#111643): https://edk2.groups.io/g/devel/message/111643
Mute This Topic: https://groups.io/mt/102759080/21656
Group Owner: devel+ow...@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to