fm10k: whitespace cleanups
Signed-off-by: Bruce Allan <bruce.w.allan@intel.com> Tested-by: Krishneil Singh <Krishneil.k.singh@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
committed by
Jeff Kirsher
parent
e214d85b4a
commit
a4fcad656e
@@ -322,6 +322,7 @@ static void fm10k_get_ethtool_stats(struct net_device *netdev,
|
||||
if ((interface->flags & FM10K_FLAG_DEBUG_STATS) && iov_data) {
|
||||
for (i = 0; i < iov_data->num_vfs; i++) {
|
||||
struct fm10k_vf_info *vf_info;
|
||||
|
||||
vf_info = &iov_data->vf_info[i];
|
||||
|
||||
/* skip stats if we don't have a vf info */
|
||||
@@ -1020,7 +1021,6 @@ static int fm10k_set_priv_flags(struct net_device *netdev, u32 priv_flags)
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
static u32 fm10k_get_reta_size(struct net_device __always_unused *netdev)
|
||||
{
|
||||
return FM10K_RETA_SIZE * FM10K_RETA_ENTRIES_PER_REG;
|
||||
|
||||
@@ -2140,6 +2140,7 @@ s32 fm10k_sm_mbx_init(struct fm10k_hw *hw, struct fm10k_mbx_info *mbx,
|
||||
{
|
||||
mbx->mbx_reg = FM10K_GMBX;
|
||||
mbx->mbmem_reg = FM10K_MBMEM_PF(0);
|
||||
|
||||
/* start out in closed state */
|
||||
mbx->state = FM10K_STATE_CLOSED;
|
||||
|
||||
|
||||
@@ -1890,8 +1890,7 @@ static void fm10k_slot_warn(struct fm10k_intfc *interface)
|
||||
* The OS initialization, configuring of the interface private structure,
|
||||
* and a hardware reset occur.
|
||||
**/
|
||||
static int fm10k_probe(struct pci_dev *pdev,
|
||||
const struct pci_device_id *ent)
|
||||
static int fm10k_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
|
||||
{
|
||||
struct net_device *netdev;
|
||||
struct fm10k_intfc *interface;
|
||||
|
||||
@@ -414,6 +414,7 @@ static s32 fm10k_update_xcast_mode_pf(struct fm10k_hw *hw, u16 glort, u8 mode)
|
||||
|
||||
if (mode > FM10K_XCAST_MODE_NONE)
|
||||
return FM10K_ERR_PARAM;
|
||||
|
||||
/* if glort is not valid return error */
|
||||
if (!fm10k_glort_valid_pf(hw, glort))
|
||||
return FM10K_ERR_PARAM;
|
||||
|
||||
@@ -442,6 +442,7 @@ static s32 fm10k_update_xcast_mode_vf(struct fm10k_hw *hw, u16 glort, u8 mode)
|
||||
|
||||
if (mode > FM10K_XCAST_MODE_NONE)
|
||||
return FM10K_ERR_PARAM;
|
||||
|
||||
/* generate message requesting to change xcast mode */
|
||||
fm10k_tlv_msg_init(msg, FM10K_VF_MSG_ID_LPORT_STATE);
|
||||
fm10k_tlv_attr_put_u8(msg, FM10K_LPORT_STATE_MSG_XCAST_MODE, mode);
|
||||
|
||||
Reference in New Issue
Block a user