Vincenzo Maffione 0ff2126795 iflib: netmap: fix rsync index overrun
In the current iflib_netmap_rxsync, there is nothing that prevents
kring->nr_hwtail to overrun kring->nr_hwcur during the descriptor
import phase. This may cause errors in netmap applications, such as:

em1 RX0: fail 'head < kring->nr_hwcur || head > kring->nr_hwtail'
    h 795 c 795 t 282 rh 795 rc 795 rt 282 hc 282 ht 282

Reviewed by:	gallatin
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D25252
2020-06-23 20:23:56 +00:00
..
2020-04-24 01:27:25 +00:00
2020-06-21 03:39:26 +00:00
2020-06-04 17:20:58 +00:00
2020-06-22 07:46:24 +00:00
2020-05-23 17:51:06 +00:00
2020-06-21 03:39:26 +00:00
2020-06-21 03:39:26 +00:00
2020-06-21 02:49:56 +00:00
2020-02-03 17:35:11 +00:00