#ifndef NETDEV_ODP_H #define NETDEV_ODP_H #include extern int odp_initialized; #ifdef ODP_NETDEV #include #include #include extern const odp_platform_init_t *platform_params; extern odp_instance_t odp_instance; /* This function is not exported, we need another way to deal with creating a packet from an dp_packet */ extern void odp_packet_parse(odp_packet_t pkt, size_t len, size_t l2_offset); void netdev_odp_register(void); void free_odp_buf(struct dp_packet *); int pmd_thread_setaffinity_cpu(int cpu); void odp_init(void); #else static inline void netdev_odp_register(void) { /* Nothing */ } static inline void free_odp_buf(struct dp_packet *buf OVS_UNUSED) { /* Nothing */ } #endif /* ODP_NETDEV */ #endif