From c7972bcaccecba8f06cd1a594e2a1267d31f735c Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Thu, 8 Feb 2024 09:45:00 +0200 Subject: fix deprecation messages --- assets/ioriotng.png | Bin 951469 -> 951451 bytes main.go | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/ioriotng.png b/assets/ioriotng.png index 8f8abcb..4b08952 100644 Binary files a/assets/ioriotng.png and b/assets/ioriotng.png differ diff --git a/main.go b/main.go index 77fe40d..df21bae 100644 --- a/main.go +++ b/main.go @@ -20,11 +20,11 @@ func resizeMap(module *bpf.Module, name string, size uint32) error { return err } - if err = m.Resize(size); err != nil { + if err = m.SetMaxEntries(size); err != nil { return err } - if actual := m.GetMaxEntries(); actual != size { + if actual := m.MaxEntries(); actual != size { return fmt.Errorf("map resize failed, expected %v, actual %v", size, actual) } -- cgit v1.2.3