dpdk/examples/ip_pipeline/swq.h
<<
>>
Prefs
   1/* SPDX-License-Identifier: BSD-3-Clause
   2 * Copyright(c) 2010-2018 Intel Corporation
   3 */
   4
   5#ifndef _INCLUDE_SWQ_H_
   6#define _INCLUDE_SWQ_H_
   7
   8#include <stdint.h>
   9#include <sys/queue.h>
  10
  11#include <rte_ring.h>
  12
  13#include "common.h"
  14
  15struct swq {
  16        TAILQ_ENTRY(swq) node;
  17        char name[NAME_SIZE];
  18        struct rte_ring *r;
  19};
  20
  21TAILQ_HEAD(swq_list, swq);
  22
  23int
  24swq_init(void);
  25
  26struct swq *
  27swq_find(const char *name);
  28
  29struct swq_params {
  30        uint32_t size;
  31        uint32_t cpu_id;
  32};
  33
  34struct swq *
  35swq_create(const char *name, struct swq_params *params);
  36
  37#endif /* _INCLUDE_SWQ_H_ */
  38