Bug 270628 - ifconfig destroy epair parent not destroying child vlan sub-interfaces
Summary: ifconfig destroy epair parent not destroying child vlan sub-interfaces
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: Unspecified
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-net (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-03 17:16 UTC by Jose Luis Duran
Modified: 2023-07-29 03:08 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jose Luis Duran 2023-04-03 17:16:58 UTC
When creating vlan sub-interfaces from an epair, and then destroying the parent epair interface, the child interfaces are not destroyed:

# ifconfig epair create
epair0a

# ifconfig epair0a.1 create
# ifconfig -l
... epair0a epair0b epair0a.1

# ifconfig epair0a destroy
# ifconfig -l
... epair0a.1
Comment 1 Mina Galić freebsd_triage 2023-04-03 17:25:45 UTC
is this on CURRENT only?
that is: is this a (netlink related) regression?
Comment 2 Jose Luis Duran 2023-04-03 17:30:29 UTC
(In reply to Mina Galić from comment #1)
This issue is present on every supported FreeBSD version.  It is not related to netlink.
Comment 3 Jose Luis Duran 2023-04-03 19:56:05 UTC
(In reply to Mina Galić from comment #1)
Although on netlink it complains upon create/destroy:
[nl_iface] get_operstate_ether: error calling SIOCGIFMEDIA on epair0a.1: 22