Re: [PATCH 1/1] RDMA/ionic: Preserve and set Ethernet source MAC after ib_ud_header_init()

From: Leon Romanovsky

Date: Mon Mar 02 2026 - 14:42:40 EST



On Fri, 27 Feb 2026 11:48:09 +0530, Abhijit Gangurde wrote:
> ionic_build_hdr() populated the Ethernet source MAC (hdr->eth.smac_h) by
> passing the header’s storage directly to rdma_read_gid_l2_fields().
> However, ib_ud_header_init() is called after that and re-initializes the
> UD header, which wipes the previously written smac_h. As a result, packets
> are emitted with an zero source MAC address on the wire.
>
> Correct the source MAC by reading the GID-derived smac into a temporary
> buffer and copy it after ib_ud_header_init() completes.
>
> [...]

Applied, thanks!

[1/1] RDMA/ionic: Preserve and set Ethernet source MAC after ib_ud_header_init()
https://git.kernel.org/rdma/rdma/c/cbbdb148c62814

Best regards,
--
Leon Romanovsky <leon@xxxxxxxxxx>