mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-22 14:41:27 +00:00
ipg: fix Tx completion irq request
The current logic will only request an ack for the first pending packet. No irq is triggered as soon as the CPU submits a few packets a bit quickly. Let's request an irq for every packet instead. Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
This commit is contained in:
parent
dafdec746f
commit
47cccd7d7c
1 changed files with 1 additions and 4 deletions
|
@ -1934,10 +1934,7 @@ static int ipg_nic_hard_start_xmit(struct sk_buff *skb, struct net_device *dev)
|
||||||
*/
|
*/
|
||||||
if (sp->tenmbpsmode)
|
if (sp->tenmbpsmode)
|
||||||
txfd->tfc |= cpu_to_le64(IPG_TFC_TXINDICATE);
|
txfd->tfc |= cpu_to_le64(IPG_TFC_TXINDICATE);
|
||||||
else if (!((sp->tx_current - sp->tx_dirty + 1) >
|
txfd->tfc |= cpu_to_le64(IPG_TFC_TXDMAINDICATE);
|
||||||
IPG_FRAMESBETWEENTXDMACOMPLETES)) {
|
|
||||||
txfd->tfc |= cpu_to_le64(IPG_TFC_TXDMAINDICATE);
|
|
||||||
}
|
|
||||||
/* Based on compilation option, determine if FCS is to be
|
/* Based on compilation option, determine if FCS is to be
|
||||||
* appended to transmit frame by IPG.
|
* appended to transmit frame by IPG.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue