• Maciej Fijalkowski's avatar
    ice: make ice_vsi_cfg_txq() static · a292ba98
    Maciej Fijalkowski authored
    Currently, XSK control path in ice driver calls directly
    ice_vsi_cfg_txq() whereas we have ice_vsi_cfg_single_txq() for that
    purpose. Use the latter from XSK side and make ice_vsi_cfg_txq() static.
    
    ice_vsi_cfg_txq() resides in ice_base.c and is rather big, so to reduce
    the code churn let us move the callers of it from ice_lib.c to
    ice_base.c.
    
    This change puts ice_qp_ena() on nice diet due to the checks and
    operations that ice_vsi_cfg_single_{r,t}xq() do internally.
    
    add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-182 (-182)
    Function                                     old     new   delta
    ice_xsk_pool_setup                          2165    1983    -182
    Total: Before=472597, After=472415, chg -0.04%
    Signed-off-by: default avatarMaciej Fijalkowski <maciej.fijalkowski@intel.com>
    Acked-by: default avatarMagnus Karlsson <magnus.karlsson@intel.com>
    Reviewed-by: default avatarSimon Horman <horms@kernel.org>
    Tested-by: Chandan Kumar Rout <chandanx.rout@intel.com> (A Contingent Worker at Intel)
    Signed-off-by: default avatarTony Nguyen <anthony.l.nguyen@intel.com>
    a292ba98
ice_base.h 1.4 KB