|
@@ -388,7 +388,6 @@ static int xgbe_get_coalesce(struct net_device *netdev,
|
|
ec->rx_coalesce_usecs = hw_if->riwt_to_usec(pdata, riwt);
|
|
ec->rx_coalesce_usecs = hw_if->riwt_to_usec(pdata, riwt);
|
|
ec->rx_max_coalesced_frames = pdata->rx_frames;
|
|
ec->rx_max_coalesced_frames = pdata->rx_frames;
|
|
|
|
|
|
- ec->tx_coalesce_usecs = pdata->tx_usecs;
|
|
|
|
ec->tx_max_coalesced_frames = pdata->tx_frames;
|
|
ec->tx_max_coalesced_frames = pdata->tx_frames;
|
|
|
|
|
|
DBGPR("<--xgbe_get_coalesce\n");
|
|
DBGPR("<--xgbe_get_coalesce\n");
|
|
@@ -402,13 +401,14 @@ static int xgbe_set_coalesce(struct net_device *netdev,
|
|
struct xgbe_prv_data *pdata = netdev_priv(netdev);
|
|
struct xgbe_prv_data *pdata = netdev_priv(netdev);
|
|
struct xgbe_hw_if *hw_if = &pdata->hw_if;
|
|
struct xgbe_hw_if *hw_if = &pdata->hw_if;
|
|
unsigned int rx_frames, rx_riwt, rx_usecs;
|
|
unsigned int rx_frames, rx_riwt, rx_usecs;
|
|
- unsigned int tx_frames, tx_usecs;
|
|
|
|
|
|
+ unsigned int tx_frames;
|
|
|
|
|
|
DBGPR("-->xgbe_set_coalesce\n");
|
|
DBGPR("-->xgbe_set_coalesce\n");
|
|
|
|
|
|
/* Check for not supported parameters */
|
|
/* Check for not supported parameters */
|
|
if ((ec->rx_coalesce_usecs_irq) ||
|
|
if ((ec->rx_coalesce_usecs_irq) ||
|
|
(ec->rx_max_coalesced_frames_irq) ||
|
|
(ec->rx_max_coalesced_frames_irq) ||
|
|
|
|
+ (ec->tx_coalesce_usecs) ||
|
|
(ec->tx_coalesce_usecs_irq) ||
|
|
(ec->tx_coalesce_usecs_irq) ||
|
|
(ec->tx_max_coalesced_frames_irq) ||
|
|
(ec->tx_max_coalesced_frames_irq) ||
|
|
(ec->stats_block_coalesce_usecs) ||
|
|
(ec->stats_block_coalesce_usecs) ||
|
|
@@ -457,7 +457,6 @@ static int xgbe_set_coalesce(struct net_device *netdev,
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
}
|
|
}
|
|
|
|
|
|
- tx_usecs = ec->tx_coalesce_usecs;
|
|
|
|
tx_frames = ec->tx_max_coalesced_frames;
|
|
tx_frames = ec->tx_max_coalesced_frames;
|
|
|
|
|
|
/* Check the bounds of values for Tx */
|
|
/* Check the bounds of values for Tx */
|
|
@@ -471,7 +470,6 @@ static int xgbe_set_coalesce(struct net_device *netdev,
|
|
pdata->rx_frames = rx_frames;
|
|
pdata->rx_frames = rx_frames;
|
|
hw_if->config_rx_coalesce(pdata);
|
|
hw_if->config_rx_coalesce(pdata);
|
|
|
|
|
|
- pdata->tx_usecs = tx_usecs;
|
|
|
|
pdata->tx_frames = tx_frames;
|
|
pdata->tx_frames = tx_frames;
|
|
hw_if->config_tx_coalesce(pdata);
|
|
hw_if->config_tx_coalesce(pdata);
|
|
|
|
|