Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
This commit is contained in:
@@ -110,7 +110,7 @@ config DWMAC_ROCKCHIP
|
||||
|
||||
config DWMAC_SOCFPGA
|
||||
tristate "SOCFPGA dwmac support"
|
||||
default ARCH_SOCFPGA
|
||||
default (ARCH_SOCFPGA || ARCH_STRATIX10)
|
||||
depends on OF && (ARCH_SOCFPGA || ARCH_STRATIX10 || COMPILE_TEST)
|
||||
select MFD_SYSCON
|
||||
help
|
||||
|
@@ -112,7 +112,6 @@ struct stmmac_priv {
|
||||
u32 tx_count_frames;
|
||||
u32 tx_coal_frames;
|
||||
u32 tx_coal_timer;
|
||||
bool tx_timer_armed;
|
||||
|
||||
int tx_coalesce;
|
||||
int hwts_tx_en;
|
||||
|
@@ -3147,16 +3147,13 @@ static netdev_tx_t stmmac_xmit(struct sk_buff *skb, struct net_device *dev)
|
||||
* element in case of no SG.
|
||||
*/
|
||||
priv->tx_count_frames += nfrags + 1;
|
||||
if (likely(priv->tx_coal_frames > priv->tx_count_frames) &&
|
||||
!priv->tx_timer_armed) {
|
||||
if (likely(priv->tx_coal_frames > priv->tx_count_frames)) {
|
||||
mod_timer(&priv->txtimer,
|
||||
STMMAC_COAL_TIMER(priv->tx_coal_timer));
|
||||
priv->tx_timer_armed = true;
|
||||
} else {
|
||||
priv->tx_count_frames = 0;
|
||||
stmmac_set_tx_ic(priv, desc);
|
||||
priv->xstats.tx_set_ic_bit++;
|
||||
priv->tx_timer_armed = false;
|
||||
}
|
||||
|
||||
skb_tx_timestamp(skb);
|
||||
|
Reference in New Issue
Block a user