From nobody Fri Sep 13 00:25:35 2024 X-Original-To: dev-commits-src-all@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 4X4ZpS1H8cz5V3qM; Fri, 13 Sep 2024 00:25:36 +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 4X4ZpR6Dvbz4bTm; Fri, 13 Sep 2024 00:25:35 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1726187135; 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=cyv3joQSyWD8pXIatqSwX0eWvRZeTh8C14DgZ+HGWzw=; b=lUKJAw56X5PNb8dToTNd9I9YPLffT+3a2ZJMQVdjF05uAUD0zeOzgcSiRH3d2AjA8yG1Dn +GXmEG8sch81IKNgeLuy1qTXM2Ue4CVefP1OYCV+xDmBDq6rfPzj0F8pQE+zT2Fxd4RjKw +jycMuqJ7KD1DeKR2Wlit9wih44OA0jz8DoJ9WMYdYgkfKkgz2YNvRlMzbxZb8PmtVoUUy usP2bclYoT/9rj0GHr7o+xBXIe+2mnXfjyrMEmHGqHkw3SJ2ZfByXmGajrak+k4c4n3gfe zzBQF9WdMBvdWtrFnMtqnuB7jLC5Jo2QxlhW5fNOml7Ug+ZFDKpZikIiwuHGxw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1726187135; a=rsa-sha256; cv=none; b=wGN7J9X0kCI6BYO0v+0f670r+J3wHhqNWT9JIrzeLzHTxhCXyE8Kbg5XUvsI4kWNqCY0lf hQzk7vF6TXrD0KpPRcIKZ5NVYtvI0QW76QZupMmr7HjGZ/K+Qgib9Zm8Rdo2vY9wKI18Oz 027w+Uzi7aWNfLn8gG7tc86irzoT5RIUp9+17JwDkp8Wdavocgh8Gl8HDGWIwSyIKnvXmy /KHLlkbFGQUss/Wrla+xVEOEEFiC7zy6WVfkEJtRHy/J+ZLE9jS2F4XrBnyCBobGQT6zvw 1uI6lmuKdHHiLPyyMAop4KgPf6/iIqpfaQSX2aVqggjhvjVjjU1Gx+lOWC4zUw== 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=1726187135; 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=cyv3joQSyWD8pXIatqSwX0eWvRZeTh8C14DgZ+HGWzw=; b=QzyAiJvFUiiR3uTG00z0WLnGeodSQ83IDb5XN/Exs9Ea+HRvhCf3u57daGqb4NL/Xwu+Ru Gmcaiu3Q+ADQUm96WcQP2QuyLODYnWe+ArPfyqoEvTKpI+waFuvp+KlSBoefVd+I5u/RGs 32mmI2CRfynW7OlEygz1C4BbQIRy8ajDbwCjEnWS45m+5b5goJbye19lZUUf1DPGkvqrao qPmnuCJ4Dh0IiNAI6ASOIddgTYESXjWpd4LYPR5TztaEan1515bQBNFS+SmN2gzFNWaH4g 7wHc523T6sfT8MvnHIRfQXE3cjiKPvye0w2i04LHkC1i45mh8l5Dmf2PPxv9AA== 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 4X4ZpR5rZtzLGt; Fri, 13 Sep 2024 00:25:35 +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 48D0PZk1056439; Fri, 13 Sep 2024 00:25:35 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48D0PZFi056436; Fri, 13 Sep 2024 00:25:35 GMT (envelope-from git) Date: Fri, 13 Sep 2024 00:25:35 GMT Message-Id: <202409130025.48D0PZFi056436@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: 6ed447b51a9d - main - LinuxKPI; add more defintions to netdevice.h List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@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: 6ed447b51a9d6cf22aae2dfba6efce3922ae6d57 Auto-Submitted: auto-generated The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=6ed447b51a9d6cf22aae2dfba6efce3922ae6d57 commit 6ed447b51a9d6cf22aae2dfba6efce3922ae6d57 Author: Bjoern A. Zeeb AuthorDate: 2024-09-12 20:46:22 +0000 Commit: Bjoern A. Zeeb CommitDate: 2024-09-13 00:24:48 +0000 LinuxKPI; add more defintions to netdevice.h Add new enums to netdevice.h (including one which is referenced but no value of it is used in a driver so we have to add a "dummy" value to avoid an empty enum). Sponsored by: The FreeBSD Foundation MFC after: 3 days --- sys/compat/linuxkpi/common/include/linux/netdevice.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/netdevice.h b/sys/compat/linuxkpi/common/include/linux/netdevice.h index 3d2b309909b4..dde3ad07dec2 100644 --- a/sys/compat/linuxkpi/common/include/linux/netdevice.h +++ b/sys/compat/linuxkpi/common/include/linux/netdevice.h @@ -75,6 +75,10 @@ struct wireless_dev; /* net/cfg80211.h */ #define NET_NAME_UNKNOWN 0 +enum net_addr_assign_type { + NET_ADDR_RANDOM, +}; + enum netdev_tx { NETDEV_TX_OK = 0, }; @@ -95,6 +99,10 @@ enum net_device_reg_state { NETREG_REGISTERED, }; +enum tc_setup_type { + TC_SETUP_MAX_DUMMY, +}; + struct net_device_ops { int (*ndo_open)(struct net_device *); int (*ndo_stop)(struct net_device *); @@ -122,6 +130,7 @@ struct net_device { unsigned long tx_errors; unsigned long tx_packets; } stats; + enum net_addr_assign_type addr_assign_type; enum net_device_reg_state reg_state; const struct ethtool_ops *ethtool_ops; const struct net_device_ops *netdev_ops;