You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kmod-redhat-mlx5_core/SOURCES/9009-add-NUM_FLOW_ACTIONS.p...

25 lines
1012 B

Index: src/drivers/net/ethernet/mellanox/mlx5/core/backport_compat.h
===================================================================
--- src.orig/drivers/net/ethernet/mellanox/mlx5/core/backport_compat.h 2020-07-15 10:38:44.900954789 +0200
+++ src/drivers/net/ethernet/mellanox/mlx5/core/backport_compat.h 2020-07-15 10:38:50.070957254 +0200
@@ -29,4 +29,7 @@
return true;
}
+
+#define NUM_FLOW_ACTIONS (FLOW_ACTION_MPLS_MANGLE + 1)
+
#endif
Index: src/drivers/net/ethernet/mellanox/mlx5/core/diag/en_tc_tracepoint.c
===================================================================
--- src.orig/drivers/net/ethernet/mellanox/mlx5/core/diag/en_tc_tracepoint.c 2020-07-15 10:38:44.900954789 +0200
+++ src/drivers/net/ethernet/mellanox/mlx5/core/diag/en_tc_tracepoint.c 2020-07-15 10:38:50.070957254 +0200
@@ -3,6 +3,7 @@
#define CREATE_TRACE_POINTS
#include "en_tc_tracepoint.h"
+#include "../backport_compat.h"
void put_ids_to_array(int *ids,
const struct flow_action_entry *entries,