Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

RDMA/nes: Fix for incorrect recording of the MAC address

Fix for incorrect recording of the MAC address

Signed-off-by: Tatyana Nikolova <Tatyana.E.Nikolova@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>

authored by

Tatyana Nikolova and committed by
Doug Ledford
0a691272 165d6822

+1 -1
+1 -1
drivers/infiniband/hw/nes/nes_hw.c
··· 3861 3861 (((u32)mac_addr[2]) << 24) | (((u32)mac_addr[3]) << 16) | 3862 3862 (((u32)mac_addr[4]) << 8) | (u32)mac_addr[5]); 3863 3863 cqp_wqe->wqe_words[NES_CQP_ARP_WQE_MAC_HIGH_IDX] = cpu_to_le32( 3864 - (((u32)mac_addr[0]) << 16) | (u32)mac_addr[1]); 3864 + (((u32)mac_addr[0]) << 8) | (u32)mac_addr[1]); 3865 3865 } else { 3866 3866 cqp_wqe->wqe_words[NES_CQP_ARP_WQE_MAC_ADDR_LOW_IDX] = 0; 3867 3867 cqp_wqe->wqe_words[NES_CQP_ARP_WQE_MAC_HIGH_IDX] = 0;