#
f7423a12 |
| 25-Nov-2022 |
knakahara <knakahara@NetBSD.org> |
Support explicit unnumbered interface.
Currently, NetBSD supports implicit unnumbered interface by setting the same IP address to two interfaces. However, such interface is not treated as unnumbere
Support explicit unnumbered interface.
Currently, NetBSD supports implicit unnumbered interface by setting the same IP address to two interfaces. However, such interface is not treated as unnumbered when one of the interfaces is being changed and has been changed IP address. That behavior can be harmful for some routing daemons.
show more ...
|
#
a399bebb |
| 24-Oct-2022 |
msaitoh <msaitoh@NetBSD.org> |
Make ifq_drops in struct ifqueue and struct ifaltq 64 bit.
|
#
56173ca8 |
| 18-Sep-2022 |
martin <martin@NetBSD.org> |
Typo in comment
|
#
d10e2ccb |
| 03-Sep-2022 |
thorpej <thorpej@NetBSD.org> |
Garbage-collect the remaining vestiges of netisr.
|
#
0f5556e3 |
| 20-Aug-2022 |
riastradh <riastradh@NetBSD.org> |
ifnet(9): Defer if_watchdog (a.k.a. if_slowtimo) to workqueue.
This is necessary to make mii_down and the *_init/stop routines that call it to sleep waiting for MII callouts on other CPUs.
Mark the
ifnet(9): Defer if_watchdog (a.k.a. if_slowtimo) to workqueue.
This is necessary to make mii_down and the *_init/stop routines that call it to sleep waiting for MII callouts on other CPUs.
Mark the workqueue and callout MP-safe; only take the kernel lock around the callback.
No kernel bump despite change to struct ifnet because the change is ABI-compatible and using the callout outside net/if.c has never been kosher.
show more ...
|
#
4d9ce966 |
| 28-Jul-2022 |
skrll <skrll@NetBSD.org> |
Trailing whitespace
|
#
5bc4e2d4 |
| 20-Jun-2022 |
yamaguchi <yamaguchi@NetBSD.org> |
bpf(4): added support for VLAN hardware offloading of ethernet devices
|
#
3a942150 |
| 20-Jun-2022 |
yamaguchi <yamaguchi@NetBSD.org> |
Handling frames that vlan id is 0 as non-VLAN frames even if a vlan tag is stripped by harware offloading
|
#
4fb1ab88 |
| 31-Dec-2021 |
riastradh <riastradh@NetBSD.org> |
sys/net: New functions if_ioctl, if_init, and if_stop.
These are wrappers, suitable for inserting appropriate kasserts regarding the API's locking contract, for the corresponding functions in struct
sys/net: New functions if_ioctl, if_init, and if_stop.
These are wrappers, suitable for inserting appropriate kasserts regarding the API's locking contract, for the corresponding functions in struct ifnet.
Since these are intended to commit configuration changes to the interface, which may involve resetting the device, the caller should hold IFNET_LOCK. However, I can't straightforwardly prove that all callers do yet, so the assertion is disabled for now.
show more ...
|
#
5f7fa578 |
| 30-Sep-2021 |
yamaguchi <yamaguchi@NetBSD.org> |
net: obsolete ifnet::if_link_state_chenged that was used for updating link-state of vlan I/F
The obsoleted function is replaced with ifnet::if_linkstate_hooks
|
#
f7e30801 |
| 30-Sep-2021 |
yamaguchi <yamaguchi@NetBSD.org> |
Provide a hook point called at change of link state
|
#
f601868c |
| 30-Sep-2021 |
yamaguchi <yamaguchi@NetBSD.org> |
Replace ifnet::if_agriprivate with ifnet::if_lagg
agr(4) and lagg(4) can not be used on the same interface so that if_agrprivate and if_lagg are not used at the same time. For resolve this wasteful,
Replace ifnet::if_agriprivate with ifnet::if_lagg
agr(4) and lagg(4) can not be used on the same interface so that if_agrprivate and if_lagg are not used at the same time. For resolve this wasteful, if_lagg is used in not only lagg(4) but also agr(4).
After this modification, if_lagg has 3 states: 1. if_lagg == NULL - Both agr(4) and lagg(4) are not running on the interface 2. if_lagg != NULL && ifp->if_type != IFT_IEEE8023ADLAG - agr(4) is running on the I/F 3. if_lagg != NULL && ifp->if_type == IFT_IEEE8023ADLAG - lagg(4) is running on the I/F
show more ...
|
#
a0b1e536 |
| 09-Aug-2021 |
andvar <andvar@NetBSD.org> |
fix various typos in compatibility, mainly in comments.
|
#
36fb760d |
| 29-Jun-2021 |
riastradh <riastradh@NetBSD.org> |
Make if_stats_init, if_attach, if_initialize return void.
percpu_alloc can't fail.
Author: Maya Rashish <maya@NetBSD.org> Committer: Taylor R Campbell <riastradh@NetBSD.org>
|
#
20274667 |
| 17-May-2021 |
yamaguchi <yamaguchi@NetBSD.org> |
Add a new link-aggregation pseudo interface named lagg(4)
- FreeBSD's lagg(4) based implementation - MP-safe and MP-scalable
|
#
0146c18b |
| 15-Oct-2020 |
roy <roy@NetBSD.org> |
net: remove IFEF_NO_LINK_STATE_CHANGE
This flag was only set for virtual interfaces. All virtual interfaces have a means of knowing if they are going to work or not and as such now support link stat
net: remove IFEF_NO_LINK_STATE_CHANGE
This flag was only set for virtual interfaces. All virtual interfaces have a means of knowing if they are going to work or not and as such now support link state changes.
If we want this flag back, it should be used as an indicator that the interfaces does not support link state changes that userland can use so it can make a decision on what to do when the link state is UNKNOWN.
show more ...
|
#
71f94476 |
| 27-Sep-2020 |
roy <roy@NetBSD.org> |
bridge: When an interface joins then mark addresses on it as tentative
The exact flow is detatch addresses, join bridge and then mark detached addresses as tentative. This ensures that Duplicate Add
bridge: When an interface joins then mark addresses on it as tentative
The exact flow is detatch addresses, join bridge and then mark detached addresses as tentative. This ensures that Duplicate Address Detection for the joining interface are performed across all members of the bridge.
show more ...
|
#
744a7d66 |
| 26-Sep-2020 |
roy <roy@NetBSD.org> |
net: Add a callback to ifnet to notify of link state changes
|
#
242a4dfa |
| 26-Sep-2020 |
roy <roy@NetBSD.org> |
net: Fix the setting of if_link_state
Link state changes are not dependant on the interface being up, but we also need to guard against more link state changes being scheduled when the interface is
net: Fix the setting of if_link_state
Link state changes are not dependant on the interface being up, but we also need to guard against more link state changes being scheduled when the interface is being detached.
We do this by clearing the link queue but keeping if_link_sheduled = true. We can check for this in both if_link_state_change() and if_link_state_change_work() to abort early as there is no point in doing anything if the interface is being detached because if_down() is called in if_detach() after the workqueue has been drained to the same overall effect.
show more ...
|
#
e2b42c7a |
| 22-Sep-2020 |
roy <roy@NetBSD.org> |
ifconfig: Report link state even if media is not supported
For AF_LINK addrs from getifaddrs(2), ifa_data is struct if_data. This in turn holds ifi_link_state which we can use to report link status
ifconfig: Report link state even if media is not supported
For AF_LINK addrs from getifaddrs(2), ifa_data is struct if_data. This in turn holds ifi_link_state which we can use to report link status if the interface does not support media where it's normally reported.
Based on OpenBSD.
show more ...
|
#
a381972a |
| 28-Aug-2020 |
ozaki-r <ozaki-r@NetBSD.org> |
net: introduce IFQ_ENQUEUE_ISR to assemble packet queuing routines (NFCI)
|
#
b819064b |
| 05-May-2020 |
jdolecek <jdolecek@NetBSD.org> |
remove struct ifnet if_mcastop, it's not used by anything
|
#
4b2497a5 |
| 14-Feb-2020 |
thorpej <thorpej@NetBSD.org> |
Remove the conditional __IF_STATS_PERCPU.
|
#
59008cd7 |
| 06-Feb-2020 |
thorpej <thorpej@NetBSD.org> |
Perform link state change processing on a work queue, rather than in a softint.
|
#
01f84be0 |
| 01-Feb-2020 |
thorpej <thorpej@NetBSD.org> |
Make if_stats competely opaque to user-space.
|