RDMA/nes: Fix for incorrect recording of the MAC address
PATCH 1/1 RDMA/nes: Fix for incorrect recording of the MAC address
Fix for incorrect recording of the MAC address
Signed-off-by Tatyana Nikolova <[email protected]>
--- drivers/infiniband/hw/nes/nes_hw.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/infiniband/hw/nes/nes_hw.c +1 -1
@@ -3861,7 +3861,7 @@ void nes_manage_arp_cache(struct net_device *netdev, unsigned char *mac_addr, (((u32 )mac_addr[2 ]) <<24 ) | (((u32 )mac_addr[3 ]) <<16 ) | (((u32)mac_addr[4]) << 8) | (u32)mac_addr[5]); cqp_wqe->wqe_words[NES_CQP_ARP_WQE_MAC_HIGH_IDX ] =cpu_to_le32 ( - (((u32 )mac_addr[0 ]) <<16 ) | (u32 )mac_addr[1 ]); + (((u32 )mac_addr[0 ]) <<8 ) | (u32 )mac_addr[1 ]); }else { cqp_wqe->wqe_words[NES_CQP_ARP_WQE_MAC_ADDR_LOW_IDX ] =0 ; cqp_wqe->wqe_words[NES_CQP_ARP_WQE_MAC_HIGH_IDX ] =0 ;
Signature · 6 lines
1.7.1 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Doug Ledford
AppliedQuoted 13 lines · Tatyana Nikolova
Fix for incorrect recording of the MAC address
Signed-off-by Tatyana Nikolova <[email protected]>--- drivers/infiniband/hw/nes/nes_hw.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)drivers/infiniband/hw/nes/nes_hw.c +0
-0
drivers/infiniband/hw/nes/nes_hw.c void nes_manage_arp_cache(struct net_device *netdev, unsigned char *mac_addr, · line 3867
Quoted 8 lines
drivers/infiniband/hw/nes/nes_hw.c +1
-1@@ -3861,7 +3861,7 @@ void nes_manage_arp_cache(struct net_device *netdev, unsigned char *mac_addr, (((u32 )mac_addr[2 ]) <<24 ) | (((u32 )mac_addr[3 ]) <<16 ) | (((u32)mac_addr[4]) << 8) | (u32)mac_addr[5]); cqp_wqe->wqe_words[NES_CQP_ARP_WQE_MAC_HIGH_IDX ] =cpu_to_le32 ( - (((u32 )mac_addr[0 ]) <<16 ) | (u32 )mac_addr[1 ]); + (((u32 )mac_addr[0 ]) <<8 ) | (u32 )mac_addr[1 ]); }else { cqp_wqe->wqe_words[NES_CQP_ARP_WQE_MAC_ADDR_LOW_IDX ] =0 ; cqp_wqe->wqe_words[NES_CQP_ARP_WQE_MAC_HIGH_IDX ] =0 ;
Thanks, applied.
Signature · 2 lines
Doug Ledford <[email protected]> GPG KeyID: 0E572FDD