Skip to content

Commit

Permalink
Fix linker errors with older DPDK versions
Browse files Browse the repository at this point in the history
when __rte_cache_aligned was defined in rte_memory.h,
rather than in rte_common.h now.

Signed-off-by: Patrice Buriez <[email protected]>
Change-Id: Id6fb6d9adc8b1324ef436aab3897f898a9304e9c
  • Loading branch information
pburiez committed Dec 16, 2022
1 parent 37ac0f7 commit 52af0b5
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 1 deletion.
6 changes: 6 additions & 0 deletions VNFs/DPPD-PROX/handle_gen.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@
// 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>
Expand Down
5 changes: 5 additions & 0 deletions VNFs/DPPD-PROX/handle_lb_5tuple.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
// 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>
Expand Down
5 changes: 5 additions & 0 deletions VNFs/DPPD-PROX/hash_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
// 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>
Expand Down
5 changes: 5 additions & 0 deletions VNFs/DPPD-PROX/lconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@
#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"

Expand Down
6 changes: 5 additions & 1 deletion VNFs/DPPD-PROX/stats_task.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,12 @@
#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"

Expand Down

0 comments on commit 52af0b5

Please sign in to comment.