tcpAccECN: Fix to increment ceb counter

Before this CL, if the ip_ecn is 0b11, program returns without updating
byte_count->ceb

Test: TH
Bug: 440448408
Flag: EXEMPT tcpAccECN program is not used
Change-Id: I37aeddcb6807c43787b4f3ca0db26f47ffe190df
This commit is contained in:
Motomu Utsumi 2025-08-28 17:49:54 +09:00
commit de403d30e4

View file

@ -311,7 +311,6 @@ DEFINE_BPF_PROG_KVER(schedcls, ingress_accecn_eth, , AID_SYSTEM, 6_1)
// update the map if CE is marked
if (ip_ecn == 0b11) {
__sync_fetch_and_add(ce_count, ce_packets);
return TC_ACT_PIPE;
}
if (byte_count) {
@ -565,7 +564,6 @@ DEFINE_BPF_PROG_KVER(schedcls, ingress_accecn_rawip, , AID_SYSTEM, 6_1)
// update the map if CE is marked
if (ip_ecn == 0b11) {
__sync_fetch_and_add(ce_count, ce_packets);
return TC_ACT_PIPE;
}
if (byte_count) {