i40e: init flow control settings to disabled
Refactor flow control set up and disable L2 flow control by default. Change-Id: I2fe257b80df6d9a1e37deb4df118da8f8467040d Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com> Signed-off-by: Akeem G Abodunrin <akeem.g.abodunrin@intel.com> Tested-by: Kavindya Deegala <kavindya.s.deegala@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
parent
25946ddb11
commit
d52c20b7e4
2 changed files with 60 additions and 9 deletions
|
@ -276,12 +276,14 @@ static void i40e_get_pauseparam(struct net_device *netdev,
|
|||
((hw_link_info->an_info & I40E_AQ_AN_COMPLETED) ?
|
||||
AUTONEG_ENABLE : AUTONEG_DISABLE);
|
||||
|
||||
pause->rx_pause = 0;
|
||||
pause->tx_pause = 0;
|
||||
if (hw_link_info->an_info & I40E_AQ_LINK_PAUSE_RX)
|
||||
if (hw->fc.current_mode == I40E_FC_RX_PAUSE) {
|
||||
pause->rx_pause = 1;
|
||||
if (hw_link_info->an_info & I40E_AQ_LINK_PAUSE_TX)
|
||||
} else if (hw->fc.current_mode == I40E_FC_TX_PAUSE) {
|
||||
pause->tx_pause = 1;
|
||||
} else if (hw->fc.current_mode == I40E_FC_FULL) {
|
||||
pause->rx_pause = 1;
|
||||
pause->tx_pause = 1;
|
||||
}
|
||||
}
|
||||
|
||||
static u32 i40e_get_msglevel(struct net_device *netdev)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue