|
@@ -1652,7 +1652,8 @@ static int be_setup(struct be_adapter *adapter)
|
|
|
if (status != 0)
|
|
|
goto mccqs_destroy;
|
|
|
|
|
|
- status = be_cmd_set_flow_control(adapter, true, true);
|
|
|
+ status = be_cmd_set_flow_control(adapter,
|
|
|
+ adapter->tx_fc, adapter->rx_fc);
|
|
|
if (status != 0)
|
|
|
goto mccqs_destroy;
|
|
|
return 0;
|
|
@@ -1909,6 +1910,10 @@ static void be_netdev_init(struct net_device *netdev)
|
|
|
|
|
|
adapter->rx_csum = true;
|
|
|
|
|
|
+ /* Default settings for Rx and Tx flow control */
|
|
|
+ adapter->rx_fc = true;
|
|
|
+ adapter->tx_fc = true;
|
|
|
+
|
|
|
netif_set_gso_max_size(netdev, 65535);
|
|
|
|
|
|
BE_SET_NETDEV_OPS(netdev, &be_netdev_ops);
|
|
@@ -2171,6 +2176,7 @@ static int be_suspend(struct pci_dev *pdev, pm_message_t state)
|
|
|
be_close(netdev);
|
|
|
rtnl_unlock();
|
|
|
}
|
|
|
+ be_cmd_get_flow_control(adapter, &adapter->tx_fc, &adapter->rx_fc);
|
|
|
be_clear(adapter);
|
|
|
|
|
|
pci_save_state(pdev);
|