Commit Graph

59 Commits

Author SHA1 Message Date
luwenpeng
699be92862 bypass_traffic只在nf_sce网卡生效 2023-11-24 18:53:58 +08:00
luwenpeng
eedd18183e perf: 优化session_ctx减少内存占用; 优化global metrics的结构 2023-11-24 15:40:58 +08:00
luwenpeng
bda50d79af perf: 删除无效代码;修改变量命名;减少内存分配 2023-11-24 11:37:24 +08:00
luwenpeng
4d630f7298 perf: release版本减少four_tuple_tostring和selected_chaining_bre的调用 2023-11-23 11:04:08 +08:00
luwenpeng
81679c4d22 perf: 减少marsio_buff_is_ctrlbuf的调用以提升性能 2023-11-22 16:33:52 +08:00
luwenpeng
d981c59dba perf: 减少marsio_buff_datalen的调用以提升性能 2023-11-22 16:18:04 +08:00
luwenpeng
8b714a5924 perf: 优化metrics的性能
* 使用自定义的HASH_KEYCMP代替memcmp, 优先比较sf_profile_id
    * 减少sf_metrics_inc函数入参的个数
2023-11-22 14:49:30 +08:00
luwenpeng
c3bd2fb939 perf: 将marsio_send_burst_with_options替换成marsio_send_burst和marsio_buff_set_metadata(MR_BUFF_REHASH_INDEX)以降低CPU 2023-11-21 19:08:30 +08:00
luwenpeng
332fe52650 perf: action_sf_chaining调用的小函数定义为inline 2023-11-21 11:20:48 +08:00
luwenpeng
b3841fcaff perf: VLAN封装在Eth头后插入VLAN头时memmove耗时较高 2023-11-21 10:46:00 +08:00
luwenpeng
dc305adb3b SCE适配Firewall控制报文变更: Reset All控制报文的mpack->Session ID为0,mbuffer->Payload Offset为0 2023-11-20 16:56:49 +08:00
luwenpeng
134d2c82b7 TSG-17749 tsg-service-chaining-engine更改VXLAN Frame源端口的计算方式 2023-11-20 10:31:21 +08:00
luwenpeng
9601137937 TSG-17728 tsg-service-chaining-engine增加日志字段 2023-11-16 11:00:23 +08:00
luwenpeng
b4c688c87c 重构Packet Parser 2023-11-14 18:04:02 +08:00
luwenpeng
07f41fc298 perf: 优化data packet的解析 2023-11-08 11:01:03 +08:00
luwenpeng
8fe574633b perf: rename addr_tuple4 to four_tuple 2023-11-08 10:20:27 +08:00
luwenpeng
3627addb85 perf: 优化策略扫描 2023-11-07 10:11:26 +08:00
luwenpeng
0753e8018c TSG-13684 tsg-service-chaining-engine使用VLAN封装Packet并执行Traffic Mirroring 2023-10-31 17:08:25 +08:00
luwenpeng
a49805a019 perf: Add min_timeout_ms on marsio_poll_wait(); Add thread local rx_buffs on marsio_recv_burst() 2023-10-23 19:27:59 +08:00
luwenpeng
8d1a9b3be5 perf: Optimize the output of global metrics to reduce atomic operations 2023-10-23 19:27:59 +08:00
luwenpeng
4f870de963 perf: Reduce str_to_mac() and inet_addr() calls 2023-10-23 19:27:59 +08:00
luwenpeng
49ccb5149f perf: Optimize IPID (Avoid the futex of rand() while ensuring that IPID increases monotonically) 2023-10-23 19:27:59 +08:00
luwenpeng
db517610e0 bugfix: send packet enable rehash 2023-10-15 23:10:00 +08:00
luwenpeng
2d9fecdf0f perf: 使用session_id替换rand(), 避免rand()中futex的开销 2023-10-11 15:20:43 +08:00
luwenpeng
dbfde6ce82 TSG-15278 bugfix: memleak 2023-05-26 19:22:31 +08:00
luwenpeng
69b5297d74 TSG-14939 tsg-service-chaining-engine收到policy_update控制报文后要发送log_update控制报文给tsg_master 2023-05-08 10:53:44 +08:00
luwenpeng
bd899c08f1 SCE支持动态更新sid list; SCE存储raw packet/decrypted packet共计4个方向的metadata 2023-05-06 11:06:41 +08:00
luwenpeng
1577f489c9 增加bypass_traffic调试开关
* bypass_traffic:0 disable
    * bypass_traffic:1 bypass all       traffic
    * bypass_traffic:2 bypass raw       traffic
    * bypass_traffic:3 bypass decrypted traffic
