Organize codeand potentially increase performance in XDP program.

This commit is contained in:
Christian Deacon
2025-02-23 07:15:37 -05:00
parent 4e7c563274
commit e5c11bb20c
4 changed files with 6 additions and 6 deletions

View File

@@ -12,7 +12,7 @@
* @param now The current time since boot in nanoseconds.alignas
*
* @return void
*/
*/
static __always_inline void UpdateIpStats(u64 *pps, u64 *bps, u32 ip, u16 port, u8 protocol, u16 pkt_len, u64 now)
{
#ifdef USE_FLOW_RL
@@ -77,7 +77,7 @@ static __always_inline void UpdateIpStats(u64 *pps, u64 *bps, u32 ip, u16 port,
* @param now The current time since boot in nanoseconds.alignas
*
* @return void
*/
*/
static __always_inline void UpdateIp6Stats(u64 *pps, u64 *bps, u128 *ip, u16 port, u8 protocol, u16 pkt_len, u64 now)
{
#ifdef USE_FLOW_RL