Page MenuHomeFreeBSD

if_bridge: count the drops of the fragmentation path
ClosedPublic

Authored by netchild on Fri, Sep 4, 1:52 PM.
Tags
None
Referenced Files
F171583174: D59391.id185821.diff
Fri, Sep 11, 10:00 PM
F171519875: D59391.diff
Fri, Sep 11, 2:05 PM
Unknown Object (File)
Thu, Sep 10, 10:00 PM
Unknown Object (File)
Thu, Sep 10, 8:14 AM
Unknown Object (File)
Thu, Sep 10, 1:12 AM
Unknown Object (File)
Wed, Sep 9, 6:36 AM
Unknown Object (File)
Tue, Sep 8, 9:52 PM
Unknown Object (File)
Tue, Sep 8, 7:22 PM
Subscribers

Details

Summary

Add error counter handling in bridge_fragment().

Assisted-by: Claude Code (Fable 5, Opus 5)

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 76572
Build 73455: arc lint + arc unit

Event Timeline

netchild held this revision as a draft.
netchild published this revision for review.Fri, Sep 4, 1:53 PM

The following part may need to get a rework for this change... investigating...

		default:
			if (V_pfil_onlyip)
				goto bad;

rework: the bad: counter is removed; only the fragmentation path is counted

netchild retitled this revision from if_bridge: count the packets bridge_pfil() drops on error to if_bridge: count the drops of the fragmentation path.Sat, Sep 5, 5:23 PM
netchild edited the summary of this revision. (Show Details)

The bad: label in the previous revision gets called for ether types 0x88e1 (HomePlug AV management frames) and 0x8912 (not named in sys/net/ethernet.h) via the default: case and with net.link.bridge.pfil_onlyip=1. This looks to me like a policy drop and not an error path. As such I removed that part. Correct me if I get this wrong... (447 such packets in 300s doesn't not sound like an error to me).

This revision is now accepted and ready to land.Tue, Sep 8, 12:14 PM