]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
iflib: Fix some nits in the rx refill code.
authormarkj <markj@FreeBSD.org>
Mon, 6 Jul 2020 14:52:21 +0000 (14:52 +0000)
committermarkj <markj@FreeBSD.org>
Mon, 6 Jul 2020 14:52:21 +0000 (14:52 +0000)
commitf995bf94fb13f02623dcb11b0d3b5be5364575dd
treec9df4389e13e3c7222cf003bc11b98642c85b0de
parent3138bc5a4423376aeec56d492edba09459db1ce5
iflib: Fix some nits in the rx refill code.

- Get rid of the ifl_vm_addrs array.  It is not used by any existing
  consumer, so we are just dirtying a couple of cache lines for no
  reason.
- Use uma_zalloc(fl->ifl_zone) instead of m_cljget().  Otherwise
  m_cljget() is doing unnecessary work to look up the correct zone, when
  iflib already knows what that zone is.
- ifl_gen is only used when INVARIANTS is on, so make that more clear.
- Fix some style nits and inconsistencies.

Reviewed by: gallatin
Tested by: pho
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D25490
sys/net/iflib.c
sys/net/iflib.h