Skip to content
  • Moshe Shemesh's avatar
    mlx4: Add mlx4 initial parameters table and register it · bd1b51dc
    Moshe Shemesh authored
    
    
    Create initial parameters table for mlx4.
    The table consists of two generic parameters and two driver-specific
    parameters.
    Generic:
      internal_err_reset - Enable reset device on internal errors. This
      parameter can be configured on mlx4 either on runtime or during driver
      initialization.
      max_macs - Max number of MACs per ETH port. For mlx4 this parameter
      value range is between 1 and 128. This parameter can be configured on
      mlx4 only during driver initialization.
    Driver specific:
      enable_64b_cqe_eqe - Enable 64 byte CQEs/EQEs when the FW supports it.
      This parameter can be configured on mlx4 only during driver
      initialization.
      enable_4k_uar - Enable using 4K UAR. This parameter can be configured on
      mlx4 only during driver initialization.
    
    Register the parameters table on mlx4_init_one() and unregister on
    mlx4_remove_one().
    
    Signed-off-by: default avatarMoshe Shemesh <moshe@mellanox.com>
    Signed-off-by: default avatarJiri Pirko <jiri@mellanox.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    bd1b51dc