]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
netmap: Fix a queue length check in the generic port rx path
authorMark Johnston <markj@FreeBSD.org>
Mon, 23 Jan 2023 19:41:55 +0000 (14:41 -0500)
committerMark Johnston <markj@FreeBSD.org>
Mon, 23 Jan 2023 19:41:55 +0000 (14:41 -0500)
commit539437c8281d24450bacded3734276acd9983e90
tree6034c774062c9402257b70e61efe554d0642aa47
parent56c438fcd4a755f0abe8254779c39a0c4b530c75
netmap: Fix a queue length check in the generic port rx path

The check is ok by default, since the default value of
netmap_generic_ringsize is 1024.  But we should check against the
configured "ring" size.

Reviewed by: vmaffione
MFC after: 1 week
Sponsored by: Zenarmor
Sponsored by: OPNsense
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D38062
sys/dev/netmap/netmap_generic.c