mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 04:13:53 -06:00
pvrdma: wean code off pvrdma_ring.h kernel header
The pvrdma code relies on the pvrdma_ring.h kernel header for some basic ring buffer handling. The content of that header isn't very exciting, but contains some (q)atomic_*() invocations that (a) cause manual massaging when doing a headers update, and (b) are an indication that we probably should not be importing that header at all. Let's reimplement the ring buffer handling directly in the pvrdma code instead. This arguably also improves readability of the code. Importing the header can now be dropped. Signed-off-by: Cornelia Huck <cohuck@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Yuval Shaia <yuval.shaia.ml@gmail.com> Tested-by: Yuval Shaia <yuval.shaia.ml@gmail.com> Signed-off-by: Jason Wang <jasowang@redhat.com>
This commit is contained in:
parent
37cee01784
commit
3aa1b7af0f
7 changed files with 38 additions and 144 deletions
|
@ -215,8 +215,7 @@ sed -e '1h;2,$H;$!d;g' -e 's/[^};]*pvrdma[^(| ]*([^)]*);//g' \
|
|||
"$linux/drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.h" > \
|
||||
"$tmp_pvrdma_verbs";
|
||||
|
||||
for i in "$linux/drivers/infiniband/hw/vmw_pvrdma/pvrdma_ring.h" \
|
||||
"$linux/drivers/infiniband/hw/vmw_pvrdma/pvrdma_dev_api.h" \
|
||||
for i in "$linux/drivers/infiniband/hw/vmw_pvrdma/pvrdma_dev_api.h" \
|
||||
"$tmp_pvrdma_verbs"; do \
|
||||
cp_portable "$i" \
|
||||
"$output/include/standard-headers/drivers/infiniband/hw/vmw_pvrdma/"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue