#
8e1af802 |
| 09-Dec-2024 |
Gleb Smirnoff <glebius@FreeBSD.org> |
IfAPI: make if_getlladdr() to return char *
No functional change. The caddr_t is a relic typedef from C version that didn't have void pointer. In this particular change we really need a char * poi
IfAPI: make if_getlladdr() to return char *
No functional change. The caddr_t is a relic typedef from C version that didn't have void pointer. In this particular change we really need a char * pointer rather than void, because some consumers use the link level address as a char array.
show more ...
|
Revision tags: release/14.2.0 |
|
#
f6efccaa |
| 08-Nov-2024 |
Justin Hibbits <jhibbits@FreeBSD.org> |
IfAPI: Remove temporary inclusion of if_private.h
Summary: The kernel is now fully migrated to the IfAPI, so remove the temporary inclusion of the private structure definition.
Reviewed By: #networ
IfAPI: Remove temporary inclusion of if_private.h
Summary: The kernel is now fully migrated to the IfAPI, so remove the temporary inclusion of the private structure definition.
Reviewed By: #network, melifaro Differential Revision: https://reviews.freebsd.org/D39621
show more ...
|
Revision tags: release/13.4.0 |
|
#
408c909d |
| 04-Sep-2024 |
Mark Johnston <markj@FreeBSD.org> |
ifnet: Remove if_getamcount()
All uses of this function were incorrect. if_amcount is a reference count which tracks the number of times the network stack internally set IFF_ALLMULTI. (if_pcount i
ifnet: Remove if_getamcount()
All uses of this function were incorrect. if_amcount is a reference count which tracks the number of times the network stack internally set IFF_ALLMULTI. (if_pcount is the corresponding counter for IFF_PROMISC.)
Remove if_getamcount() and fix up callers to get the number of assigned multicast addresses instead, since that's what they actually want.
Sponsored by: Klara, Inc. Reviewed by: zlei, glebius MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D46523
show more ...
|
#
aff22541 |
| 30-Jul-2024 |
Konstantin Belousov <kib@FreeBSD.org> |
ipsec_accel: consistently provide arguments name in typedefs
Sponsored by: NVidia networking
|
Revision tags: release/14.1.0, release/13.3.0 |
|
#
240b7bfe |
| 14-Feb-2024 |
Konstantin Belousov <kib@FreeBSD.org> |
ipsec_offload: offload inner checksums calculations for UDP/TCP/TSO
and allow the interface driver to declare such support.
Sponsored by: NVIDIA networking Differential revision: https://reviews.fr
ipsec_offload: offload inner checksums calculations for UDP/TCP/TSO
and allow the interface driver to declare such support.
Sponsored by: NVIDIA networking Differential revision: https://reviews.freebsd.org/D44221
show more ...
|
#
2131654b |
| 07-Feb-2024 |
Konstantin Belousov <kib@FreeBSD.org> |
sys/net: Add IPSEC_OFFLOAD interface cap and methods structure
Reviewed by: glebius Sponsored by: NVIDIA networking Differential revision: https://reviews.freebsd.org/D44314
|
#
29363fb4 |
| 23-Nov-2023 |
Warner Losh <imp@FreeBSD.org> |
sys: Remove ancient SCCS tags.
Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl s
sys: Remove ancient SCCS tags.
Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl script.
Sponsored by: Netflix
show more ...
|
Revision tags: release/14.0.0 |
|
#
2a371643 |
| 21-Jul-2023 |
Justin Hibbits <jhibbits@FreeBSD.org> |
IfAPI: Retire if_etherbpfmtap() and if_bpfmtap()
Summary: These came in the original DrvAPI commits in 2014, and are obsoleted by bpf_mtap_if() and ether_bpf_mtap_if(). The `_if` suffix, rather tha
IfAPI: Retire if_etherbpfmtap() and if_bpfmtap()
Summary: These came in the original DrvAPI commits in 2014, and are obsoleted by bpf_mtap_if() and ether_bpf_mtap_if(). The `_if` suffix, rather than prefix, conveys that it's operating on the bpf of the interface, instead than the interface itself.
Reviewed by: glebius Sponsored by: Juniper Networks, Inc. Differential Revision: https://reviews.freebsd.org/D41146
show more ...
|
#
2ff63af9 |
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
sys: Remove $FreeBSD$: one-line .h pattern
Remove /^\s*\*+\s*\$FreeBSD\$.*$\n/
|
#
79379355 |
| 16-Jun-2023 |
Alexander V. Chernikov <melifaro@FreeBSD.org> |
netlink: convert to IfAPI.
Convert to IfAPI everything except `IF_AFDATA_WLOCK` usage in neigh.c.
Reviewed By: jhibbits Differential Revision: https://reviews.freebsd.org/D40577
|
#
848d5bb1 |
| 17-May-2023 |
Konstantin Belousov <kib@FreeBSD.org> |
net/if_var.h: consistently use if_t over struct ifnet *
Reviewed by: jhibbits Sponsored by: NVidia networking Differential revision: https://reviews.freebsd.org/D40125
|
#
f766d1d5 |
| 10-Apr-2023 |
Justin Hibbits <jhibbits@FreeBSD.org> |
IfAPI: Add if_maddr_empty() to check for any maddrs
if_llmaddr_count() only counts link-level multicast addresses. hv_netvsc(4) needs to know if there are any multicast addresses. Since hv_netvsc(4
IfAPI: Add if_maddr_empty() to check for any maddrs
if_llmaddr_count() only counts link-level multicast addresses. hv_netvsc(4) needs to know if there are any multicast addresses. Since hv_netvsc(4) is the only instance where this would be used, make it a simple boolean. If others need a if_maddr_count(), that can be added in the future.
Reviewed by: melifaro Sponsored by: Juniper Networks, Inc. Differential Revision: https://reviews.freebsd.org/D39493
show more ...
|
#
7814374b |
| 07-Apr-2023 |
Justin Hibbits <jhibbits@FreeBSD.org> |
IfAPI: Hide the macros that touch ifnet members
Nothing should be directly touching the ifnet members, which are hidden in <net/if_private.h>, so hide them in the same header to avoid errors from us
IfAPI: Hide the macros that touch ifnet members
Nothing should be directly touching the ifnet members, which are hidden in <net/if_private.h>, so hide them in the same header to avoid errors from users.
Sponsored by: Juniper Networks, Inc.
show more ...
|
#
56d4550c |
| 19-Apr-2023 |
Alexander V. Chernikov <melifaro@FreeBSD.org> |
ifnet: factor out interface renaming into a separate function.
This change is required to support interface renaming via Netlink. No functional changes intended.
Reviewed by: zlei Differential Revi
ifnet: factor out interface renaming into a separate function.
This change is required to support interface renaming via Netlink. No functional changes intended.
Reviewed by: zlei Differential Revision: https://reviews.freebsd.org/D39692 MFC after: 2 weeks
show more ...
|
Revision tags: release/13.2.0 |
|
#
e2427c69 |
| 16-Mar-2023 |
Justin Hibbits <jhibbits@FreeBSD.org> |
IfAPI: Add iterator to complement if_foreach()
Summary: Sometimes an if_foreach() callback can be trivial, or need a lot of outer context. In this case a regular `for` loop makes more sense. To ke
IfAPI: Add iterator to complement if_foreach()
Summary: Sometimes an if_foreach() callback can be trivial, or need a lot of outer context. In this case a regular `for` loop makes more sense. To keep things hidden in the new API, use an opaque `if_iter` structure that can still be instantiated on the stack. The current implementation uses just a single pointer out of the 4 alotted to the opaque context, and the cleanup does nothing, but may be used in the future.
Reviewed by: melifaro Sponsored by: Juniper Networks, Inc. Differential Revision: https://reviews.freebsd.org/D39138
show more ...
|
#
df2b419a |
| 04-Mar-2023 |
Alexander V. Chernikov <melifaro@FreeBSD.org> |
ifnet: add if_foreach_sleep() to allow ifnet iterations with sleep.
Subscribers: imp, ae, glebius
Differential Revision: https://reviews.freebsd.org/D38904
|
#
66bdbcd5 |
| 03-Mar-2023 |
Alexander V. Chernikov <melifaro@FreeBSD.org> |
net: unify mtu update code
Subscribers: imp, ae, glebius
Differential Revision: https://reviews.freebsd.org/D38893
|
#
aac2d19d |
| 10-Feb-2023 |
Justin Hibbits <jhibbits@FreeBSD.org> |
IfAPI: Style cleanup
Summary: Clean up style issues from IfAPI additions.
Casts to (struct ifnet *) made sense when `if_t` was a `void *`, but since it's a `struct ifnet *` it no longer makes sense
IfAPI: Style cleanup
Summary: Clean up style issues from IfAPI additions.
Casts to (struct ifnet *) made sense when `if_t` was a `void *`, but since it's a `struct ifnet *` it no longer makes sense. Fix whitespace errors, among others.
Reviewed by: kib, glebius Sponsored by: Juniper Networks, Inc. Differential Revision: https://reviews.freebsd.org/D38499
show more ...
|
#
a3a76c3d |
| 10-Feb-2023 |
Justin Hibbits <jhibbits@FreeBSD.org> |
IfAPI: Add capabilities2/capenable2 accessors
Summary: As a stopgap measure add basic accessors for the if_capabilities2 and if_capenable2 members to further hide the ifnet details.
Sponsored by: J
IfAPI: Add capabilities2/capenable2 accessors
Summary: As a stopgap measure add basic accessors for the if_capabilities2 and if_capenable2 members to further hide the ifnet details.
Sponsored by: Juniper Networks, Inc. Reviewed by: glebius, kib Differential Revision: https://reviews.freebsd.org/D38487
show more ...
|
#
189c3729 |
| 10-Feb-2023 |
Justin Hibbits <jhibbits@FreeBSD.org> |
IfAPI: More accessors
Summary: Add the following accessors needed by infiniband drivers: * if_getaddrlen() * if_setbroadcastaddr() * if_resolvemulti()
With these accessors, and additional changes o
IfAPI: More accessors
Summary: Add the following accessors needed by infiniband drivers: * if_getaddrlen() * if_setbroadcastaddr() * if_resolvemulti()
With these accessors, and additional changes on the drivers' side, an amd64 kernel can be compiled with `struct ifnet` completely hidden.
Reviewed by: melifaro Sponsored by: Juniper Networks, Inc. Differential Revision: https://reviews.freebsd.org/D38488
show more ...
|
#
1e6131ba |
| 01-Feb-2023 |
Justin Hibbits <jhibbits@FreeBSD.org> |
IfAPI: Add needed APIs for mbuf support
Summary: Add 2 new APIs for supporting recent mbuf changes: * 36e0a362ac added the m_snd_tag_alloc() wrapper around if_snd_tag_alloc(). Push this down to t
IfAPI: Add needed APIs for mbuf support
Summary: Add 2 new APIs for supporting recent mbuf changes: * 36e0a362ac added the m_snd_tag_alloc() wrapper around if_snd_tag_alloc(). Push this down to the ifnet level. * 4d7a1361ef adds the m_rcvif_serialize()/m_rcvif_restore() KPIs to serialize and restore an ifnet pointer. Add the necessary wrapper to get the index generation for this.
Reviewed By: jhb Sponsored by: Juniper Networks, Inc. Differential Revision: https://reviews.freebsd.org/D38340
show more ...
|
#
2eeb8083 |
| 01-Feb-2023 |
Justin Hibbits <jhibbits@FreeBSD.org> |
IfAPI: Add iterator to loop over all interfaces
Summary: Sometimes it's useful to iterate over all interfaces in the current VNET, as the linuxulator does in several places.
Unlike other iterators
IfAPI: Add iterator to loop over all interfaces
Summary: Sometimes it's useful to iterate over all interfaces in the current VNET, as the linuxulator does in several places.
Unlike other iterators in the IfAPI this propagates any error received up to the caller, instead of returning a count.
Sponsored by: Juniper Networks, Inc. Reviewed by: glebius, melifaro Differential Revision: https://reviews.freebsd.org/D38348
show more ...
|
#
d79539e6 |
| 25-Jan-2023 |
Justin Hibbits <jhibbits@FreeBSD.org> |
IfAPI: Add if_altq_is_enabled() interface.
Summary: The only user of the ALTQ_IS_ENABLED() in a driver checks against the ifnet queue. Abstract that all out and present the interface to check if AL
IfAPI: Add if_altq_is_enabled() interface.
Summary: The only user of the ALTQ_IS_ENABLED() in a driver checks against the ifnet queue. Abstract that all out and present the interface to check if ALTQ is enabled on the interface.
Sponsored by: Juniper Networks, Inc. Reviewed By: glebius Differential Revision: https://reviews.freebsd.org/D38204
show more ...
|
#
31cfaf19 |
| 25-Jan-2023 |
Justin Hibbits <jhibbits@FreeBSD.org> |
IfAPI: Add l2com accessor for firewire.
Summary: Firewire is the only device driver that accesses the l2com member, all other accesses are handled within the netstack itself.
Sponsored by: Juniper
IfAPI: Add l2com accessor for firewire.
Summary: Firewire is the only device driver that accesses the l2com member, all other accesses are handled within the netstack itself.
Sponsored by: Juniper Networks, Inc. Reviewed by: glebius, melifaro Differential Revision: https://reviews.freebsd.org/D38203
show more ...
|
#
0d2684e1 |
| 24-Jan-2023 |
Justin Hibbits <jhibbits@FreeBSD.org> |
IfAPI: Add some more accessors
Summary: * if_setreassignfn for wireguard. * if_getinputfn() and if_getstartfn() for various drivers. Use the function descriptor typedefs for these and the setters
IfAPI: Add some more accessors
Summary: * if_setreassignfn for wireguard. * if_getinputfn() and if_getstartfn() for various drivers. Use the function descriptor typedefs for these and the setters. * vlantrunk accessor. This is used by VLAN_CAPABILITIES() used by several drivers, as well as directly by mxge(4). * if_pcp member accessor, used by cxgbe. * accessors for netmap adapter.
Sponsored by: Juniper Networks, Inc. Reviewed By: glebius Differential Revision: https://reviews.freebsd.org/D38202
show more ...
|