From bb258b8dbff0ba2da9ceaf82e470306f014194da Mon Sep 17 00:00:00 2001 From: Rakesh Goyal Date: Tue, 7 May 2019 19:06:04 +0530 Subject: [PATCH] nvethernetrm: fix bitmask for handling avb IOCTL Correcting bit mask to get correct operation mode when user ask for current avb setting using ETHER_GET_AVB_ALGORITHM IOCTL Bug 200512422 Change-Id: I884ab8666437110f2306f0542cc99948ad7c8874 Signed-off-by: Rakesh Goyal Reviewed-on: https://git-master.nvidia.com/r/2113782 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Srinivas Ramachandran Reviewed-by: Narayan Reddy GVS: Gerrit_Virtual_Submit Reviewed-by: Bitan Biswas Reviewed-by: mobile promotions Tested-by: mobile promotions --- osi/eqos_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osi/eqos_core.c b/osi/eqos_core.c index 9903eca..911274e 100644 --- a/osi/eqos_core.c +++ b/osi/eqos_core.c @@ -1162,7 +1162,7 @@ static int eqos_get_avb_algorithm(struct osi_core_priv_data *osi_core, EQOS_MTL_CHX_TX_OP_MODE(qinx)); /* Get TxQ/TC mode as per input struct after masking 3:2 bit */ - value = (value & EQOS_MTL_TXQEN) >> EQOS_MTL_TXQEN_MASK_SHIFT; + value = (value & EQOS_MTL_TXQEN_MASK) >> EQOS_MTL_TXQEN_MASK_SHIFT; avb->oper_mode = value; /* Get Algo and Credit control */