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)
Nov 26 2024, 6:48 AM
Unknown Object (File)
Nov 26 2024, 6:39 AM
Unknown Object (File)
Nov 26 2024, 6:37 AM
Unknown Object (File)
Nov 26 2024, 4:33 AM
Unknown Object (File)
Nov 19 2024, 7:41 AM
Unknown Object (File)
Nov 13 2024, 3:58 PM
Unknown Object (File)
Nov 7 2024, 7:44 AM
Unknown Object (File)
Nov 7 2024, 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.