freebsd-nq/sys
Conrad Meyer 4994fe1295 NTB: MFV da2e5ae5: Fix ntb_transport out-of-order RX update
It was possible for a synchronous update of the RX index in the error
case to get ahead of the asynchronous RX index update in the normal
case.  Change the RX processing to preserve an RX completion order.

There were two error cases.  First, if a buffer is not present to
receive data, there would be no queue entry to preserve the RX
completion order.  Instead of dropping the RX frame, leave the RX frame
in the ring.  Schedule RX processing when RX entries are enqueued, in
case there are RX frames waiting in the ring to be received.

Second, if a buffer is too small to receive data, drop the frame in the
ring, mark the RX entry as done, and indicate the error in the RX entry
length.  Check for a negative length in the receive callback in
ntb_netdev, and count occurrences as rx_length_errors.

Authored by:	Allen Hubbe
Obtained from:	Linux (Dual BSD/GPL driver)
Sponsored by:	EMC / Isilon Storage Division
2015-10-20 19:20:42 +00:00
..
amd64 Remove compatibility shims for legacy ATA device names. 2015-10-11 13:01:51 +00:00
arm Uncomment some rather important code that was commented out for benchmarking. 2015-10-20 15:15:30 +00:00
arm64 Use 4 levels of page tables when enabling the MMU. This will allow us to 2015-10-19 13:20:23 +00:00
boot Change gptldr from relocating 0xfff1 bytes of boot2 to relocating 0x20000 2015-10-08 15:38:34 +00:00
bsm
cam Make delete method set via kern.cam.da.X.delete_method persistent. 2015-10-11 18:26:06 +00:00
cddl MFV r289561: 6328 Fix cstyle errors in zfs codebase 2015-10-19 08:25:37 +00:00
compat Properly format pointer size independent CloudABI system calls. 2015-10-08 05:27:45 +00:00
conf Introduce driver for Cavium's ThunderX MDIO 2015-10-18 22:10:08 +00:00
contrib Really fix ipfilter bug 3600459. 2015-10-18 03:09:03 +00:00
crypto const'ify an arg that we don't update... 2015-07-29 23:37:15 +00:00
ddb Make kstack_pages a tunable on arm, x86, and powepc. On i386, the 2015-08-10 17:18:21 +00:00
dev NTB: MFV da2e5ae5: Fix ntb_transport out-of-order RX update 2015-10-20 19:20:42 +00:00
fs Ensure that when a blockable open of fifo returns success, a valid 2015-09-20 21:18:33 +00:00
gdb
geom Remove compatibility shims for legacy ATA device names. 2015-10-11 13:01:51 +00:00
gnu Fixing a memory leak on module unloading. 2015-09-11 22:43:35 +00:00
i386 Remove compatibility shims for legacy ATA device names. 2015-10-11 13:01:51 +00:00
isa
kern Switch pl_child_pid from int to pid_t. 2015-10-20 17:58:21 +00:00
kgssapi
libkern Add the __aeabi_memclr8 symbol, clang 3.7 uses this. 2015-09-21 18:35:32 +00:00
mips Remove geom_uncompress from TP-MR3020 config. Its now using root on USB 2015-10-18 18:41:30 +00:00
modules Update firmware images for Qlogic 24xx/25xx from 5.5.0 to 7.3.0. 2015-10-20 12:27:59 +00:00
net Remove several compat functions from pre-fib era. 2015-10-17 17:26:44 +00:00
net80211 net80211: move ieee80211_free_node() call on error from ic_raw_xmit() to ieee80211_raw_output(). 2015-10-12 04:55:20 +00:00
netgraph Add support for PPP-Max-Payload PPPoE tag (RFC4638). 2015-09-11 09:15:27 +00:00
netinet Use __func__ instead of __FUNCTION__. 2015-10-19 11:17:54 +00:00
netinet6 Invoke lle_event for new entry iff it has lladdr set. 2015-10-04 19:10:27 +00:00
netipsec Take extra reference to security policy before calling crypto_dispatch(). 2015-09-30 08:16:33 +00:00
netnatm
netpfil pf: Fix TSO issues 2015-10-14 16:21:41 +00:00
netsmb
nfs Wait up to 10 seconds for late-initializing network interfaces to arrive. 2015-09-26 13:55:55 +00:00
nfsclient
nfsserver
nlm
ofed Move location of RCS keyword according to style. 2015-10-20 19:08:26 +00:00
opencrypto Make IPsec work with AES-GCM and AES-ICM (aka CTR) in OCF... IPsec 2015-08-04 17:47:11 +00:00
pc98 Remove compatibility shims for legacy ATA device names. 2015-10-11 13:01:51 +00:00
powerpc Use IIC_EBUSBSY and IIC_BUSERR status values consistantly across all drivers. 2015-10-09 22:49:50 +00:00
rpc Increase group limit for kerberized NFSv4 2015-09-26 16:30:16 +00:00
security fd: make 'rights' a manadatory argument to fget* functions 2015-07-05 19:05:16 +00:00
sparc64 Add support for weak symbols to the kernel linkers. It means that 2015-09-20 01:27:59 +00:00
sys Switch pl_child_pid from int to pid_t. 2015-10-20 17:58:21 +00:00
teken Sync HPA and VPA implementations with CUP. 2015-08-24 07:49:27 +00:00
tools Rename the /usr/share/doc/legal files to driver.LICENSE to work around 2015-10-16 00:38:05 +00:00
ufs Do not relocate extents to make them contiguous if the underlying drive can do 2015-10-16 03:06:02 +00:00
vm Only marker is guaranteed to be present on the queue after the relock 2015-10-18 09:33:28 +00:00
x86 Don't page-align the physical address when calling PHYS_TO_VM_PAGE(). 2015-10-17 14:58:55 +00:00
xdr
xen xen/console: Introduce a new console driver for Xen guest 2015-10-08 16:39:43 +00:00
Makefile