freebsd-dev/sys
Stephen Hurd 2d873474b2 Fix PR222744 - netmap errors with iflib em driver
Fix error when refilling netmap buffers that resulted in the first
buffer of the successive passes through ifl_bus_addrs[] leaving the
first value unset (tmp_pidx started at 1, not zero after the first time
through the loop).

Leave the one unused buffer required by some NICs visible in the netmap
ring rather than hidden. There will always be a buffer in use by the
kernel now when an iflib driver is used via netmap.

Always get the netmap slot index via netmap_idx_n2k() to account for
nkr_hwofs in a consistent way.

Split shared functionality into new functions.
iru_init(): shared by _iflib_fl_refill() and netmap_fl_refill()
netmap_fl_refill(): shared by iflib_netmap_rxsync() and
iflib_netmap_rxq_init()

PR:		222744
Reported by:	Shirkdog <mshirk@daemon-security.com>
Reviewed by:	sbruno
Approved by:	sbruno (mentor)
Sponsored by:	Limelight Networks
Differential Revision:	https://reviews.freebsd.org/D12769
2017-10-30 21:14:31 +00:00
..
amd64 Improve the performance of the hpet timer in bhyve guests by making the 2017-10-29 20:50:03 +00:00
arm Update several more URLs 2017-10-29 08:17:03 +00:00
arm64 Update several more URLs 2017-10-29 08:17:03 +00:00
boot Use defs.mk defins in most MD code 2017-10-30 03:12:28 +00:00
bsm
cam Send IDLE IMMEDIATE for warm boot. 2017-10-30 03:25:22 +00:00
cddl Fix the error message when creating a zpool on a too-small device 2017-10-23 23:05:29 +00:00
compat Update comment to match r177997 & r178036 changes. 2017-10-27 16:36:05 +00:00
conf Remove unnecessary C in .fwo file I accidentally made consistent 2017-10-30 06:51:03 +00:00
contrib Update DPAA SDK to SDK 2.0 2017-10-30 03:41:04 +00:00
crypto aesni(4): CRYPTO_AES_NIST_GCM_16 mandates MAC 2017-10-04 21:15:45 +00:00
ddb Rename mkdumpheader() and group EKCD functions in kern_shutdown.c. 2017-08-18 04:04:09 +00:00
dev rtwn_usb(4): add few USB IDs. 2017-10-30 08:57:08 +00:00
fs Fix physical block number overflow in different places. 2017-10-24 20:10:08 +00:00
gdb gdb kernel server: fixup Search:memory style 2017-10-17 01:12:17 +00:00
geom Add back missing MTX_DEF, it still needs to be there. 2017-10-29 12:03:06 +00:00
gnu dts: Update our device tree sources file fomr Linux 4.13 2017-10-21 15:47:40 +00:00
i386 Update several more URLs 2017-10-29 08:17:03 +00:00
isa Use better hard-coded defaults for the cursor shape, and remove nearby 2017-08-19 19:33:16 +00:00
kern Discard the correct thread event reported for a ptrace stop. 2017-10-27 03:16:19 +00:00
kgssapi
libkern Continuing efforts to provide hardening of FFS, this change adds a 2017-09-22 12:45:15 +00:00
mips Update several more URLs 2017-10-29 08:17:03 +00:00
modules Enable i386 build of the Cavium LiquidIO driver (lio) module. 2017-10-25 17:49:17 +00:00
net Fix PR222744 - netmap errors with iflib em driver 2017-10-30 21:14:31 +00:00
net80211 [net80211] don't try to follow a NULL rxs pointer down the sink. 2017-10-13 06:49:07 +00:00
netgraph Correction after r323873: #include <sys/lock.h> in addition to <sys/rmlock.h> 2017-09-28 11:26:37 +00:00
netinet Fix parsing error when processing cmsg in SCTP send calls. Thei bug is 2017-10-27 19:27:05 +00:00
netinet6 Evaluate packet size after the firewall had its chance in the ip6 fast path 2017-10-25 19:21:48 +00:00
netipsec opencrypto: Loosen restriction on HMAC key sizes 2017-09-26 16:18:10 +00:00
netpfil Fix Dummynet AQM packet marking function ecn_mark() and fq_codel / 2017-10-26 10:11:35 +00:00
netsmb netsmb: Fix buggy/racy smb_strdupin() 2017-09-29 15:53:26 +00:00
nfs
nfsclient
nfsserver
nlm
ofed The remote DMA TCP portspace selector, RDMA_PS_TCP, is used for both 2017-10-20 08:20:15 +00:00
opencrypto crypto(9): Print flags in more useful hex 2017-10-11 20:04:30 +00:00
powerpc Update DPAA SDK to SDK 2.0 2017-10-30 03:41:04 +00:00
riscv Update several more URLs 2017-10-29 08:17:03 +00:00
rpc
security Sprinkle __read_frequently on few obvious places. 2017-09-06 20:33:33 +00:00
sparc64 Update several more URLs 2017-10-29 08:17:03 +00:00
sys Add a #define RESOURCE_SPEC_END. Similar to DEVMETHOD_END and 2017-10-28 18:56:27 +00:00
teken Fix syscons escape sequence for setting the local cursor type. This sequence 2017-08-18 15:40:40 +00:00
tests
tools embed_mfs: add error handling, usage 2017-10-17 21:13:26 +00:00
ufs Remove a stale and incorrect comment. 2017-10-28 02:51:27 +00:00
vm Micro-optimize the handling of fictitious pages in vm_page_free_prep(). 2017-10-24 17:14:53 +00:00
x86 Add AT_HWCAP2 ELF auxiliary vector. 2017-10-21 12:05:01 +00:00
xdr
xen
Makefile