diff options
| author | Abhijit Gangurde <abhijit.gangurde@amd.com> | 2026-02-27 11:48:09 +0530 |
|---|---|---|
| committer | Leon Romanovsky <leon@kernel.org> | 2026-03-04 02:44:01 -0500 |
| commit | a08aaf3968aec5d05cd32c801b8cc0c61da69c41 (patch) | |
| tree | c2bd7d1ccc851be4c8b3efe0961d3b14b53bca0a /include/linux/tc_act/git@git.tavy.me:linux.git | |
| parent | 29a3edd7004bb635d299fb9bc6f0ea4ef13ed5a2 (diff) | |
RDMA/ionic: Preserve and set Ethernet source MAC after ib_ud_header_init()
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.
Fixes: e8521822c733 ("RDMA/ionic: Register device ops for control path")
Cc: stable@vger.kernel.org # 6.18
Signed-off-by: Abhijit Gangurde <abhijit.gangurde@amd.com>
Link: https://patch.msgid.link/20260227061809.2979990-1-abhijit.gangurde@amd.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'include/linux/tc_act/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
