Re: [B.A.T.M.A.N.] [PATCH 03/10] batman-adv: add generic netlink query API to replace debugfs files

Sven Eckelmann
2016-04-29T20:15:05Z

[-- Attachment #1.1: Type: text/plain, Size: 1640 bytes --]

=2D-nextPart2979459.aPmVvST0Ih
Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset="us-ascii"

On Friday 29 April 2016 21:55:32 Sven Eckelmann wrote:
[...]
> But there is now still the problem that info->snd_portid was previously
> called info->snd_pid. Also the genl_register_family_with_ops compat has to
> be added.

I don't have a better idea for the snd_portid right now than the attached
patch.

The seems to be already solved by backports.git but I will not try to
understand their hacks tonight.

https://git.kernel.org/cgit/linux/kernel/git/backports/backports.git/tree/backport/backport-include/net/genetlink.h?id=a91a3e6e3a6ed6cdbbe942bafe05ae5fcdf41ce9

Kind regards,
Sven

=2D-nextPart2979459.aPmVvST0Ih
Content-Disposition: attachment; filename="0001-add-snd_portid-hack.patch"
Content-Transfer-Encoding: 7Bit
Content-Type: text/x-patch; charset="UTF-8"; name="0001-add-snd_portid-hack.patch"

From: Sven Eckelmann <sven@narfation.org>
Date: Fri, 29 Apr 2016 22:10:20 +0200
Subject: [PATCH] add snd_portid hack
=2D--
compat.h | 6 ++++++
1 file changed, 6 insertions(+)

diff --git a/compat.h b/compat.h
index 0644241..fc78948 100644
=2D-- a/compat.h
+++ b/compat.h
@@ -62,6 +62,12 @@ static int __batadv_interface_kill_vid(struct net_device *dev, __be16 proto,\

#endif /* < KERNEL_VERSION(3, 3, 0) */

+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 7, 0)
+
+#define snd_portid snd_pid
+
+#endif /* < KERNEL_VERSION(3, 7, 0) */
+
#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 9, 0)

#define batadv_interface_set_mac_addr(x, y) \

=2D-nextPart2979459.aPmVvST0Ih--
This is a multi-part message in MIME format.

[-- Attachment #1.2: Type: text/plain, Size: 592 bytes --]

On Friday 29 April 2016 21:55:32 Sven Eckelmann wrote:
[...]
> But there is now still the problem that info->snd_portid was previously
> called info->snd_pid. Also the genl_register_family_with_ops compat has to
> be added.

I don't have a better idea for the snd_portid right now than the attached
patch.

The seems to be already solved by backports.git but I will not try to
understand their hacks tonight.

https://git.kernel.org/cgit/linux/kernel/git/backports/backports.git/tree/backport/backport-include/net/genetlink.h?id=a91a3e6e3a6ed6cdbbe942bafe05ae5fcdf41ce9

Kind regards,
Sven

[-- Attachment #1.3: 0001-add-snd_portid-hack.patch --]
[-- Type: text/x-patch, Size: 633 bytes --]

From: Sven Eckelmann <sven@narfation.org>
Date: Fri, 29 Apr 2016 22:10:20 +0200
Subject: [PATCH] add snd_portid hack
---
compat.h | 6 ++++++
1 file changed, 6 insertions(+)

diff --git a/compat.h b/compat.h
index 0644241..fc78948 100644
--- a/compat.h
+++ b/compat.h
@@ -62,6 +62,12 @@ static int __batadv_interface_kill_vid(struct net_device *dev, __be16 proto,\

#endif /* < KERNEL_VERSION(3, 3, 0) */

+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 7, 0)
+
+#define snd_portid snd_pid
+
+#endif /* < KERNEL_VERSION(3, 7, 0) */
+
#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 9, 0)

#define batadv_interface_set_mac_addr(x, y) \