Skip to content

Commit

Permalink
app/vfe-vdpa: support 2k vdpa devices
Browse files Browse the repository at this point in the history
Change App, vfio container, vhost socket, memzone macro to support
2048 virtio devices.

RM: 3683525

Signed-off-by: Yajun Wu <yajunw@nvidia.com>
  • Loading branch information
yajwu committed Mar 15, 2024
1 parent cc829ff commit 4d1a025
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app/vfe-vdpa/vdpa_rpc.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#define MAX_IF_PATH_LEN 120
/* VDPA RPC */
#define VIRTNET_FEATURE_SZ 64
#define MAX_VDPA_SAMPLE_PORTS 1024
#define MAX_VDPA_SAMPLE_PORTS 2048
#define RTE_LOGTYPE_RPC RTE_LOGTYPE_USER1
#define VDPA_LOCAL_HOST "127.0.0.1"

Expand Down
4 changes: 2 additions & 2 deletions config/rte_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@
#define RTE_MAX_MEM_MB_PER_LIST 32768
#define RTE_MAX_MEMSEG_PER_TYPE 32768
#define RTE_MAX_MEM_MB_PER_TYPE 65536
#define RTE_MAX_MEMZONE 2560
#define RTE_MAX_MEMZONE 5120
#define RTE_MAX_TAILQ 32
#define RTE_LOG_DP_LEVEL RTE_LOG_INFO
#define RTE_BACKTRACE 1
#define RTE_MAX_VFIO_CONTAINERS 1024
#define RTE_MAX_VFIO_CONTAINERS 2048

/* bsd module defines */
#define RTE_CONTIGMEM_MAX_NUM_BUFS 64
Expand Down
2 changes: 1 addition & 1 deletion lib/vhost/fd_man.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include <poll.h>
#include <sys/time.h>

#define MAX_FDS 1024
#define MAX_FDS 2048

typedef void (*fd_cb)(int fd, void *dat, int *remove);

Expand Down
2 changes: 1 addition & 1 deletion lib/vhost/rte_vhost.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ extern "C" {
#define VHOST_USER_F_PROTOCOL_FEATURES 30
#endif

#define RTE_MAX_VHOST_DEVICE 1024
#define RTE_MAX_VHOST_DEVICE 2048

struct rte_vdpa_device;

Expand Down
2 changes: 1 addition & 1 deletion lib/vhost/rte_vhost_crypto.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ 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)
#define VHOST_CRYPTO_SESSION_MAP_ENTRIES (1024) /**< Max nb sessions */
#define VHOST_CRYPTO_SESSION_MAP_ENTRIES (2048) /**< Max nb sessions */
/** max nb virtual queues in a burst for finalizing*/
#define VIRTIO_CRYPTO_MAX_NUM_BURST_VQS (64)
#define VHOST_CRYPTO_MAX_IV_LEN (32)
Expand Down
2 changes: 1 addition & 1 deletion lib/vhost/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ struct vhost_user_connection {
TAILQ_ENTRY(vhost_user_connection) next;
};

#define MAX_VHOST_SOCKET 1024
#define MAX_VHOST_SOCKET 2048
struct vhost_user {
struct vhost_user_socket *vsockets[MAX_VHOST_SOCKET];
struct fdset fdset;
Expand Down

0 comments on commit 4d1a025

Please sign in to comment.