kernel: qca-nss-dp: enable compiling against 6.6
[openwrt/openwrt.git] / package / kernel / qca-nss-dp / patches / 0010-nss-dp-include-net-netdev_rx_queue.h.patch
1 From 01ec275bd0942ddc6b80e1d3671cdc66be670f57 Mon Sep 17 00:00:00 2001
2 From: Robert Marko <robimarko@gmail.com>
3 Date: Fri, 1 Sep 2023 12:23:58 +0200
4 Subject: [PATCH] nss-dp: include <net/netdev_rx_queue.h>
5
6 Since 6.5 netdev_rx_queue was moved out of netdevice.h so include the new
7 header since that is where it lives now.
8
9 Signed-off-by: Robert Marko <robimarko@gmail.com>
10 ---
11 nss_dp_main.c | 3 +++
12 1 file changed, 3 insertions(+)
13
14 --- a/nss_dp_main.c
15 +++ b/nss_dp_main.c
16 @@ -34,6 +34,9 @@
17 #if defined(NSS_DP_MAC_POLL_SUPPORT)
18 #include <init/ssdk_init.h>
19 #endif
20 +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 5, 0))
21 +#include <net/netdev_rx_queue.h>
22 +#endif
23
24 #include "nss_dp_hal.h"
25