summaryrefslogtreecommitdiffstats
path: root/Makefile
AgeCommit message (Expand)AuthorFilesLines
2021-02-12build: add missing virtualenv dependencies for debian-10Andrew Yourtchenko1-0/+1
2021-02-09misc: Now that VOM is deprecated remove the build dependency on boostNeale Ranns1-2/+1
2021-02-04linux-cp: Linux Interface Mirroring for Control Plane IntegrationNeale Ranns1-0/+2
2021-01-21build: deprecate debian-9 supportDave Wallace1-4/+0
2021-01-20build: add python files to ctagsJerome Tollet1-1/+1
2021-01-15build: add missing openssl-devel package for centos-8 vpp-ext-depsDave Wallace1-1/+1
2021-01-11build: Add deps for ubuntu 20.10Pim van Pelt1-0/+6
2020-12-18misc: migrate from GNU indent to clang-formatDamjan Marion1-4/+9
2020-12-16build: remove centos-7 directive from MakefileDave Wallace1-3/+0
2020-12-15api: crchcecker ignore version < 1.0.0 and outside of src directoryOle Tr�an1-1/+1
2020-12-15api: crchcecker ignore version < 1.0.0 and outside of src directoryOle Troan1-1/+1
2020-12-14build: update ctags --tag-relative option used in make ctagsJerome Tollet1-1/+1
2020-12-08build: fix centos-8 'make install-deps' enable PowerTools repoDave Wallace1-1/+2
2020-10-24build: add compile_commands.json cleanup scriptDamjan Marion1-1/+3
2020-10-22build: add -E to sudo invocation in top-level MakefileDamjan Marion1-1/+1
2020-10-16misc: deprecate VOMDamjan Marion1-19/+0
2020-10-14build: add missing dnf-plugins-core package on centos-8Dave Wallace1-1/+1
2020-10-02build: fix build for debian testingChuan Han1-1/+3
2020-09-26build: remove OS distros which are EOLDave Wallace1-11/+0
2020-09-24build: fix missing openssl package on debian-10Dave Wallace1-0/+1
2020-09-21build: remove opensuse build infraDave Wallace1-47/+2
2020-09-18build: missing deb pkg on ubuntu-20.04Dave Wallace1-1/+1
2020-09-15build: fix the the build on centos/rhel 8Yichen Wang1-0/+1
2020-09-11build: fix build for Debian 9 and Debian 10Benoît Ganne1-0/+2
2020-09-02build: Fix 'make build VPP_EXTRA_CMAKE_ARGS=-DVPP_ENABLE_SANITIZE_ADDR=ON' er...jiangxiaoming1-2/+2
2020-08-31af_xdp: AF_XDP input pluginBenoît Ganne1-0/+1
2020-07-29build: Fix 'make install-deps' errors on aarch64 CentOS 7Jieqiang Wang1-1/+6
2020-06-15build: fix the build on centos8Yichen Wang1-1/+5
2020-06-04build: add libssl-dev library for ubuntu 20.04Jieqiang Wang1-0/+1
2020-05-15misc: fix ubuntu 20.04 python depsDamjan Marion1-7/+7
2020-05-09vppapigen: api crc checkerOle Troan1-0/+5
2020-05-08misc: add knob to generate compile_commands.jsonDamjan Marion1-0/+5
2020-04-30build: rework x86 CPU variantsDamjan Marion1-7/+2
2020-04-29misc: switch to clang-9Damjan Marion1-1/+1
2020-03-27build tests: fix 'test-wipe-papi' targetPaul Vinciguerra1-1/+1
2020-03-26build: use gcc-8 as default on ubuntu 18.04Damjan Marion1-0/+6
2020-03-22vppinfra: fix typo in dlmalloc.cDave Barach1-1/+7
2020-03-18build: add snap packaging (experimental)Dave Barach1-1/+17
2020-03-10build: add libssl-dev for ubuntu 16.04 and 18.04Jieqiang Wang1-0/+2
2020-02-07build: Makefile dep change for ubuntuEd Kern1-3/+5
2020-02-05build: Makefile dep changeEd Kern1-3/+3
2020-01-04misc: fix feature.yamlOle Troan1-5/+3
2019-12-20tests: don't prompt to launch gdb for sanity test casePaul Vinciguerra1-0/+2
2019-12-17build: Add missing package to MakefilePaul Vinciguerra1-2/+6
2019-12-17misc: Add CentOS 8 package supportRenato Botelho do Couto1-0/+10
2019-12-11docs: Rework the startup configuration sectionJohn DeNisco1-1/+1
2019-12-04build: fix make test with distributed srcDave Wallace1-19/+5
2019-11-21build: Update missing packagePaul Vinciguerra1-0/+1
2019-11-15build: fix docs/doxygen targetsDave Wallace1-3/+4
2019-11-15build: make checkstyle-* targets and cleanupDave Wallace1-17/+104
o">* vm, const char *sock_filename, u8 is_server, u32 * sw_if_index, u64 feature_mask, u8 renumber, u32 custom_dev_instance, u8 * hwaddr, u8 enable_gso); int vhost_user_modify_if (vnet_main_t * vnm, vlib_main_t * vm, const char *sock_filename, u8 is_server, u32 sw_if_index, u64 feature_mask, u8 renumber, u32 custom_dev_instance, u8 enable_gso); int vhost_user_delete_if (vnet_main_t * vnm, vlib_main_t * vm, u32 sw_if_index); /* *INDENT-OFF* */ typedef struct vhost_user_memory_region { u64 guest_phys_addr; u64 memory_size; u64 userspace_addr; u64 mmap_offset; } __attribute ((packed)) vhost_user_memory_region_t; typedef struct vhost_user_memory { u32 nregions; u32 padding; vhost_user_memory_region_t regions[VHOST_MEMORY_MAX_NREGIONS]; } __attribute ((packed)) vhost_user_memory_t; typedef struct { u32 index, num; } __attribute ((packed)) vhost_vring_state_t; typedef struct { u32 index, flags; u64 desc_user_addr, used_user_addr, avail_user_addr, log_guest_addr; } __attribute ((packed)) vhost_vring_addr_t; typedef struct vhost_user_log { u64 size; u64 offset; } __attribute ((packed)) vhost_user_log_t; typedef enum vhost_user_req { VHOST_USER_NONE = 0, VHOST_USER_GET_FEATURES = 1, VHOST_USER_SET_FEATURES = 2, VHOST_USER_SET_OWNER = 3, VHOST_USER_RESET_OWNER = 4, VHOST_USER_SET_MEM_TABLE = 5, VHOST_USER_SET_LOG_BASE = 6, VHOST_USER_SET_LOG_FD = 7, VHOST_USER_SET_VRING_NUM = 8, VHOST_USER_SET_VRING_ADDR = 9, VHOST_USER_SET_VRING_BASE = 10, VHOST_USER_GET_VRING_BASE = 11, VHOST_USER_SET_VRING_KICK = 12, VHOST_USER_SET_VRING_CALL = 13, VHOST_USER_SET_VRING_ERR = 14, VHOST_USER_GET_PROTOCOL_FEATURES = 15, VHOST_USER_SET_PROTOCOL_FEATURES = 16, VHOST_USER_GET_QUEUE_NUM = 17, VHOST_USER_SET_VRING_ENABLE = 18, VHOST_USER_MAX } vhost_user_req_t; // vring_desc I/O buffer descriptor typedef struct { uint64_t addr; // packet data buffer address uint32_t len; // packet data buffer size uint16_t flags; // (see below) uint16_t next; // optional index next descriptor in chain } __attribute ((packed)) vring_desc_t; typedef struct { uint16_t flags; volatile uint16_t idx; uint16_t ring[VHOST_VRING_MAX_SIZE]; } __attribute ((packed)) vring_avail_t; typedef struct { uint16_t flags; uint16_t idx; struct /* vring_used_elem */ { uint32_t id; uint32_t len; } ring[VHOST_VRING_MAX_SIZE]; } __attribute ((packed)) vring_used_t; typedef struct { u8 flags; u8 gso_type; u16 hdr_len; u16 gso_size; u16 csum_start; u16 csum_offset; } __attribute ((packed)) virtio_net_hdr_t; typedef struct { virtio_net_hdr_t hdr; u16 num_buffers; } __attribute ((packed)) virtio_net_hdr_mrg_rxbuf_t; typedef struct vhost_user_msg { vhost_user_req_t request; u32 flags; u32 size; union { u64 u64; vhost_vring_state_t state; vhost_vring_addr_t addr; vhost_user_memory_t memory; vhost_user_log_t log; }; } __attribute ((packed)) vhost_user_msg_t; /* *INDENT-ON* */ typedef struct { CLIB_CACHE_LINE_ALIGN_MARK (cacheline0); u16 qsz_mask; u16 last_avail_idx; u16 last_used_idx; u16 n_since_last_int; vring_desc_t *desc; vring_avail_t *avail; vring_used_t *used; uword desc_user_addr; uword used_user_addr; uword avail_user_addr; f64 int_deadline; u8 started; u8 enabled; u8 log_used; //Put non-runtime in a different cache line CLIB_CACHE_LINE_ALIGN_MARK (cacheline1); int errfd; u32 callfd_idx; u32 kickfd_idx; u64 log_guest_addr; /* The rx queue policy (interrupt/adaptive/polling) for this queue */ u32 mode; /* * It contains the device queue number. -1 if it does not. The idea is * to not invoke vnet_hw_interface_assign_rx_thread and * vnet_hw_interface_unassign_rx_thread more than once for the duration of * the interface even if it is disconnected and reconnected. */ i16 qid; } vhost_user_vring_t; #define VHOST_USER_EVENT_START_TIMER 1 #define VHOST_USER_EVENT_STOP_TIMER 2 typedef struct { CLIB_CACHE_LINE_ALIGN_MARK (cacheline0); u32 is_ready; u32 admin_up; u32 unix_server_index; u32 clib_file_index; char sock_filename[256]; int sock_errno; uword if_index; u32 hw_if_index, sw_if_index; //Feature negotiation u64 features; u64 feature_mask; u64 protocol_features; //Memory region information u32 nregions; vhost_user_memory_region_t regions[VHOST_MEMORY_MAX_NREGIONS]; void *region_mmap_addr[VHOST_MEMORY_MAX_NREGIONS]; u64 region_guest_addr_lo[VHOST_MEMORY_MAX_NREGIONS]; u64 region_guest_addr_hi[VHOST_MEMORY_MAX_NREGIONS]; u32 region_mmap_fd[VHOST_MEMORY_MAX_NREGIONS]; //Virtual rings vhost_user_vring_t vrings[VHOST_VRING_MAX_N]; volatile u32 *vring_locks[VHOST_VRING_MAX_N]; int virtio_net_hdr_sz; int is_any_layout; void *log_base_addr; u64 log_size; /* Whether to use spinlock or per_cpu_tx_qid assignment */ u8 use_tx_spinlock; u16 *per_cpu_tx_qid; u8 enable_gso; } vhost_user_intf_t; typedef struct { uword dst; uword src; u32 len; } vhost_copy_t; typedef struct { u16 qid; /** The interface queue index (Not the virtio vring idx) */ u16 device_index; /** The device index */ u32 virtio_ring_flags; /** Runtime queue flags **/ u16 first_desc_len; /** Length of the first data descriptor **/ virtio_net_hdr_mrg_rxbuf_t hdr; /** Virtio header **/ } vhost_trace_t; #define VHOST_USER_RX_BUFFERS_N (2 * VLIB_FRAME_SIZE + 2) #define VHOST_USER_COPY_ARRAY_N (4 * VLIB_FRAME_SIZE) typedef struct { u32 rx_buffers_len; u32 rx_buffers[VHOST_USER_RX_BUFFERS_N]; virtio_net_hdr_mrg_rxbuf_t tx_headers[VLIB_FRAME_SIZE]; vhost_copy_t copy[VHOST_USER_COPY_ARRAY_N]; /* This is here so it doesn't end-up * using stack or registers. */ vhost_trace_t *current_trace; } vhost_cpu_t; typedef struct { mhash_t if_index_by_sock_name; u32 mtu_bytes; vhost_user_intf_t *vhost_user_interfaces; u32 *show_dev_instance_by_real_dev_instance; u32 coalesce_frames; f64 coalesce_time; int dont_dump_vhost_user_memory; /** Per-CPU data for vhost-user */ vhost_cpu_t *cpus; /** Pseudo random iterator */ u32 random; /* The number of rx interface/queue pairs in interrupt mode */ u32 ifq_count; /* logging */ vlib_log_class_t log_default; /* gso interface count */ u32 gso_count; } vhost_user_main_t; typedef struct { u8 if_name[64]; u32 sw_if_index; u32 virtio_net_hdr_sz; u64 features; u8 is_server; u8 sock_filename[256]; u32 num_regions; int sock_errno; } vhost_user_intf_details_t; int vhost_user_dump_ifs (vnet_main_t * vnm, vlib_main_t * vm, vhost_user_intf_details_t ** out_vuids); extern vlib_node_registration_t vhost_user_send_interrupt_node; extern vnet_device_class_t vhost_user_device_class; extern vlib_node_registration_t vhost_user_input_node; extern vhost_user_main_t vhost_user_main; #endif /* * fd.io coding-style-patch-verification: ON * * Local Variables: * eval: (c-set-style "gnu") * End: */