Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1.14 Backports 2023-10-18 #28670

Merged
merged 2 commits into from
Oct 18, 2023

Commits on Oct 18, 2023

  1. endpoint: Remove GetLabelsLocked

    [ upstream commit 08903e0 ]
    
    Endpoint.GetLabelsLocked existed on the premise that selector cache could
    not be locked while endpoint has been locked, due to selector cache
    locking ip cache in some code paths. This does not seem to be correct, as
    ip cache calls in to selector cache, not the other way around.
    
    With this the Endpoint.GetLabelsLocked can be removed, and
    SelectorCache.GetLabelsLocked can be used instead also when calling from
    the Endpoint locked state. This is also in line with the commend on
    policy DistillPolicy that states that "PolicyOwner (aka Endpoint) is also
    locked during this call", and then within takes the Selector Cache read
    lock.
    
    Signed-off-by: Jarno Rajahalme <jarno@isovalent.com>
    jrajahalme committed Oct 18, 2023
    Configuration menu
    Copy the full SHA
    d26059c View commit details
    Browse the repository at this point in the history
  2. policy: Move GetNets to selectorcache

    [ upstream commit cb246d7 ]
    
    Have selector cache precompute the most specific CIDR for an identity
    when the identity is added, rathter than computing it when needed for
    each MapStateEntry.
    
    Signed-off-by: Jarno Rajahalme <jarno@isovalent.com>
    jrajahalme committed Oct 18, 2023
    Configuration menu
    Copy the full SHA
    d23282d View commit details
    Browse the repository at this point in the history