Commit Graph

102 Commits

Author SHA1 Message Date
luwenpeng
5a569f0781 perf: 优化通过Session ID查询流表的逻辑 2023-11-29 14:50:02 +08:00
luwenpeng
75237e905a perf: 优化Session Active的处理逻辑 2023-11-29 11:21:07 +08:00
luwenpeng
23dbb7720c 修改packet_io API的函数命名 2023-11-29 09:52:20 +08:00
luwenpeng
95abad41b5 perf: 优化通过四元组查询流表的实现(查表前先根据端口预判是否需要翻转四元组) 2023-11-28 16:36:58 +08:00
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
cbac7fea29 maat_plugin_table_get_ex_data的key从pointer改为integer以减少CPU的占用 2023-11-23 16:36:29 +08:00
luwenpeng
b48b58cd4c perf: 减少selected_sf_init的调用以降低CPU的使用 2023-11-23 11:20:50 +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
5f4ec8b4a9 perf: Add default dst MAC for VXLAN encapsulate when disable health_check_module 2023-10-23 19:27:59 +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
8f11f8381d perf: Optimize ATOMIC_READ 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
bb8c65002b TSG-16291 tsg-service-chaining-engine适配SERVICE_FUNCTION_PROFILE库表device_group字段的变更 2023-07-25 14:57:24 +08:00
wangmenglan
769ac0e53c 修改笔误 2023-07-13 18:07:24 +08:00
wangmenglan
1a7dba0b65 🐞 fix(TSG-14170): Health Check support None 2023-07-13 17:52:29 +08:00
luwenpeng
23d05e7fee TSG-15380 SCE适配MAAT4的maat_plugin_table_get_ex_data()接口变更 2023-06-06 10:47:16 +08:00
luwenpeng
dbfde6ce82 TSG-15278 bugfix: memleak 2023-05-26 19:22:31 +08:00
luwenpeng
79e71c4240 bugfix: SF Status Metrics 2023-05-15 11:31:50 +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
d1b04d50b8 TSG-14909 tsg-service-chaining-engine的service_function_status metrics适配vsys_id的变更 2023-04-26 15:04:04 +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
e5df6a84c0 TSG-14902 tsg-service-chaining-engine适配MAAT4的maat_options_set_stat_file 2023-04-25 11:54:52 +08:00
luwenpeng
4136cc3671 TSG-13837 decrypted traffic steering适配mrzcpd新增MR_BUFF_USER_0类型 2023-04-25 11:38:14 +08:00
luwenpeng
6243971b3f bufgfix: copy ctrl packet header 2023-04-19 16:18:55 +08:00
luwenpeng
30f1bda4d4 TSG-14599 tsg-service-chaining-engine支持新的Metrics结构 2023-04-10 18:48:27 +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