2023-05-04 17:56:15 +08:00
luwenpeng
a2d0f40f76 TSG-14649 tsg-service-chaining-engine适配新的控制报文格式 2023-05-04 11:06:20 +08:00
luwenpeng
989a118969 TSG-14908 tsg-service-chaining-engine的service_chaining_rule_hits metrics适配vsys_id的变更 2023-04-26 14:35:52 +08:00
luwenpeng
4136cc3671 TSG-13837 decrypted traffic steering适配mrzcpd新增MR_BUFF_USER_0类型 2023-04-25 11:38:14 +08:00
luwenpeng
e62ea7e9f9 增加测试用例
raw_pkt_mirr_block
    raw_pkt_mirr_bypass
    raw_pkt_mirr_forward
    raw_pkt_error_bypass
    raw_pkt_mirr_rx_drop
    raw_pkt_stee_rx_egress
2023-04-07 18:54:53 +08:00
luwenpeng
7215e0b545 TSG-14568 tsg-service-chaining-engine支持MAAT4 2023-04-07 16:12:10 +08:00
luwenpeng
0f45abedc8 TSG-14351 tsg-service-chaining-engine通过Mock Mrzcpd进行单元测试 2023-04-07 15:59:52 +08:00
luwenpeng
0e85d3c9c5 TSG-13837 支持decrypted traffic steering/mirroring,并重构packet_io 2023-04-07 15:59:52 +08:00
luwenpeng
66d6a266b4 TSG-14342 tsg-service-chaining-engine在空闲时调用marsio_poll_wait让出cpu供其他进程使用 2023-03-27 14:37:18 +08:00
luwenpeng
a1b1824de7 bugfix: TSG-14257 mirror block时客户端无法上网 2023-03-15 18:03:42 +08:00
luwenpeng
8d820e3213 bugfix: TSG-14162 使用strlen(meta->route_ctx)判断route_ctx是否为空时,遗漏route_ctx首字节为0的情况 2023-03-13 19:39:57 +08:00
luwenpeng
2038ded047 修正fieldstat的hit_bypass_pkt字段 2023-03-10 15:12:04 +08:00
luwenpeng
67985b6195 fieldstat的endp_rx_pkt字段不统计与第三方设备的BFD包活包 2023-03-10 11:56:04 +08:00
luwenpeng
4bdad6f429 当两个流session id冲突时执行bypass 2023-03-10 11:54:26 +08:00
luwenpeng
c56bc6a824 TSG-13698 tsg-service-chaining-engine向SAPP发送控制报文 2023-03-07 10:53:48 +08:00
luwenpeng
73486ef55d 修改fieldstat字段的命名 2023-03-02 12:10:03 +08:00
luwenpeng
e35429008a TSG-13822 tsg-service-chaining-engine最多支持32个Service Fuction 2023-03-02 11:33:49 +08:00
luwenpeng
8b265517bb bfd健康检查的dst ip与g_vxlan封装报文的dst ip保持一致, 并删除debug的代码 2023-03-02 11:19:20 +08:00
luwenpeng
69e80c1b9d 当第三方设备回注的数据包不是g_vxlan封装格式时,仅进行fielstat计数,不打印错误日志 2023-03-01 17:41:29 +08:00
luwenpeng
ecfcc3d2d8 TSG-13626 tsg-service-chaining-engine发送Metrics 2023-02-28 19:03:35 +08:00
luwenpeng
92af3e1fee TSG-13938 tsg-service-chaining-engine区分mirror和steering并更新fieldstat计数 2023-02-28 10:46:55 +08:00
luwenpeng
b06c0b77e1 使用marsio API获取dev_endpoint的MAC address 2023-02-24 15:32:37 +08:00
luwenpeng
7dd877cea8 fieldstat增加health check功能的计数 2023-02-24 14:44:46 +08:00