numam-dpdk/lib
Rahul Lakkireddy 0205f87355 vfio: fix overflow of BAR region offset and size
When using vfio, the probe fails for BAR > 0 after the
commit-id 90a1633b2 (eal/linux: allow to map BARs with MSI-X tables).

While debugging further, found that the BAR region offset and size read from
vfio are u64, but are assigned to uint32_t variables.  This results in the u64
value getting truncated to 0 and passing wrong offset and size to mmap for
subsequent BAR regions.

The fix is to use unsigned long for the offset and size.

This is based on patch by Alejandro Lucero <alejandro.lucero@netronome.com>
posted at below:
	http://dpdk.org/ml/archives/dev/2015-June/020201.html
and updated with diff from below to fix 32-bit compilation:
	http://dpdk.org/ml/archives/dev/2015-July/020963.html

Fixes: 90a1633b23 ("eal/linux: allow to map BARs with MSI-X tables")

Signed-off-by: Alejandro Lucero <alejandro.lucero@netronome.com>
Signed-off-by: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Signed-off-by: Kumar Sanghvi <kumaras@chelsio.com>
2015-07-14 10:51:01 +02:00
..
librte_acl acl: remove unused code 2015-06-18 18:09:46 +02:00
librte_cfgfile cfgfile: fix unitialised buffer 2015-07-01 23:36:22 +02:00
librte_cmdline lib: remove redundant definition of local symbols 2015-06-29 18:57:32 +02:00
librte_compat compat: remove unneeded macro 2015-06-29 16:41:23 +02:00
librte_distributor distributor: remove inclusion of mbuf header 2015-05-11 15:36:37 +02:00
librte_eal vfio: fix overflow of BAR region offset and size 2015-07-14 10:51:01 +02:00
librte_ether ethdev: call Rx and Tx callbacks in the order they were added 2015-07-12 23:36:18 +02:00
librte_hash hash: rename unused field 2015-07-13 19:27:31 +02:00
librte_ip_frag mbuf: use offset macro 2015-06-24 12:01:14 +02:00
librte_ivshmem ivshmem: fix crash in corner case 2015-06-22 18:39:40 +02:00
librte_jobstats jobstats: new library 2015-02-24 22:12:35 +01:00
librte_kni kni: ignore double initialization 2015-06-22 18:39:40 +02:00
librte_kvargs kvargs: fix freeing behaviour for null 2015-03-04 11:19:37 +01:00
librte_lpm lpm: fix big endian support 2015-07-10 23:23:15 +02:00
librte_malloc lib: fix whitespace 2015-06-12 11:10:10 +02:00
librte_mbuf mbuf: add ieee1588 timestamping 2015-07-10 02:36:13 +02:00
librte_mempool mempool: allow config override on element alignment 2015-07-13 16:15:52 +02:00
librte_meter doc: fix doxygen warnings in QoS API 2015-06-18 14:53:58 +02:00
librte_net lib: remove extra parenthesis after return 2015-06-23 23:31:15 +02:00
librte_pipeline pipeline: fix missing exported symbols 2015-07-09 17:25:45 +02:00
librte_port port: fix missing exported symbols 2015-07-09 17:25:45 +02:00
librte_power doc: fix doxygen warnings 2015-06-19 12:11:53 +02:00
librte_reorder reorder: allow random number as starting point 2015-06-22 22:20:12 +02:00
librte_ring tailq: move to dynamic tailq 2015-03-10 12:06:08 +01:00
librte_sched doc: fix doxygen warnings in QoS API 2015-06-18 14:53:58 +02:00
librte_table table: add stub stats 2015-06-23 23:31:15 +02:00
librte_timer tailq: remove unneeded inclusions 2015-03-10 11:47:46 +01:00
librte_vhost vhost: comment unwanted callback 2015-06-30 17:49:08 +02:00
Makefile xenvirt: move drivers/net/ 2015-05-22 16:06:23 +02:00