#
b4856b8e |
| 24-Oct-2024 |
Zhenlei Huang <zlei@FreeBSD.org> |
LinuxKPI: Remove stray semicolons
MFC after: 1 week
|
Revision tags: release/13.4.0, release/14.1.0 |
|
#
59d262fe |
| 06-Apr-2024 |
Bjoern A. Zeeb <bz@FreeBSD.org> |
LinuxKPI: 802.11 compile in debugging based on IEEE80211 debugging
If IEEE80211 debugging is turned on in kernel configs also turn on LinuxKPI 802.11 and SKB debugging (sysctls) to have them availab
LinuxKPI: 802.11 compile in debugging based on IEEE80211 debugging
If IEEE80211 debugging is turned on in kernel configs also turn on LinuxKPI 802.11 and SKB debugging (sysctls) to have them available.
Sponsored by: The FreeBSD Foundation MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D45820
show more ...
|
#
3d3ec178 |
| 02-Apr-2024 |
Bjoern A. Zeeb <bz@FreeBSD.org> |
LinuxKPI: sk_buff: implement skb_queue_splice_tail_init()
Implement skb_queue_splice_tail_init() and SKB_DATA_ALIGN() as needed by the mt76 wireless driver.
Sponsord by: The FreeBD Foundation MFC a
LinuxKPI: sk_buff: implement skb_queue_splice_tail_init()
Implement skb_queue_splice_tail_init() and SKB_DATA_ALIGN() as needed by the mt76 wireless driver.
Sponsord by: The FreeBD Foundation MFC after: 3 days Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D44590
show more ...
|
#
d3befb53 |
| 02-Mar-2024 |
Tom Coldrick <tom@coldrick.cc> |
LinuxKPI: Queue skbuffs at tail in __skb_queue_tail
Correct skb_queue_tail to queue the buffer at the tail of the skbuff. The skbuff is a circular doubly-linked list, and we call with a pointer to t
LinuxKPI: Queue skbuffs at tail in __skb_queue_tail
Correct skb_queue_tail to queue the buffer at the tail of the skbuff. The skbuff is a circular doubly-linked list, and we call with a pointer to the head of the list. Thus queueing before the head gives us a queueing at the tail.
As a motivating factor, the current behaviour (queueing at the head) was causing frequent kernel panics from my RTL8822BE wireless card, which uses the rtw88 driver. Interrupts can cause buffers to be added to the rtwdev c2h_queue while the queue is being drained in rtw_c2h_work. Queueing at the head would leave the nascent entry in the linked list pointing to the old, now freed, memory for the buffer being processed. When rtw_c2h_work is next called, we try reading this and so panic.
Reviewed by: emaste, bz MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D44192
show more ...
|
Revision tags: release/13.3.0, release/14.0.0 |
|
#
f0e59b69 |
| 08-Sep-2023 |
Bjoern A. Zeeb <bz@FreeBSD.org> |
LinuxKPI: skbuff: remove assumption about mac_header
It seems the mac_header can be set to offset 0 for frames received. Remove the warning splattering messages to the console for each packet.
Spon
LinuxKPI: skbuff: remove assumption about mac_header
It seems the mac_header can be set to offset 0 for frames received. Remove the warning splattering messages to the console for each packet.
Sponsored by: The FreeBSD Foundation MFC after: 3 days
show more ...
|
#
e039b38d |
| 10-Aug-2023 |
Bjoern A. Zeeb <bz@FreeBSD.org> |
LinuxKPI: skbuff: add skb_cow_head()
Add dummy implementation of skb_cow_head().
Sponsored by: The FreeBSD Foundation MFC after: 10 days
|
#
149c457d |
| 19-Aug-2023 |
Bjoern A. Zeeb <bz@FreeBSD.org> |
LinuxKPI: skbuff: fix tracing
Fix arguments to a trace line and remove another trace line until we actually will have the skb to trace along with a future implementation.
Sponsored by: The FreeBSD
LinuxKPI: skbuff: fix tracing
Fix arguments to a trace line and remove another trace line until we actually will have the skb to trace along with a future implementation.
Sponsored by: The FreeBSD Foundation MFC after: 10 days
show more ...
|
#
95ee2897 |
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
sys: Remove $FreeBSD$: two-line .h pattern
Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
|
#
1213a6be |
| 24-May-2023 |
Bjoern A. Zeeb <bz@FreeBSD.org> |
LinuxKPI: skbuff: add napi_build_skb() and skb_mark_for_recycle()
Add more (skeleton) functions used by wireless drivers.
MFC after: 10 days
|
#
369264ac |
| 20-May-2023 |
Bjoern A. Zeeb <bz@FreeBSD.org> |
LinuxKPI: skbuff: add skb_get_hash()
Add a dummy implementation of skb_get_hash() until we'll hit and implement it. It'll help to keep an upcoming wireless driver to compile.
MFC after: 10 days
|
#
262c5e81 |
| 16-May-2023 |
Bjoern A. Zeeb <bz@FreeBSD.org> |
LinuxKPI: skbuff.h: add skb_hwtstamps(), implement *mac_header()
Add a dummy skb_hwtstamps() function for now, and implement skb_mac_header(), skb_reset_mac_header(), and skb_set_mac_header().
Spon
LinuxKPI: skbuff.h: add skb_hwtstamps(), implement *mac_header()
Add a dummy skb_hwtstamps() function for now, and implement skb_mac_header(), skb_reset_mac_header(), and skb_set_mac_header().
Sponsored by: The FreeBSD Foundation MFC after: 10 days
show more ...
|
#
b2dcb848 |
| 19-Apr-2023 |
Bjoern A. Zeeb <bz@FreeBSD.org> |
LinuxKPI: skbuff.h: fix -Warray-bounds warnings
Harmonize sk_buff_head and sk_buff further and fix -Warray-bounds warnings reports by gcc. At the same time simplify some code by re-using other func
LinuxKPI: skbuff.h: fix -Warray-bounds warnings
Harmonize sk_buff_head and sk_buff further and fix -Warray-bounds warnings reports by gcc. At the same time simplify some code by re-using other functions or factoring some code out.
Sponsored by: The FreeBSD Foundation MFC after: 3 days
show more ...
|
Revision tags: release/13.2.0 |
|
#
dbbf46eb |
| 28-Jan-2023 |
Bjoern A. Zeeb <bz@FreeBSD.org> |
LinuxKPI: skbuff: implement skb_free_frag()
Using the work from 55038a6306a570c9f2df89f5ad076de0f7d98152 implement skb_free_frag() calling page_frag_free().
Sponsored by: The FreeBSD Foundation MFC
LinuxKPI: skbuff: implement skb_free_frag()
Using the work from 55038a6306a570c9f2df89f5ad076de0f7d98152 implement skb_free_frag() calling page_frag_free().
Sponsored by: The FreeBSD Foundation MFC after: 3 days
show more ...
|
Revision tags: release/12.4.0 |
|
#
5504bd59 |
| 28-Nov-2022 |
Bjoern A. Zeeb <bz@FreeBSD.org> |
LinuxKPI: SKB update
- skb_reset_tail_pointer(): we do not do offsets so do a plain reset - skb_add_rx_frag(): adjust data_len to keep track of the frag - based on that implement skb_is_nonlinear()
LinuxKPI: SKB update
- skb_reset_tail_pointer(): we do not do offsets so do a plain reset - skb_add_rx_frag(): adjust data_len to keep track of the frag - based on that implement skb_is_nonlinear() and skb_linearize() - implement build_skb() and adjust linuxkpi_kfree_skb() and ddb macro.
Sponsored by: The FreeBSD Foundation (partially) MFC after: 3 days
show more ...
|
#
ce9f3661 |
| 28-Nov-2022 |
Bjoern A. Zeeb <bz@FreeBSD.org> |
LinuxKPI: SKB: implement skb_peek()
Sponsored by: The FreeBSD Foundation MFC after: 3 days
|
#
89c32daf |
| 29-Jul-2022 |
Bjoern A. Zeeb <bz@FreeBSD.org> |
LinuxKPI: skbuff: sort list header and add new (dummy) functions
While working on new and updates to drivers more skbuff changes came up. Sort out the list/prev/next header problem and add more (so
LinuxKPI: skbuff: sort list header and add new (dummy) functions
While working on new and updates to drivers more skbuff changes came up. Sort out the list/prev/next header problem and add more (so far dummy) functions needed.
MFC after: 1 week
show more ...
|
Revision tags: release/13.1.0 |
|
#
349b042b |
| 15-Apr-2022 |
Bjoern A. Zeeb <bz@FreeBSD.org> |
LinuxKPI: skbuff: start implementing skb_copy()
Implement skb_copy() with omissions of fragments and possibly other fields for now. Should we hit frags at any point a log message will let us know.
LinuxKPI: skbuff: start implementing skb_copy()
Implement skb_copy() with omissions of fragments and possibly other fields for now. Should we hit frags at any point a log message will let us know. For the few cases we need this currently this is enough.
Sponsored by: The FreeBSD Foundation MFC after: 3 days
show more ...
|
#
952643ea |
| 15-Apr-2022 |
Bjoern A. Zeeb <bz@FreeBSD.org> |
LinuxKPI: skbuff: dev_kfree_skb_irq() and improvements
While it is currently unclear if we will have to defer work in dev_kfree_skb_irq() to call dev_kfree_skb(). We only have one caller which seems
LinuxKPI: skbuff: dev_kfree_skb_irq() and improvements
While it is currently unclear if we will have to defer work in dev_kfree_skb_irq() to call dev_kfree_skb(). We only have one caller which seems to be fine on FreeBSD by calling it directly for now.
While here shortcut skb_put()/skb_put_data() saving us work if there are no adjustments to do. Also adjust the logging in skb_is_gso() to avoid getting spammed by it.
Sponsored by: The FreeBSD Foundation MFC after: 3 days
show more ...
|
#
9df5f29c |
| 07-Apr-2022 |
Bjoern A. Zeeb <bz@FreeBSD.org> |
LinuxKPI: skbuff: handle dev_alloc_skb() correctly
dev_alloc_skb() comapred to alloc_skb() reserves some headroom at the beginning of the skb which is used by drivers. Split the code for the two cas
LinuxKPI: skbuff: handle dev_alloc_skb() correctly
dev_alloc_skb() comapred to alloc_skb() reserves some headroom at the beginning of the skb which is used by drivers. Split the code for the two cases and reserve NET_SKB_PAD space, which should at least be 32 octets.
Sponsored by: The FreeBSD Foundation MFC after: 3 days
show more ...
|
#
6a8973c3 |
| 23-Mar-2022 |
Bjoern A. Zeeb <bz@FreeBSD.org> |
LinuxKPI: skbuff: fix skb_queue_splice_init()
In skb_queue_splice_init() we set a next value and then used that new value to further update the remaining linking rather than the original value. Int
LinuxKPI: skbuff: fix skb_queue_splice_init()
In skb_queue_splice_init() we set a next value and then used that new value to further update the remaining linking rather than the original value. Introduce another temporary variable 'n' to hold the original value and use that. While here rename q and h to from and to as otherwise it was too confusing to read.
Also initialize skb->prev and skb->next to point to skb itself if for nothing else at least to aid debugging.
Reported by: phk (panic in iwl_txq_reclaim) Sponsored by: The FreeBSD Foundation MFC after: 3 days
show more ...
|
#
a3e07b6e |
| 22-Feb-2022 |
Bjoern A. Zeeb <bz@FreeBSD.org> |
LinuxKPI: skbuff.h add skb_postpush_rcsum()
Add a stub for skb_postpush_rcsum() needed by an updated iwlwifi.
Sponsored by: The FreeBSD Foundation MFC after: 3 days
|
#
6baea331 |
| 16-Feb-2022 |
Bjoern A. Zeeb <bz@FreeBSD.org> |
LinuxKPI: skbuff updates
Various updates to skbuff for new/updated drivers and some housekeeping: - update types and struct members, add new (stub) functions - improve freeing of frags. - fix an iss
LinuxKPI: skbuff updates
Various updates to skbuff for new/updated drivers and some housekeeping: - update types and struct members, add new (stub) functions - improve freeing of frags. - fix an issue with sleeping during alloc for dev_alloc_skb(). - Adjust a KASSERT for skb_reserve() which apparently can be called multiple times if no data was put into the skb yet. - move the sysctl from linux_8022.c (which may be in a different module) to linux_skbuff.c so in case we turn debugging on we do not run into unresolved symbols. Rename the sysctl variable to be less conflicting and update debugging macros along with that; also add IMPROVE(). - add DDB support to show an skbuff. - adjust comments/whitespace.
No functional changes intended for iwlwifi.
Sponsored by: The FreeBSD Foundation (partially) MFC after: 3 days
show more ...
|
#
49ed6e97 |
| 26-Dec-2021 |
Bjoern A. Zeeb <bz@FreeBSD.org> |
LinuxKPI: add a work-in-progress skbuff implementation
This is a work-in-progress implementation of sk_buff compat code used for wireless drivers only currently. Bring in this version of the code as
LinuxKPI: add a work-in-progress skbuff implementation
This is a work-in-progress implementation of sk_buff compat code used for wireless drivers only currently. Bring in this version of the code as it has proven to be good enough to have packets going for a few months.
The current implementation has several drawbacks including the need for us to copy data between sk_buffs and mbufs. Do not rely on the internals of this implementation. They are highly likely to change as we will improve the integration to FreeBSD mbufs.
Sponsored by: The FreeBSD Foundation MFC after: 3 days
show more ...
|