Skip to content

Commit

Permalink
vhost: fix missing header includes
Browse files Browse the repository at this point in the history
[ upstream commit 820778f ]

The vhost header files were missing definitions from headers to allow
them to be compiled up individually.

Fixes: d7280c9 ("vhost: support selective datapath")
Fixes: a49f758 ("vhost: split vDPA header file")
Fixes: 939066d ("vhost/crypto: add public function implementation")

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
  • Loading branch information
bruce-richardson authored and bluca committed Feb 4, 2021
1 parent 9a6e70d commit f00a750
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/librte_vhost/rte_vdpa.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
* Device specific vhost lib
*/

#include <stdint.h>

/** Maximum name length for statistics counters */
#define RTE_VDPA_STATS_NAME_SIZE 64

Expand Down
1 change: 1 addition & 0 deletions lib/librte_vhost/rte_vdpa_dev.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <stdbool.h>

#include "rte_vhost.h"
#include "rte_vdpa.h"

#define RTE_VHOST_QUEUE_ALL UINT16_MAX

Expand Down
8 changes: 8 additions & 0 deletions lib/librte_vhost/rte_vhost_crypto.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@
#ifndef _VHOST_CRYPTO_H_
#define _VHOST_CRYPTO_H_

#include <stdint.h>

#include <rte_compat.h>

/* pre-declare structs to avoid including full headers */
struct rte_mempool;
struct rte_crypto_op;

#define VHOST_CRYPTO_MBUF_POOL_SIZE (8192)
#define VHOST_CRYPTO_MAX_BURST_SIZE (64)
#define VHOST_CRYPTO_MAX_DATA_SIZE (4096)
Expand Down

0 comments on commit f00a750

Please sign in to comment.