Summary: | igb(4) double counting ingress traffic | ||
---|---|---|---|
Product: | Base System | Reporter: | Daniel Ponte <amigan> |
Component: | kern | Assignee: | Mark Johnston <markj> |
Status: | Closed FIXED | ||
Severity: | Affects Many People | CC: | amigan, eborisch+FreeBSD, markj, net, nyan |
Priority: | --- | Keywords: | IntelNetworking |
Version: | 13.0-STABLE | Flags: | koobs:
mfc-stable13+
|
Hardware: | amd64 | ||
OS: | Any |
Description
Daniel Ponte
2021-02-17 12:41:58 UTC
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=b6999635b195e8c0dd5c08ac9ff268c92107cc66 commit b6999635b195e8c0dd5c08ac9ff268c92107cc66 Author: Mark Johnston <markj@FreeBSD.org> AuthorDate: 2021-02-24 15:08:53 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2021-02-24 15:08:53 +0000 iflib: Avoid double counting in rxeof iflib_rxeof() was counting everything twice. This was introduced when pfil hooks were added to the iflib receive path. We want to count rx packets/bytes before the pfil hooks are executed, so remove the counter adjustments that are executed after. PR: 253583 Reviewed by: gallatin, erj MFC after: 3 days Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D28900 sys/net/iflib.c | 2 -- 1 file changed, 2 deletions(-) I have cherry-picked this into my local stable/13 and can also confirm that this fixes the issue. *** Bug 253836 has been marked as a duplicate of this bug. *** A commit in branch stable/13 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=76294b65df64e87f29a7d7df23c5360dd9ada5aa commit 76294b65df64e87f29a7d7df23c5360dd9ada5aa Author: Mark Johnston <markj@FreeBSD.org> AuthorDate: 2021-02-24 15:08:53 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2021-02-27 16:07:46 +0000 iflib: Avoid double counting in rxeof iflib_rxeof() was counting everything twice. This was introduced when pfil hooks were added to the iflib receive path. We want to count rx packets/bytes before the pfil hooks are executed, so remove the counter adjustments that are executed after. PR: 253583 Reviewed by: gallatin, erj Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D28900 (cherry picked from commit b6999635b195e8c0dd5c08ac9ff268c92107cc66) sys/net/iflib.c | 2 -- 1 file changed, 2 deletions(-) A commit in branch releng/13.0 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=18b6283014a291f5fe546092ee16d774a0102691 commit 18b6283014a291f5fe546092ee16d774a0102691 Author: Mark Johnston <markj@FreeBSD.org> AuthorDate: 2021-02-24 15:08:53 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2021-02-28 20:51:21 +0000 iflib: Avoid double counting in rxeof iflib_rxeof() was counting everything twice. This was introduced when pfil hooks were added to the iflib receive path. We want to count rx packets/bytes before the pfil hooks are executed, so remove the counter adjustments that are executed after. Approved by: re (gjb) PR: 253583 Reviewed by: gallatin, erj Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D28900 (cherry picked from commit b6999635b195e8c0dd5c08ac9ff268c92107cc66) (cherry picked from commit 76294b65df64e87f29a7d7df23c5360dd9ada5aa) sys/net/iflib.c | 2 -- 1 file changed, 2 deletions(-) *** Bug 253958 has been marked as a duplicate of this bug. *** |