Skip to content
  • Jarno Rajahalme's avatar
    lib: Check match and action prerequisities with 'match'. · 67210a55
    Jarno Rajahalme authored
    
    
    Supply the match mask to prerequisities checking when available.  This
    allows checking for zero-valued matches.  Non-zero valued matches
    imply the presense of corresponding mask bits, but for zero valued
    matches we must explicitly check the mask, too.
    
    This is required now only for conntrack validity checking due to the
    conntrack state having and 'invalid' bit, but not 'valid' bit.  One
    way to match an valid conntrack state is to match on the 'tracked' bit
    being one and 'invalid' bit being zero.  The latter requires the
    corresponding mask bit be verified.
    
    Signed-off-by: default avatarJarno Rajahalme <jarno@ovn.org>
    Acked-by: default avatarJoe Stringer <joe@ovn.org>
    67210a55