[PR #129] [MERGED] fix: use ifdef for COMPAT_CANNOT_USE_PCPU_STAT_TYPE #197

Closed
opened 2026-10-13 21:07:32 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/amnezia-vpn/amneziawg-linux-kernel-module/pull/129
Author: @Slava-Shchipunov
Created: 12/24/2025
Status: ✅ Merged
Merged: 12/29/2025
Merged by: @ygurov

Base: master ← Head: fix/fix-interface-stats


📝 Commits (2)

  • da00eac fix: remove COMPAT_CANNOT_USE_PCPU_STAT_TYPE guard
  • a1f6216 fix: use ifdef for COMPAT_CANNOT_USE_PCPU_STAT_TYPE

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 src/device.c (+1 -1)

📄 Description

The compatibility guard breaks ndo_get_stats64 registration on recent kernels, causing missing or incorrect network statistics reporting.

This resolves issue #120.

The change was tested in OpenWrt builds, where the module works correctly and network statistics are reported as expected (link to patch).


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/amnezia-vpn/amneziawg-linux-kernel-module/pull/129 **Author:** [@Slava-Shchipunov](https://github.com/Slava-Shchipunov) **Created:** 12/24/2025 **Status:** ✅ Merged **Merged:** 12/29/2025 **Merged by:** [@ygurov](https://github.com/ygurov) **Base:** `master` ← **Head:** `fix/fix-interface-stats` --- ### 📝 Commits (2) - [`da00eac`](https://github.com/amnezia-vpn/amneziawg-linux-kernel-module/commit/da00eac30d914460679b1e54320b1a0e7184b944) fix: remove COMPAT_CANNOT_USE_PCPU_STAT_TYPE guard - [`a1f6216`](https://github.com/amnezia-vpn/amneziawg-linux-kernel-module/commit/a1f62161085ec578868e019c4394aec732c205bb) fix: use ifdef for COMPAT_CANNOT_USE_PCPU_STAT_TYPE ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/device.c` (+1 -1) </details> ### 📄 Description The compatibility guard breaks ndo_get_stats64 registration on recent kernels, causing missing or incorrect network statistics reporting. This resolves [issue #120](https://github.com/amnezia-vpn/amneziawg-linux-kernel-module/issues/120). The change [was tested](https://github.com/Slava-Shchipunov/awg-openwrt/issues/78) in OpenWrt builds, where the module works correctly and network statistics are reported as expected ([link to patch](https://github.com/Slava-Shchipunov/awg-openwrt/blob/master/kmod-amneziawg/patches/001-fix-stats-compat.patch)). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-13 21:07:32 +00:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
amnezia-vpn/amneziawg-linux-kernel-module#197
No description provided.