* [PATCH] kni: fix build on RHEL 9.1
@ 2023-01-06 20:13 Ferruh Yigit
2023-01-09 2:28 ` Gao, DaxueX
2023-01-09 9:07 ` David Marchand
0 siblings, 2 replies; 4+ messages in thread
From: Ferruh Yigit @ 2023-01-06 20:13 UTC (permalink / raw)
To: Thomas Monjalon; +Cc: David Marchand, dev, stable, daxuex.gao
Linux kernel in the RHEL9.1 seems backported Linux commit [1] that drops
netif_rx_ni().
This was fixed in DPDK [2] for vanilla Linux kernel.
Adding RHEL9.1 check for the netif_rx_ni() usage to fix build error.
[1]
2655926aea9b ("net: Remove netif_rx_any_context() and netif_rx_ni().")
[2]
Commit c98600d4bed6 ("kni: fix build with Linux 5.18")
Bugzilla ID: 1076
Cc: stable@dpdk.org
Signed-off-by: Ferruh Yigit <ferruh.yigit@amd.com>
---
Cc: daxuex.gao@intel.com
---
kernel/linux/kni/compat.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/kernel/linux/kni/compat.h b/kernel/linux/kni/compat.h
index 3a86d12bbc5c..7aa6cd9fca75 100644
--- a/kernel/linux/kni/compat.h
+++ b/kernel/linux/kni/compat.h
@@ -146,6 +146,8 @@
#define HAVE_ETH_HW_ADDR_SET
#endif
-#if KERNEL_VERSION(5, 18, 0) > LINUX_VERSION_CODE
+#if KERNEL_VERSION(5, 18, 0) > LINUX_VERSION_CODE && \
+ (!(defined(RHEL_RELEASE_CODE) && \
+ RHEL_RELEASE_VERSION(9, 1) <= RHEL_RELEASE_CODE))
#define HAVE_NETIF_RX_NI
#endif
--
2.25.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: [PATCH] kni: fix build on RHEL 9.1
2023-01-06 20:13 [PATCH] kni: fix build on RHEL 9.1 Ferruh Yigit
@ 2023-01-09 2:28 ` Gao, DaxueX
2023-01-09 9:07 ` David Marchand
1 sibling, 0 replies; 4+ messages in thread
From: Gao, DaxueX @ 2023-01-09 2:28 UTC (permalink / raw)
To: Ferruh Yigit, Thomas Monjalon; +Cc: David Marchand, dev, stable
> From: Ferruh Yigit <ferruh.yigit@amd.com>
> Sent: 2023年1月7日 4:13
> To: Thomas Monjalon <thomas@monjalon.net>
> Cc: David Marchand <david.marchand@redhat.com>; dev@dpdk.org;
> stable@dpdk.org; Gao, DaxueX <daxuex.gao@intel.com>
> Subject: [PATCH] kni: fix build on RHEL 9.1
>
> Linux kernel in the RHEL9.1 seems backported Linux commit [1] that drops
> netif_rx_ni().
>
> This was fixed in DPDK [2] for vanilla Linux kernel.
>
> Adding RHEL9.1 check for the netif_rx_ni() usage to fix build error.
>
> [1]
> 2655926aea9b ("net: Remove netif_rx_any_context() and netif_rx_ni().")
>
> [2]
> Commit c98600d4bed6 ("kni: fix build with Linux 5.18")
>
> Bugzilla ID: 1076
> Cc: stable@dpdk.org
>
> Signed-off-by: Ferruh Yigit <ferruh.yigit@amd.com>
Tested-by: Daxue Gao <daxuex.gao@intel.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] kni: fix build on RHEL 9.1
2023-01-06 20:13 [PATCH] kni: fix build on RHEL 9.1 Ferruh Yigit
2023-01-09 2:28 ` Gao, DaxueX
@ 2023-01-09 9:07 ` David Marchand
2023-01-09 17:43 ` David Marchand
1 sibling, 1 reply; 4+ messages in thread
From: David Marchand @ 2023-01-09 9:07 UTC (permalink / raw)
To: Ferruh Yigit; +Cc: Thomas Monjalon, dev, stable, daxuex.gao
Hi Ferruh,
On Fri, Jan 6, 2023 at 9:13 PM Ferruh Yigit <ferruh.yigit@amd.com> wrote:
>
> Linux kernel in the RHEL9.1 seems backported Linux commit [1] that drops
> netif_rx_ni().
>
> This was fixed in DPDK [2] for vanilla Linux kernel.
>
> Adding RHEL9.1 check for the netif_rx_ni() usage to fix build error.
>
> [1]
> 2655926aea9b ("net: Remove netif_rx_any_context() and netif_rx_ni().")
>
> [2]
> Commit c98600d4bed6 ("kni: fix build with Linux 5.18")
>
> Bugzilla ID: 1076
> Cc: stable@dpdk.org
>
> Signed-off-by: Ferruh Yigit <ferruh.yigit@amd.com>
LGTM.
Tested compilation with 9.0 and 9.1 kernel devel packages.
Reviewed-by: David Marchand <david.marchand@redhat.com>
--
David Marchand
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] kni: fix build on RHEL 9.1
2023-01-09 9:07 ` David Marchand
@ 2023-01-09 17:43 ` David Marchand
0 siblings, 0 replies; 4+ messages in thread
From: David Marchand @ 2023-01-09 17:43 UTC (permalink / raw)
To: Ferruh Yigit; +Cc: Thomas Monjalon, dev, stable, daxuex.gao
On Mon, Jan 9, 2023 at 10:07 AM David Marchand
<david.marchand@redhat.com> wrote:
>
> Hi Ferruh,
>
> On Fri, Jan 6, 2023 at 9:13 PM Ferruh Yigit <ferruh.yigit@amd.com> wrote:
> >
> > Linux kernel in the RHEL9.1 seems backported Linux commit [1] that drops
> > netif_rx_ni().
> >
> > This was fixed in DPDK [2] for vanilla Linux kernel.
> >
> > Adding RHEL9.1 check for the netif_rx_ni() usage to fix build error.
> >
> > [1]
> > 2655926aea9b ("net: Remove netif_rx_any_context() and netif_rx_ni().")
> >
> > [2]
> > Commit c98600d4bed6 ("kni: fix build with Linux 5.18")
> >
> > Bugzilla ID: 1076
> > Cc: stable@dpdk.org
> >
> > Signed-off-by: Ferruh Yigit <ferruh.yigit@amd.com>
>
> LGTM.
> Tested compilation with 9.0 and 9.1 kernel devel packages.
> Reviewed-by: David Marchand <david.marchand@redhat.com>
Applied, thanks Ferruh.
--
David Marchand
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-01-09 17:43 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-06 20:13 [PATCH] kni: fix build on RHEL 9.1 Ferruh Yigit
2023-01-09 2:28 ` Gao, DaxueX
2023-01-09 9:07 ` David Marchand
2023-01-09 17:43 ` David Marchand
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).