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
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
Unknown Object (File)
Oct 22 2024, 6:26 PM
Unknown Object (File)
Oct 22 2024, 6:18 PM
Unknown Object (File)
Oct 22 2024, 6:18 PM
Unknown Object (File)
Oct 21 2024, 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.Oct 12 2024, 1:39 PM
This revision was automatically updated to reflect the committed changes.