All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH] net/ifcvf: fix last used idx read
  2018-04-23 17:48 [PATCH] net/ifcvf: fix last used idx read Xiao Wang
@ 2018-04-23 10:55 ` Ferruh Yigit
  0 siblings, 0 replies; 2+ messages in thread
From: Ferruh Yigit @ 2018-04-23 10:55 UTC (permalink / raw)
  To: Xiao Wang; +Cc: dev

On 4/23/2018 6:48 PM, Xiao Wang wrote:
> Fixes: 7b0c17368af2 ("net/ifcvf: add ifcvf vdpa driver")
> 
> Signed-off-by: Xiao Wang <xiao.w.wang@intel.com>

Squashed into relevant commit in next-net, thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH] net/ifcvf: fix last used idx read
@ 2018-04-23 17:48 Xiao Wang
  2018-04-23 10:55 ` Ferruh Yigit
  0 siblings, 1 reply; 2+ messages in thread
From: Xiao Wang @ 2018-04-23 17:48 UTC (permalink / raw)
  To: ferruh.yigit; +Cc: dev, Xiao Wang

Fixes: 7b0c17368af2 ("net/ifcvf: add ifcvf vdpa driver")

Signed-off-by: Xiao Wang <xiao.w.wang@intel.com>
---
 drivers/net/ifc/base/ifcvf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ifc/base/ifcvf.c b/drivers/net/ifc/base/ifcvf.c
index d312ad99f..bbeed30e8 100644
--- a/drivers/net/ifc/base/ifcvf.c
+++ b/drivers/net/ifc/base/ifcvf.c
@@ -250,7 +250,7 @@ ifcvf_hw_disable(struct ifcvf_hw *hw)
 		ring_state = *(u32 *)(hw->lm_cfg + IFCVF_LM_RING_STATE_OFFSET +
 				(i / 2) * IFCVF_LM_CFG_SIZE + (i % 2) * 4);
 		hw->vring[i].last_avail_idx = (u16)ring_state;
-		hw->vring[i].last_used_idx = (u16)ring_state >> 16;
+		hw->vring[i].last_used_idx = (u16)(ring_state >> 16);
 	}
 }
 
-- 
2.15.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-04-23 10:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-23 17:48 [PATCH] net/ifcvf: fix last used idx read Xiao Wang
2018-04-23 10:55 ` Ferruh Yigit

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.