From nobody Thu Jul 25 16:21:42 2024 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WVGNk46RYz5SJBJ; Thu, 25 Jul 2024 16:21:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WVGNk3c1Pz4m48; Thu, 25 Jul 2024 16:21:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1721924502; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=bUDDZg54+/m1iGrhOoYJzRCeq+f1q9nnGc0mpUkBZt0=; b=lU87/bYaQ0WourtUUUb0tm2/5+DDNTzHmkEZ6q7Y+cSmmfWB4s7/QgiKDdApzff4c2PSIg dvAxzKdHwUPortzp1EVJzl096o3042o4xhs6Hy9ed33dchWzFDy/jfFy2//TYuF29tmWRp IGFOUKh2/O9Mfynvr5lVFRq5IYunqs90KGwpVkpPI//yMMzFeg2mDGzO8JOKl6ZDLiYwJb z8hvkv2H+1KYypqRWbIkmx1H0A2Y0eMB+Yth6o4yGdYiVDAt7j34rQ1utMrrPjHOSaq+Dz 1llP4x05qVOQ+Yto5CpM/Ma/oUULUGGVSIvT3k8E4pKQ8nULf/7Cjwf9Igfr1w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1721924502; a=rsa-sha256; cv=none; b=sFyuug9F88blJLgTtj1G7GZsLtDolMY8SAwFtwZBvD/YfIg3GFqhUVgwWopxGT3g/xS40u KLHnnfPgBwFq8rzI4OTC4tmC8fzxJT3H61tfi4WFx/wOSC9h1PBAh1ZGmCa1en8glRdQHa lzaulXM6nmLzCALYNM35DNnzwSg4U7keAQSQWN0y18wCfbl/VkcjODrOCPt4dZbL6Qzsj1 81I+JaC98osFD0cqTSFe0lhqNH+o22NsFyLqIc7uc1/bkcT0iOclPg3rz3Fe6CKOEFTYKT 8nvJsKa8aCkF/qYvmrEt9HPmMNbPzGzL0ckaIWw7opBMwdJTsGjQMIFH8+B41Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1721924502; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=bUDDZg54+/m1iGrhOoYJzRCeq+f1q9nnGc0mpUkBZt0=; b=hlbRXNXkvm5iOC7Nznmk8HyfXE3+xWh0QR1Ne7TgKJcrIfLcC1or0zfq9RZUlj5DZw0mYB gqW0JYO9yf2zY6yGuDK7I+l629zM/cxOaDTTo8xtW45NfEMvxfhJ/P8GqEy99EddlyGd2i 4CU8/UquQY9IkIMR0JL4DKMFORnaHxbaNEbI27JPkd5D9h8pQcpO18nVRetd1MyaRp9pSr GDfA3TpPGK/CfF/fuK5WmYGVkVyPghbYfp5wjXxA73e0PNkAfeVgv7L/2cBSbTAp2yBgfV vWhDO2/LLkFYRIrR1bdFi8w5wQiQYYKYZ0xDbbRrlLut+7LO+3n7b0D6bOtuOg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4WVGNk3CMzz12Zg; Thu, 25 Jul 2024 16:21:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 46PGLgOn014141; Thu, 25 Jul 2024 16:21:42 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 46PGLgEk014138; Thu, 25 Jul 2024 16:21:42 GMT (envelope-from git) Date: Thu, 25 Jul 2024 16:21:42 GMT Message-Id: <202407251621.46PGLgEk014138@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: "Bjoern A. Zeeb" Subject: git: 59d262fe969a - main - LinuxKPI: 802.11 compile in debugging based on IEEE80211 debugging List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bz X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 59d262fe969af5a8a83f0ccd7586c9bd2c8fb1f3 Auto-Submitted: auto-generated The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=59d262fe969af5a8a83f0ccd7586c9bd2c8fb1f3 commit 59d262fe969af5a8a83f0ccd7586c9bd2c8fb1f3 Author: Bjoern A. Zeeb AuthorDate: 2024-04-06 21:17:58 +0000 Commit: Bjoern A. Zeeb CommitDate: 2024-07-25 15:06:46 +0000 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 --- sys/compat/linuxkpi/common/include/linux/skbuff.h | 8 ++++++++ sys/compat/linuxkpi/common/src/linux_80211.h | 6 ++++++ 2 files changed, 14 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/skbuff.h b/sys/compat/linuxkpi/common/include/linux/skbuff.h index ee3f427aa6e9..d3839820d3d5 100644 --- a/sys/compat/linuxkpi/common/include/linux/skbuff.h +++ b/sys/compat/linuxkpi/common/include/linux/skbuff.h @@ -46,7 +46,15 @@ #include #include +#include "opt_wlan.h" + +/* Currently this is only used for wlan so we can depend on that. */ +#if defined(IEEE80211_DEBUG) && !defined(SKB_DEBUG) +#define SKB_DEBUG +#endif + /* #define SKB_DEBUG */ + #ifdef SKB_DEBUG #define DSKB_TODO 0x01 #define DSKB_IMPROVE 0x02 diff --git a/sys/compat/linuxkpi/common/src/linux_80211.h b/sys/compat/linuxkpi/common/src/linux_80211.h index a48cf719c693..80be87ebe231 100644 --- a/sys/compat/linuxkpi/common/src/linux_80211.h +++ b/sys/compat/linuxkpi/common/src/linux_80211.h @@ -42,6 +42,12 @@ #ifndef _LKPI_SRC_LINUX_80211_H #define _LKPI_SRC_LINUX_80211_H +#include "opt_wlan.h" + +#if defined(IEEE80211_DEBUG) && !defined(LINUXKPI_DEBUG_80211) +#define LINUXKPI_DEBUG_80211 +#endif + /* #define LINUXKPI_DEBUG_80211 */ #ifndef D80211_TODO