diff --git a/0233-virtio_user-bond4.patch b/0233-virtio_user-bond4.patch new file mode 100644 index 0000000000000000000000000000000000000000..a500505bd34aab9034091149e33050f2aff314de --- /dev/null +++ b/0233-virtio_user-bond4.patch @@ -0,0 +1,34 @@ +From 7db15f751083089bf8b9fda1e3187ce5c105d723 Mon Sep 17 00:00:00 2001 +From: hkk +Date: Tue, 30 Jul 2024 21:34:10 +0800 +Subject: [PATCH] virtio_user bond4 + +--- + src/lstack/core/lstack_virtio.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/lstack/core/lstack_virtio.c b/src/lstack/core/lstack_virtio.c +index f907a99..70b025c 100644 +--- a/src/lstack/core/lstack_virtio.c ++++ b/src/lstack/core/lstack_virtio.c +@@ -227,7 +227,7 @@ static int virtio_port_init(uint16_t port) + } + + for (uint16_t q = 0; q < tx_queue_num; q++) { +- retval = rte_eth_tx_queue_setup(port, q % mbuf_total_num, VIRTIO_TX_RX_RING_SIZE, ++ retval = rte_eth_tx_queue_setup(port, q, VIRTIO_TX_RX_RING_SIZE, + rte_eth_dev_socket_id(port), NULL); + if (retval < 0) { + LSTACK_LOG(ERR, LSTACK, "rte_eth_tx_queue_setup failed (queue %u) retval=%d \n", q, retval); +@@ -236,7 +236,7 @@ static int virtio_port_init(uint16_t port) + } + + for (uint16_t q = 0; q < rx_queue_num; q++) { +- struct rte_mempool *rxtx_mbuf_pool = get_protocol_stack_group()->total_rxtx_pktmbuf_pool[q]; ++ struct rte_mempool *rxtx_mbuf_pool = get_protocol_stack_group()->total_rxtx_pktmbuf_pool[q % mbuf_total_num]; + retval = rte_eth_rx_queue_setup(port, q, VIRTIO_TX_RX_RING_SIZE, rte_eth_dev_socket_id(port), + NULL, rxtx_mbuf_pool); + if (retval < 0) { +-- +2.33.0 + diff --git a/gazelle.spec b/gazelle.spec index 79e3502fbfbb352ed48ac36a8c8cc24896f5c30a..bb599e733c525eec2e439d26908e5850ac3a24ce 100644 --- a/gazelle.spec +++ b/gazelle.spec @@ -2,7 +2,7 @@ Name: gazelle Version: 1.0.2 -Release: 52 +Release: 53 Summary: gazelle is a high performance user-mode stack License: MulanPSL-2.0 URL: https://gitee.com/openeuler/gazelle @@ -246,7 +246,7 @@ Patch9226: 0226-support-kernel-connect.patch Patch9227: 0227-Check-the-return-of-lwip_init.patch Patch9228: 0228-vitio_user-modify-mbuf-index-for-bond4.patch Patch9229: 0229-fix-redis-coredump-when-hugetlbs-pagesize-is-1024M.patch - +Patch9230: 0233-virtio_user-bond4.patch %description %{name} is a high performance user-mode stack.