| Message ID | 20251009092228.382349-4-i.maximets@ovn.org |
|---|---|
| State | Accepted |
| Commit | 367d599605144369588c93067aff6d0af9bded79 |
| Headers | show |
| Series | Build fixes for OVS on old distributions. | expand |
| Context | Check | Description |
|---|---|---|
| ovsrobot/apply-robot | success | apply and check: success |
| ovsrobot/github-robot-_Build_and_Test | success | github build: passed |
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>
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 --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) {
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(+)