freebsd-nq/sys/dev
Adrian Chadd 5799c2bce7 [iwm] Fix up busdma use in the RX path
When allocating a new mbuf or bus_dmamap_load()-ing it fails,
we can just keep the old mbuf since we are dropping that packet anyway.
Instead of doing bus_dmamap_create() and bus_dmamap_destroy() all the time,
create an extra bus_dmamap_t which we can use to safely try
bus_dmamap_load()-ing the new mbuf. On success we just swap the spare
bus_dmamap_t with the data->map of that ring entry.

Tested:

Tested with Intel AC7260, verified with vmstat -m that new kernel no
longer visibly leaks memory from the M_DEVBUF malloc type.
Before, leakage was 1KB every few seconds while ping(8)-ing over the wlan
connection.

Submitted by:	Imre Vadasz <imre@vdsz.com>
Approved by:	re@
Obtained from:	DragonflyBSD.git cc440b26818b5dfdd9af504d71c1b0e6522b53ef
Differential Revision:	https://reviews.freebsd.org/D6742
2016-06-13 00:13:20 +00:00
..
aac
aacraid
acpi_support Fix the deciKelvin to Celsius conversion in kernel. 2016-05-22 13:58:32 +00:00
acpica Fix a minor leak in ACPI thermal 2016-06-07 19:08:13 +00:00
adb
adlink
advansys
ae
age
agp
aha
ahb
ahci Add support for managing Shingled Magnetic Recording (SMR) drives. 2016-05-19 14:08:36 +00:00
aic
aic7xxx aic7xxx: minor spelling fixes. 2016-05-10 16:40:19 +00:00
alc
ale
alpm
altera Use OF_prop_free instead of direct call to free(9) 2016-05-14 18:44:30 +00:00
amdpm
amdsbwd
amdsmb
amdtemp Fix the deciKelvin to Celsius conversion in kernel. 2016-05-22 13:58:32 +00:00
amr
an Reject ioctl commands for FLSHGCHR and FLSHPCHR if the size is greater 2016-05-24 13:57:23 +00:00
arcmsr
asmc [asmc] Add support for MacBookPro5,1 2016-05-03 17:11:33 +00:00
ata
ath [ath] add a placeholder event for debuggin EDMA TX FIFO push events. 2016-06-09 22:01:05 +00:00
atkbdc Use OF_prop_free instead of direct call to free(9) 2016-05-18 23:39:31 +00:00
auxio
bce
beri
bfe
bge bge: Force chipid to 5720 A0 for 5717 C0 in an early place 2016-06-01 05:15:11 +00:00
bhnd bhnd(4): Fix mips/broadcom core matching and bus pass order. 2016-06-08 21:38:51 +00:00
bktr
bm
buslogic s/struct device */device_t/g 2016-05-04 06:24:10 +00:00
bvm
bwi bwi: switch to ieee80211_add_channel_list_2ghz(). 2016-05-26 16:48:20 +00:00
bwn [bwn] don't use a 1MB CCK RTS frame for 11a OFDM transmissions. 2016-06-06 07:09:02 +00:00
bxe Don't repeat the the word 'the' 2016-05-17 12:52:31 +00:00
cadence
cardbus
cas
ce
cesa Use proper interface for FDT parsing and memory mapping in CESA 2016-06-03 18:54:16 +00:00
cfe
cfi
ciss Update some of the TBD entries in ciss(4) to match what's in the pci 2016-05-24 01:42:21 +00:00
cm
cmx
coretemp Fix the deciKelvin to Celsius conversion in kernel. 2016-05-22 13:58:32 +00:00
cp
cpuctl Improve panic message by specifying on which cpu it really is. 2016-05-22 15:22:45 +00:00
cpufreq
cs
ct
ctau
cx
cxgb net: Use M_HASHTYPE_OPAQUE_HASH if the mbuf flowid has hash properties 2016-06-07 04:51:50 +00:00
cxgbe cxgbe(4): Add a sysctl to manage the binding of a txq to a traffic class. 2016-06-08 14:15:29 +00:00
cy
cyapa
dc
dcons
de
digi
dpaa Set the TLB caching properties for portals at attach time. 2016-05-25 01:23:19 +00:00
dpms
dpt
drm
drm2 [drm] fix up hex_dump_to_buffer to not overflow linebuf. 2016-06-03 05:01:35 +00:00
dwc Fix an issue with multicast hash filters on Amlogic and Allwinner boards. 2016-06-12 22:55:50 +00:00
e1000 net: Use M_HASHTYPE_OPAQUE_HASH if the mbuf flowid has hash properties 2016-06-07 04:51:50 +00:00
ed
eisa
en
ep
esp s/struct device */device_t/g 2016-05-04 06:24:51 +00:00
et
etherswitch Remove erroneous lock assertions 2016-06-06 10:07:57 +00:00
ex
exca
extres Rename gpiobus_map_pin() to gpiobus_acquire_pin(), to better reflect the 2016-05-26 15:45:36 +00:00
fatm
fb Fix NULL-dereference panic if VESA reports zero modes. 2016-05-17 19:00:09 +00:00
fdc Fix the acpi attachment to always start the worker thread. 2016-05-04 23:00:57 +00:00
fdt INTRNG - change the way how an interrupt mapping data are provided 2016-06-05 16:20:12 +00:00
fe
ffec Fix erronious mixed use of tx/rx variables/constants in the same expression. 2016-05-27 22:14:39 +00:00
filemon Cleanup COMPAT_FREEBSD32 support. 2016-06-05 18:16:33 +00:00
firewire Remove NULL checks after M_WAITOK allocations from firewire. 2016-05-10 10:21:03 +00:00
flash Add support for Atmel at25df641 flash 2016-06-08 14:22:16 +00:00
fxp
gem
glxiic
glxsb
gpio INTRNG: As follow up of r301451, implement mapping and configuration 2016-06-07 05:08:24 +00:00
gxemul
hatm
hifn
hme
hpt27xx
hptiop Use imin() macro from sys/libkern.h. 2016-05-04 01:43:07 +00:00
hptmv
hptnr
hptrr
hwpmc Don't panic in hwpmc when stopping sampling. 2016-05-28 13:05:39 +00:00
hyperv hyperv/vmbus: Change tx_evtflags type to u_long to match vmbus_evtflags 2016-06-08 07:47:21 +00:00
ic
ichiic Fix ig4 operation for certain machines 2016-05-30 09:05:24 +00:00
ichsmb
ichwd
ida Resolve LINT linking issue by renaming ida_init() to ida_setup(). The 2016-05-11 17:38:09 +00:00
ie
if_ndis
iicbus INTRNG - change the way how an interrupt mapping data are provided 2016-06-05 16:20:12 +00:00
iir
intpm
io
ioat ioat(4): Add ddb "show ioat <unit>" debugger command 2016-06-09 01:31:09 +00:00
ipmi
ips
ipw ipw: switch to ieee80211_add_channel() 2016-05-19 22:19:35 +00:00
isci
iscsi Consistently use 'unsigned int' for session IDs. 2016-06-09 13:04:57 +00:00
iscsi_initiator
iser Fix build on i386. 2016-05-27 11:37:02 +00:00
isl
ismt
isp Pass proper for 23xx arguments to isp_endcmd(). 2016-05-20 11:56:16 +00:00
ispfw
iwi
iwm [iwm] Fix up busdma use in the RX path 2016-06-13 00:13:20 +00:00
iwn iwn: add watchdog for scanning. 2016-05-26 11:12:36 +00:00
ixgb
ixgbe net: Use M_HASHTYPE_OPAQUE_HASH if the mbuf flowid has hash properties 2016-06-07 04:51:50 +00:00
ixl net: Use M_HASHTYPE_OPAQUE_HASH if the mbuf flowid has hash properties 2016-06-07 04:51:50 +00:00
jme
joy
kbd Use unsigned version of min() when handling arguments of SETFKEY ioctl. 2016-05-17 22:28:42 +00:00
kbdmux
ksyms
le Use OF_prop_free instead of direct call to free(9) 2016-05-18 23:39:31 +00:00
led
lge
lmc s/struct device */device_t/g 2016-05-04 06:23:49 +00:00
malo
mbox
mc146818
mca
mcd
md
mdio
mem
mfi Remove NULL check after M_WAITOK allocations from mfi(4). 2016-05-10 10:24:35 +00:00
mge
mii Add support for Atmel at25df641 flash 2016-06-08 14:22:16 +00:00
mk48txx
mlx
mlx5 Add SR-IOV guest support to the mlx5en driver. 2016-06-07 13:58:52 +00:00
mly
mmc Add DMA sync operations around accessing the dwmmc descriptor ring. Even 2016-05-13 15:15:54 +00:00
mn
mpr Remove NULL checks after M_WAITOK allocations from mpr(4). 2016-05-10 15:04:24 +00:00
mps Remove NULL checks after M_WAITOK allocations from mps(4). 2016-05-10 14:57:14 +00:00
mpt
mrsas Added support for Avago/Broadcom Cutlass(12 Gbps- 16 port count) controllers. 2016-06-02 12:26:55 +00:00
mse
msk
mvs
mwl mwl: switch to ieee80211_add_channel*(). 2016-05-19 22:28:46 +00:00
mxge mxge: Setup mbuf flowid before calling tcp_lro_rx(). 2016-05-12 03:36:49 +00:00
my
nand
ncr
nctgpio
ncv
netfpga10g/nf10bmac
netmap Don't repeat the the word 'the' 2016-05-17 12:52:31 +00:00
nfe
nfsmb
nge
nmdm
nsp
ntb When negotiating NTB_SB01BASE_LOCKUP workaround, don't try to limit the 2016-06-04 00:18:59 +00:00
null
nvd
nvme Commit the bits of nda that were missed. This should fix the build. 2016-06-10 06:04:53 +00:00
nvram
nvram2env [nvram2env] fix nvram2env to scan all of memory, not 1/4th 2016-05-23 03:51:15 +00:00
nxge nxge(4): Remove useless self-assignment. 2016-06-03 15:33:21 +00:00
oce
ofw INTRNG - change the way how an interrupt mapping data are provided 2016-06-05 16:20:12 +00:00
otus otus: minor catchup with OpenBSD. 2016-05-09 19:28:22 +00:00
ow Don't repeat the the word 'the' 2016-05-17 12:52:31 +00:00
patm
pbio
pccard
pccbb Implement a proper detach method for the PCI-PCI bridge driver. 2016-05-20 00:03:22 +00:00
pcf
pci INTRNG - change the way how an interrupt mapping data are provided 2016-06-05 16:20:12 +00:00
pcn
pdq
pms Don't repeat the the word 'the' 2016-05-17 12:52:31 +00:00
powermac_nvram
ppbus
ppc
proto
psci
pst
pty
puc
qlxgb
qlxgbe net: Use M_HASHTYPE_OPAQUE_HASH if the mbuf flowid has hash properties 2016-06-07 04:51:50 +00:00
qlxge net: Use M_HASHTYPE_OPAQUE_HASH if the mbuf flowid has hash properties 2016-06-07 04:51:50 +00:00
quicc
ral - Replace the magic numbers with something more readable. 2016-06-08 02:37:23 +00:00
random Revert previous commit, until issue with sparc64 resolved. 2016-06-09 14:44:05 +00:00
rc
rccgpio
re
rl
rndtest
rp
rt
rtwn rtwn, urtwn: drop unused structures. 2016-05-26 22:43:02 +00:00
safe
sbni
scc
scd
sdhci Add a convenience macro that masks all the bits related to clock divisors 2016-05-26 02:55:41 +00:00
sec
sf
sfxge sfxge(4): bump version to the closest out-of-tree driver version 2016-06-09 12:33:53 +00:00
sge
si
siba Switch mips/sentry5 to bhnd(4), and unify with mips/broadcom 2016-06-04 19:53:47 +00:00
siis
sio
sis
sk
smbus
smc
sn
snc
snp
sound Add support for simplex USB MIDI devices, which only provide BULK or 2016-05-31 15:05:50 +00:00
speaker
spibus [spigen] add initial spigen driver from green@ 2016-05-26 07:02:20 +00:00
ste
stg
stge
streams
sym Add a riscv define. 2016-06-01 14:03:13 +00:00
syscons
tdfx
terasic
ti
tl
tpm
trm
tsec Add an alternate compatible string for eTSEC devices. 2016-05-19 00:04:58 +00:00
twa
twe
tws
tx
txp
uart
ubsec
urtwn urtwn: reinstall group keys on every device startup. 2016-06-09 21:19:46 +00:00
usb [run] fix TSF locking in RX radiotap. 2016-06-04 07:18:39 +00:00
utopia
vge
viapm
viawd
videomode
virtio vtnet: fix panic on unload 2016-05-14 06:07:15 +00:00
vkbd
vmware/vmxnet3
vnic INTRNG - change the way how an interrupt mapping data are provided 2016-06-05 16:20:12 +00:00
vr
vt
vte
vx
vxge
watchdog
wb
wbwd
wds
wi wi: fix a typo. 2016-05-20 08:58:06 +00:00
wl
wpi
wtap
xe
xen xen/timer: re-introduce the inittodr call in the resume path 2016-06-09 16:15:01 +00:00
xilinx
xl