freebsd-dev/sys
Roger Pau Monné 339690b541 xen-netfront: fix trying to send packets with disconnected netfront
In certain circumstances xn_txq_mq_start might be called with num_queues ==
0 during the resume phase after a migration, which can trigger a KASSERT.
Fix this by making sure the carrier is on before trying to transmit, or else
return that the queues are full.

Just as a note, I haven't been able to reproduce this crash on my test
systems, but I still think it's possible and worth fixing.

Reported by:		Karl Pielorz <kpielorz_lst@tdx.co.uk>
Sponsored by:		Citrix Systems R&D
MFC after:		5 days
Reviewed by:		Wei Liu <wei.liu2@citrix.com>
Differential revision:	https://reviews.freebsd.org/D7349
2016-07-29 16:33:45 +00:00
..
amd64 Don't create pointless backups of generated files in "make sysent". 2016-07-28 21:29:04 +00:00
arm Enable the build of micphy as part of generic miibus build, but only for 2016-07-28 05:59:56 +00:00
arm64 Add a generic EHCI USB driver based on the Allwinner A10 driver. It is ACPI 2016-07-29 08:50:36 +00:00
boot Do not use TERM_EMU on arm and arm64 as it doesn't behave well with serial console. 2016-07-19 19:00:22 +00:00
bsm
cam Move protocol specific stuff into a linker set object that's 2016-07-28 22:55:21 +00:00
cddl Remove unused variables. 2016-07-29 12:29:17 +00:00
compat Don't create pointless backups of generated files in "make sysent". 2016-07-28 21:29:04 +00:00
conf Fix typo. 2016-07-29 15:24:50 +00:00
contrib Update iwmfw(4) to include support for 8260 series units and update 2016-07-25 23:05:25 +00:00
crypto Connect the SHA-512t256 and Skein hashing algorithms to ZFS 2016-05-31 04:12:14 +00:00
ddb Rewrite subr_sleepqueue.c use of callouts to not depend on the 2016-07-28 09:09:55 +00:00
dev xen-netfront: fix trying to send packets with disconnected netfront 2016-07-29 16:33:45 +00:00
fs Remove write-only variable. 2016-07-29 12:15:55 +00:00
gdb
geom Do not invoke resize method if geom is being withered. 2016-07-25 09:12:08 +00:00
gnu Revert changes for local testing, inadvertantly commited in r300811. 2016-05-26 23:59:42 +00:00
i386 Don't create pointless backups of generated files in "make sysent". 2016-07-28 21:29:04 +00:00
isa
kern Don't create pointless backups of generated files in "make sysent". 2016-07-28 21:29:04 +00:00
kgssapi
libkern
mips mips/ddb: fix MIPS backtrace truncation and MIPS32 register printing. 2016-07-12 02:12:31 +00:00
modules Include FBT to modules build on RISC-V. 2016-07-29 12:30:33 +00:00
net Hide the boottime and bootimebin globals, provide the getboottime(9) 2016-07-27 11:08:59 +00:00
net80211 [net80211] teach AMRR to log the initial MCS rate as "MCS X" 2016-07-01 19:58:13 +00:00
netgraph Get closer to a VIMAGE network stack teardown from top to bottom rather 2016-06-21 13:48:49 +00:00
netinet Call tcp_notify() directly to shoot down routes, rather than 2016-07-28 19:32:25 +00:00
netinet6 Prepare for network stack as a module 2016-07-27 20:34:09 +00:00
netipsec Get closer to a VIMAGE network stack teardown from top to bottom rather 2016-06-21 13:48:49 +00:00
netnatm
netpfil Hide the boottime and bootimebin globals, provide the getboottime(9) 2016-07-27 11:08:59 +00:00
netsmb
nfs Hide the boottime and bootimebin globals, provide the getboottime(9) 2016-07-27 11:08:59 +00:00
nfsclient
nfsserver
nlm When sleeping waiting for either local or remote advisory lock, 2016-06-26 20:08:42 +00:00
ofed Fix bug in iwcm that caused a panic in iw_cm_wq when krping is run 2016-06-14 20:58:05 +00:00
opencrypto
pc98
powerpc Use label math instead of hard-coding offsets for return addresses. 2016-07-23 02:27:42 +00:00
riscv Update comments for the MD functions managing contexts for new 2016-06-16 12:05:44 +00:00
rpc Hide the boottime and bootimebin globals, provide the getboottime(9) 2016-07-27 11:08:59 +00:00
security Add AUE_WAIT6 handling to the BSM conversion switch statement, reusing 2016-07-11 13:06:17 +00:00
sparc64 Update comments for the MD functions managing contexts for new 2016-06-16 12:05:44 +00:00
sys Remove BSD and USL copyright and update license block in in_prot.c, as the 2016-07-28 18:39:30 +00:00
teken
tests
tools
ufs Ensure that the UFS directory vnode' vm_object is properly sized 2016-07-20 14:40:56 +00:00
vm Remove any mention of cache (PG_CACHE) pages from the comments in 2016-07-28 22:30:48 +00:00
x86 Don't print same value twice, one in decimal once in hex. This makes 2016-07-18 03:59:03 +00:00
xdr
xen xen: Correct typo in #undef for symbol NBPL 2016-06-06 14:55:46 +00:00
Makefile