]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ixgbe: Restore AIM support
authorSai Rajesh Tallamraju <stallamr@netapp.com>
Mon, 3 May 2021 17:45:00 +0000 (13:45 -0400)
committerMark Johnston <markj@FreeBSD.org>
Mon, 17 May 2021 02:21:10 +0000 (22:21 -0400)
commitc9361f2fb0fb76521c7354ffe73d57d72172a661
tree99cd27d0b7bb60a60b02c0899caf799d636067bd
parent2e762b02521c8d189f568ddf14cda025e40bb1ef
ixgbe: Restore AIM support

AIM (adaptive interrupt moderation) was part of BSD11 driver. Upon IFLIB
migration, AIM feature got lost. Re-introducing AIM back into IFLIB
based IXGBE driver.

One caveat is that in BSD11 driver, a queue comprises both Rx and Tx
ring. Starting from BSD12, Rx and Tx have their own queues and rings.
Also, IRQ is now only configured for Rx side. So, when AIM is
re-enabled, we should now consider only Rx stats for configuring EITR
register in contrast to BSD11 where Rx and Tx stats were considered to
manipulate EITR register.

Reviewed by: gallatin, markj
Sponsored by: NetApp, Inc.
Differential Revision: https://reviews.freebsd.org/D27344

(cherry picked from commit 64881da478071431a2d9e62613997a5772c56cdf)
sys/dev/ixgbe/if_ix.c
sys/dev/ixgbe/ixgbe.h