Unverified Commit 91492fda authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!9486 [OLK-6.6] Fix os crash while enable sriov for rnp

Merge Pull Request from: @dong-yibo 
 
1 Fix Mucse Network adapter (RNPVF)driver os crash
update files:
drivers/net/ethernet/mucse/rnpvf/mbx.c
drivers/net/ethernet/mucse/rnpvf/rnpvf_main.c 
 
Link:https://gitee.com/openeuler/kernel/pulls/9486

 

Reviewed-by: default avatarYue Haibing <yuehaibing@huawei.com>
Signed-off-by: default avatarZhang Peng <zhangpeng362@huawei.com>
parents d4b25743 2fdb5659
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -400,7 +400,7 @@ static s32 rnpvf_obtain_mbx_lock_vf(struct rnpvf_hw *hw, bool to_cm3)
		/* reserve mailbox for vf use */
		if (mbx_rd32(hw, CTRL_REG) & MBOX_CTRL_VF_HOLD_SHM)
			return 0;
		usleep_range(500, 1000);
		udelay(500);
	}

	return RNP_ERR_MBX;
+1 −1
Original line number Diff line number Diff line
@@ -36,7 +36,7 @@ char rnpvf_driver_name[] = "rnpvf";
static const char rnpvf_driver_string[] =
	"Mucse(R) 10/40G Gigabit PCI Express Virtual Function Network Driver";

#define DRV_VERSION "0.3.1"
#define DRV_VERSION "0.3.2"
const char rnpvf_driver_version[] = DRV_VERSION;
static const char rnpvf_copyright[] =
	"Copyright (c) 2020 - 2024 Mucse Corporation.";