Fix linker errors with older DPDK versions 39/73739/1
authorPatrice Buriez <patrice.buriez@chenapan.org>
Fri, 16 Dec 2022 13:46:59 +0000 (13:46 +0000)
committerPatrice Buriez <patrice.buriez@chenapan.org>
Fri, 16 Dec 2022 13:46:59 +0000 (13:46 +0000)
when __rte_cache_aligned was defined in rte_memory.h,
rather than in rte_common.h now.

Signed-off-by: Patrice Buriez <patrice.buriez@chenapan.org>
Change-Id: Id6fb6d9adc8b1324ef436aab3897f898a9304e9c

VNFs/DPPD-PROX/handle_gen.c
VNFs/DPPD-PROX/handle_lb_5tuple.c
VNFs/DPPD-PROX/hash_utils.c
VNFs/DPPD-PROX/lconf.h
VNFs/DPPD-PROX/stats_task.h

index f625e01..a67b659 100644 (file)
 // See the License for the specific language governing permissions and
 // limitations under the License.
 */
+
+#include <rte_common.h>
+#ifndef __rte_cache_aligned
+#include <rte_memory.h>
+#endif
+
 #include <rte_mbuf.h>
 #include <pcap.h>
 #include <string.h>
index d320ca9..ec22938 100644 (file)
 // limitations under the License.
 */
 
+#include <rte_common.h>
+#ifndef __rte_cache_aligned
+#include <rte_memory.h>
+#endif
+
 #include <rte_hash.h>
 #include <rte_ether.h>
 #include <rte_memcpy.h>
index ad746d5..3922ef0 100644 (file)
 // limitations under the License.
 */
 
+#include <rte_common.h>
+#ifndef __rte_cache_aligned
+#include <rte_memory.h>
+#endif
+
 #include <string.h>
 #include <rte_hash_crc.h>
 #include <rte_table_hash.h>
index 8ac1112..09f59cd 100644 (file)
 #ifndef _LCONF_H_
 #define _LCONF_H_
 
+#include <rte_common.h>
+#ifndef __rte_cache_aligned
+#include <rte_memory.h>
+#endif
+
 #include "task_init.h"
 #include "stats.h"
 
index 9043fd6..001ebbc 100644 (file)
 #ifndef _STATS_TASK_H_
 #define _STATS_TASK_H_
 
-#include <inttypes.h>
 #include <rte_common.h>
+#ifndef __rte_cache_aligned
+#include <rte_memory.h>
+#endif
+
+#include <inttypes.h>
 
 #include "clock.h"