Page MenuHomeFreeBSD

if_enc(4): Use new KPI to create enc interface
ClosedPublic

Authored by zlei on Jun 27 2024, 4:18 PM.
Tags
None
Referenced Files
F103539974: D45758.id140308.diff
Tue, Nov 26, 6:48 AM
F103539539: D45758.id144713.diff
Tue, Nov 26, 6:39 AM
F103539414: D45758.id144389.diff
Tue, Nov 26, 6:37 AM
F103532108: D45758.diff
Tue, Nov 26, 4:33 AM
Unknown Object (File)
Tue, Nov 19, 7:41 AM
Unknown Object (File)
Wed, Nov 13, 3:58 PM
Unknown Object (File)
Thu, Nov 7, 7:44 AM
Unknown Object (File)
Thu, Nov 7, 5:37 AM
Subscribers

Details

Summary

This driver only allow exactly one instance to be created. Clone
creating additional interfaces will get error EEXIST which is somewhat
confusing.

Convert to new KPI so we can get less confusing error ENOSPC.

MFC after: 1 week

Test Plan

Before the change:

# ifconfig enc create
ifconfig: interface enc already exists
# ifconfig enc1 create
ifconfig: interface enc1 already exists

After the change:

ifconfig enc create
ifconfig: SIOCIFCREATE2 (enc): No space left on device
# ifconfig enc1 create
ifconfig: SIOCIFCREATE2 (enc1): No space left on device

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

zlei edited the summary of this revision. (Show Details)

Rebased to latest main.

This revision was not accepted when it landed; it landed in state Needs Review.Oct 12 2024, 1:39 PM
This revision was automatically updated to reflect the committed changes.