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
F102068410: D45758.diff
Thu, Nov 7, 5:37 AM
Unknown Object (File)
Tue, Oct 22, 6:26 PM
Unknown Object (File)
Tue, Oct 22, 6:18 PM
Unknown Object (File)
Tue, Oct 22, 6:18 PM
Unknown Object (File)
Mon, Oct 21, 12:27 AM
Unknown Object (File)
Mon, Oct 21, 12:27 AM
Unknown Object (File)
Mon, Oct 21, 12:27 AM
Unknown Object (File)
Mon, Oct 21, 12:27 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 Skipped
Unit
Tests Skipped

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.Sat, Oct 12, 1:39 PM
This revision was automatically updated to reflect the committed changes.