DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] net/ifc: fix build with type virtio16
@ 2018-10-08  4:32 Xiao Wang
  2018-10-08 12:52 ` Ferruh Yigit
  0 siblings, 1 reply; 3+ messages in thread
From: Xiao Wang @ 2018-10-08  4:32 UTC (permalink / raw)
  To: ferruh.yigit; +Cc: dev, thomas, chaozhu, Xiao Wang

The typedef of "__virtio16" is introduced into Linux kernel in v3.19.
To prevent build error on old kernel, this patch replaces the
"__virtio" usage with "uint16_t".

Fixes: d7fe5a2861e7 ("net/ifc: support live migration")

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

diff --git a/drivers/net/ifc/ifcvf_vdpa.c b/drivers/net/ifc/ifcvf_vdpa.c
index 7d3085d8d..9d5594678 100644
--- a/drivers/net/ifc/ifcvf_vdpa.c
+++ b/drivers/net/ifc/ifcvf_vdpa.c
@@ -285,7 +285,7 @@ ifcvf_used_ring_log(struct ifcvf_hw *hw, uint32_t queue, uint8_t *log_buf)
 
 	pfn = hw->vring[queue].used / PAGE_SIZE;
 	size = hw->vring[queue].size * sizeof(struct vring_used_elem) +
-			sizeof(__virtio16) * 3;
+			sizeof(uint16_t) * 3;
 
 	for (i = 0; i <= size / PAGE_SIZE; i++)
 		__sync_fetch_and_or_8(&log_buf[(pfn + i) / 8],
-- 
2.15.1

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

* Re: [dpdk-dev] [PATCH] net/ifc: fix build with type virtio16
  2018-10-08  4:32 [dpdk-dev] [PATCH] net/ifc: fix build with type virtio16 Xiao Wang
@ 2018-10-08 12:52 ` Ferruh Yigit
  2018-10-08 23:59   ` Thomas Monjalon
  0 siblings, 1 reply; 3+ messages in thread
From: Ferruh Yigit @ 2018-10-08 12:52 UTC (permalink / raw)
  To: Xiao Wang; +Cc: dev, thomas, chaozhu

On 10/8/2018 5:32 AM, Xiao Wang wrote:
> The typedef of "__virtio16" is introduced into Linux kernel in v3.19.
> To prevent build error on old kernel, this patch replaces the
> "__virtio" usage with "uint16_t".
> 
> Fixes: d7fe5a2861e7 ("net/ifc: support live migration")
> 
> Signed-off-by: Xiao Wang <xiao.w.wang@intel.com>

Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>

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

* Re: [dpdk-dev] [PATCH] net/ifc: fix build with type virtio16
  2018-10-08 12:52 ` Ferruh Yigit
@ 2018-10-08 23:59   ` Thomas Monjalon
  0 siblings, 0 replies; 3+ messages in thread
From: Thomas Monjalon @ 2018-10-08 23:59 UTC (permalink / raw)
  To: Xiao Wang; +Cc: dev, Ferruh Yigit, chaozhu

08/10/2018 14:52, Ferruh Yigit:
> On 10/8/2018 5:32 AM, Xiao Wang wrote:
> > The typedef of "__virtio16" is introduced into Linux kernel in v3.19.
> > To prevent build error on old kernel, this patch replaces the
> > "__virtio" usage with "uint16_t".
> > 
> > Fixes: d7fe5a2861e7 ("net/ifc: support live migration")
> > 
> > Signed-off-by: Xiao Wang <xiao.w.wang@intel.com>
> 
> Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>

Applied, thanks

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

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

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-08  4:32 [dpdk-dev] [PATCH] net/ifc: fix build with type virtio16 Xiao Wang
2018-10-08 12:52 ` Ferruh Yigit
2018-10-08 23:59   ` Thomas Monjalon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).