]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ixgbe(4): Fix enabling/disabling and reconfiguration of queues
authorEric Joyner <erj@FreeBSD.org>
Tue, 23 Jul 2019 18:14:32 +0000 (18:14 +0000)
committerKevin Bowling <kbowling@FreeBSD.org>
Sun, 3 Oct 2021 01:53:12 +0000 (18:53 -0700)
commitcfb3a1dee11c776a6aedd1c8fb3f86f9b7240e9a
tree36b575c9eb90aa7ef0087c288b1a40fcb795792a
parent90e279aecd64859bda63828e817df39485ffd9ef
ixgbe(4): Fix enabling/disabling and reconfiguration of queues

- Wrong order of casting and bit shift caused that enabling and disabling
  queues didn't work properly for queues number larger than 32. Use literals
  with right suffix instead.

- TX ring tail address was not updated during reinitiailzation of TX
  structures. It could block sending traffic.

- Also remove unused variables 'eims' and 'active_queues'.

Submitted by: Krzysztof Galazka <krzysztof.galazka@intel.com>
Reviewed by: erj@
Sponsored by: Intel Corporation
Differential Revision: https://reviews.freebsd.org/D20826

(cherry picked from commit 2dc2d580354e95491a033fa9e21c8ef0cbd9bc42)
sys/dev/ixgbe/if_ix.c
sys/dev/ixgbe/if_ixv.c
sys/dev/ixgbe/ixgbe.h