diff --git a/felix/dataplane/linux/bpf_ep_mgr.go b/felix/dataplane/linux/bpf_ep_mgr.go index d5d582d3ef6..bb45fb383f1 100644 --- a/felix/dataplane/linux/bpf_ep_mgr.go +++ b/felix/dataplane/linux/bpf_ep_mgr.go @@ -1124,13 +1124,19 @@ func (m *bpfEndpointManager) syncIfStateMap() { // about as we will not hear about that device again. for _, fn := range []func() int{ v.XDPPolicy, + } { + if idx := fn(); idx != -1 { + _ = jumpMapDeleteEntry(m.bpfmaps.XDPJumpMap, idx) + } + } + for _, fn := range []func() int{ v.IngressPolicy, v.EgressPolicy, v.TcIngressFilter, v.TcEgressFilter, } { if idx := fn(); idx != -1 { - _ = jumpMapDeleteEntry(m.bpfmaps.XDPJumpMap, idx) + _ = jumpMapDeleteEntry(m.bpfmaps.JumpMap, idx) } } } else {