feat: 修改udp程序核绑定

This commit is contained in:
yuanQie 2025-05-20 20:17:18 +08:00
parent 3e587f356d
commit d0b1650d7a

View File

@ -38,6 +38,7 @@
// Last modified time: 2025.05.03
// Last Version: V1.0
//----------------------------------------------------
#define _GNU_SOURCE
#include <arpa/inet.h> // udp
#include <sched.h> // 绑定CPU
#include <pthread.h> // thread
@ -45,7 +46,7 @@
#include <fcntl.h> // open()
#include <sys/mman.h> // MMAP
//----------------------------------------------------
#define _GNU_SOURCE
#define SERVER_IP_CASE52 "172.29.118.76" // IP
#define SERVER_PORT_CASE52 28864 // 端口
@ -569,18 +570,18 @@ int32_t test_case(uint32_t argc, int32_t* argvp)
UCP_PRINT_DEBUG("start transfering message.");
uint32_t size = 100;
char* buf;
uint32_t availableSize,offset;
uint8_t* ptr;
// uint32_t size = 100;
// char* buf;
// uint32_t availableSize,offset;
// uint8_t* ptr;
uint16_t cu_flag = C_PLANE;
HandleId_t handler;
// uint16_t cu_flag = C_PLANE;
// HandleId_t handler;
handler.port_id = 0;
handler.inst_id = 0;
handler.type_id = CU_SPLIT;
int32_t ret;
// int32_t ret;
uint8_t scs_id = 1; // NR 30K // 0; // NR 15K
uint8_t cell_id = 0; //0xFF;
uint32_t run_ape = 0x11;