• Jacob Keller's avatar
    i40e: check current configured input set when adding ntuple filters · 36777d9f
    Jacob Keller authored
    Do not assume that hardware has been programmed with the default mask,
    but instead read the input set registers to determine what is currently
    programmed. This ensures that all programmed filters match exactly how
    the hardware will interpret them, avoiding confusion regarding filter
    behavior.
    
    This sets the initial ground-work for allowing custom input sets where
    some fields are disabled. A future patch will fully implement this
    feature.
    
    Instead of using bitwise negation, we'll just explicitly check for the
    correct value. The use of htonl and htons are used to silence sparse
    warnings. The compiler should be able to handle the constant value and
    avoid actually performing a byteswap.
    
    Change-Id: I3d8db46cb28ea0afdaac8c5b31a2bfb90e3a4102
    Signed-off-by: default avatarJacob Keller <jacob.e.keller@intel.com>
    Tested-by: default avatarAndrew Bowers <andrewx.bowers@intel.com>
    Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
    36777d9f
i40e.h 30.9 KB