feat: ⚡ 修改udp程序核绑定
This commit is contained in:
parent
3e587f356d
commit
d0b1650d7a
@ -38,6 +38,7 @@
|
|||||||
// Last modified time: 2025.05.03
|
// Last modified time: 2025.05.03
|
||||||
// Last Version: V1.0
|
// Last Version: V1.0
|
||||||
//----------------------------------------------------
|
//----------------------------------------------------
|
||||||
|
#define _GNU_SOURCE
|
||||||
#include <arpa/inet.h> // udp
|
#include <arpa/inet.h> // udp
|
||||||
#include <sched.h> // 绑定CPU
|
#include <sched.h> // 绑定CPU
|
||||||
#include <pthread.h> // thread
|
#include <pthread.h> // thread
|
||||||
@ -45,7 +46,7 @@
|
|||||||
#include <fcntl.h> // open()
|
#include <fcntl.h> // open()
|
||||||
#include <sys/mman.h> // MMAP
|
#include <sys/mman.h> // MMAP
|
||||||
//----------------------------------------------------
|
//----------------------------------------------------
|
||||||
#define _GNU_SOURCE
|
|
||||||
|
|
||||||
#define SERVER_IP_CASE52 "172.29.118.76" // IP
|
#define SERVER_IP_CASE52 "172.29.118.76" // IP
|
||||||
#define SERVER_PORT_CASE52 28864 // 端口
|
#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.");
|
UCP_PRINT_DEBUG("start transfering message.");
|
||||||
|
|
||||||
uint32_t size = 100;
|
// uint32_t size = 100;
|
||||||
char* buf;
|
// char* buf;
|
||||||
uint32_t availableSize,offset;
|
// uint32_t availableSize,offset;
|
||||||
uint8_t* ptr;
|
// uint8_t* ptr;
|
||||||
|
|
||||||
uint16_t cu_flag = C_PLANE;
|
// uint16_t cu_flag = C_PLANE;
|
||||||
HandleId_t handler;
|
// HandleId_t handler;
|
||||||
handler.port_id = 0;
|
handler.port_id = 0;
|
||||||
handler.inst_id = 0;
|
handler.inst_id = 0;
|
||||||
handler.type_id = CU_SPLIT;
|
handler.type_id = CU_SPLIT;
|
||||||
|
|
||||||
int32_t ret;
|
// int32_t ret;
|
||||||
uint8_t scs_id = 1; // NR 30K // 0; // NR 15K
|
uint8_t scs_id = 1; // NR 30K // 0; // NR 15K
|
||||||
uint8_t cell_id = 0; //0xFF;
|
uint8_t cell_id = 0; //0xFF;
|
||||||
uint32_t run_ape = 0x11;
|
uint32_t run_ape = 0x11;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user