Page MenuHomeFreeBSD

udp: Do not recursively enter net epoch
Needs ReviewPublic

Authored by zlei on Tue, Mar 4, 9:51 AM.

Details

Reviewers
glebius
ae
Group Reviewers
network
transport
Summary

The only caller udp_send() has already entered net epoch before invoking
udp_v4mapped_pktinfo().

No functional change intended.

This partially reverts commit d74b7baeb0d4 (ifnet_byindex() actually
requires network epoch).

MFC after: 1 week

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

zlei requested review of this revision.Tue, Mar 4, 9:51 AM

Didn't do a full examination of all stacks, the change by itself should be correct. If any code path triggers the new assertion, that path needs to be fixed.