Page MenuHomeFreeBSD

if_tuntap: minor improvements
ClosedPublic

Authored by vmaffione on Aug 17 2019, 1:12 PM.
Tags
None
Referenced Files
F167762060: D21302.id61004.diff
Mon, Aug 24, 8:54 AM
F167761742: D21302.diff
Mon, Aug 24, 8:51 AM
Unknown Object (File)
Fri, Aug 21, 2:07 PM
Unknown Object (File)
Fri, Aug 21, 1:21 PM
Unknown Object (File)
Thu, Aug 20, 8:07 PM
Unknown Object (File)
Wed, Aug 19, 5:15 PM
Unknown Object (File)
Tue, Aug 18, 8:23 PM
Unknown Object (File)
Wed, Aug 12, 6:48 AM
Subscribers

Details

Summary

Rewrite a loop to avoid duplicating the exit condition.
Simplify mask processing in tunpoll().
Fix minor typos.

Test Plan

Tested with a bhyve tap configuration on HEAD.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

vmaffione added a reviewer: markj.
markj added inline comments.
sys/net/if_tuntap.c
113 ↗(On Diff #60933)

I would just rename to TUN_UNUSED1, or remove it outright.

This revision is now accepted and ready to land.Aug 19 2019, 4:14 PM
sys/net/if_tuntap.c
113 ↗(On Diff #60933)

+1 for remove it

vmaffione added inline comments.
sys/net/if_tuntap.c
113 ↗(On Diff #60933)

Sounds good, I'll do.

This revision was automatically updated to reflect the committed changes.