diff mbox series

[ovs-dev,3/6] test-lib-route-table: Add missing RTPROT_BGP definition.

Message ID 20251009092228.382349-4-i.maximets@ovn.org
State Accepted
Commit 367d599605144369588c93067aff6d0af9bded79
Headers show
Series Build fixes for OVS on old distributions. | expand

Checks

Context Check Description
ovsrobot/apply-robot success apply and check: success
ovsrobot/github-robot-_Build_and_Test success github build: passed

Commit Message

Ilya Maximets Oct. 9, 2025, 9:21 a.m. UTC
RTPROT_BGP was added in Linux v4.18.  We should define it if it's
not available, otherwise build fails on older kernels.

Fixes: 91fc51106cfe ("route-table: Support parsing multipath routes.")
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
---
 tests/test-lib-route-table.c | 5 +++++
 1 file changed, 5 insertions(+)

Comments

Kevin Traynor Oct. 10, 2025, 11:23 a.m. UTC | #1
On 09/10/2025 10:21, Ilya Maximets wrote:
> RTPROT_BGP was added in Linux v4.18.  We should define it if it's
> not available, otherwise build fails on older kernels.
> 
> Fixes: 91fc51106cfe ("route-table: Support parsing multipath routes.")
> Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
> ---
>  tests/test-lib-route-table.c | 5 +++++
>  1 file changed, 5 insertions(+)

Acked-by: Kevin Traynor <ktraynor@redhat.com>
Eelco Chaudron Oct. 10, 2025, 11:48 a.m. UTC | #2
On 9 Oct 2025, at 11:21, Ilya Maximets wrote:

> RTPROT_BGP was added in Linux v4.18.  We should define it if it's
> not available, otherwise build fails on older kernels.
>
> Fixes: 91fc51106cfe ("route-table: Support parsing multipath routes.")
> Signed-off-by: Ilya Maximets <i.maximets@ovn.org>

Acked-by: Eelco Chaudron <echaudro@redhat.com>
diff mbox series

Patch

diff --git a/tests/test-lib-route-table.c b/tests/test-lib-route-table.c
index 4d4fbe0d3..4ba17826e 100644
--- a/tests/test-lib-route-table.c
+++ b/tests/test-lib-route-table.c
@@ -33,6 +33,11 @@ 
 #define RTPROT_OVN 84
 #endif
 
+/* Definition was added in Linux v4.18. */
+#ifndef RTPROT_BGP
+#define RTPROT_BGP 186
+#endif
+
 static char *
 rt_prot_name(unsigned char p)
 {