From 68b9b0b124b441d590a8da66f4fd70fcafba86b2 Mon Sep 17 00:00:00 2001 From: gamemann Date: Fri, 18 Dec 2020 02:21:50 +0000 Subject: [PATCH] Update README. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 92b770e..3afe324 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,7 @@ ICMP options exist in the main filter array and start with `icmp_`. Please see b **Note** - Everything besides the main `enabled` and `action` options within a filter are **not** required. This means you do not have to define them within your config. -**Note** - As of right now, you can specify up to 55 maximum filters. This is due to the BPF map's max entries limitation while using `BPF_MAP_TYPE_ARRAY`. I don't believe we'd be able to use a per-CPU map for this as well because if we do, I don't believe we'd be able to reliably read the filters within the XDP program. If you want more filters, you could try using a hash map (changing the filter map's type to `BPF_MAP_TYPE_HASH`), but keep in mind lookups on the filters will be slower. +**Note** - As of right now, you can specify up to 100 maximum filters. This is due to BPF's max jump limit within the while loop. ## Configuration Example Here's an example of a config: