]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r276749:
authorhselasky <hselasky@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 13 Jan 2015 17:07:30 +0000 (17:07 +0000)
committerhselasky <hselasky@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 13 Jan 2015 17:07:30 +0000 (17:07 +0000)
commit2efdc2c662715f5b2b87794d531169878d7fd497
tree4dce4d994559ed6b5be2cab4248c6dc19f344a39
parentda606900f484e121c91c0b8d3aeee43f335153ef
MFC r276749:
Fixes and updates for the Linux compatibility layer:
- Remove unsupported "bus" field from "struct pci_dev".
- Fix logic inside "pci_enable_msix()" when the number of allocated
  interrupts are less than the number of available interrupts.
- Update header files included from "list.h".
- Ensure that "idr_destroy()" removes all entries before destroying
  the IDR root node(s).
- Set the "device->release" function so that we don't leak memory at
  device destruction.
- Use FreeBSD's "log()" function for certain debug printouts.
- Put parenthesis around arguments inside the min, max, min_t and max_t macros.
- Make sure we don't leak file descriptors by dropping the extra file
  reference counts done by the FreeBSD kernel when calling falloc()
  and fget_unlocked().

MFC after: 1 week
Sponsored by: Mellanox Technologies

git-svn-id: svn://svn.freebsd.org/base/stable/10@277139 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/ofed/drivers/infiniband/hw/mlx4/main.c
sys/ofed/drivers/net/mlx4/main.c
sys/ofed/include/linux/file.h
sys/ofed/include/linux/kernel.h
sys/ofed/include/linux/linux_compat.c
sys/ofed/include/linux/linux_idr.c
sys/ofed/include/linux/list.h
sys/ofed/include/linux/pci.h