瀏覽代碼

[e1000] Ensure descriptor is fully written before sending packet

Reported-by: Mark McLoughlin <markmc@redhat.com>
tags/v0.9.8
Michael Brown 16 年之前
父節點
當前提交
5e1ef98469
共有 1 個檔案被更改,包括 1 行新增0 行删除
  1. 1
    0
      src/drivers/net/e1000/e1000.c

+ 1
- 0
src/drivers/net/e1000/e1000.c 查看文件

588
 
588
 
589
 	/* Write new tail to NIC, making packet available for transmit
589
 	/* Write new tail to NIC, making packet available for transmit
590
 	 */
590
 	 */
591
+	wmb();
591
 	E1000_WRITE_REG ( hw, TDT, adapter->tx_tail );
592
 	E1000_WRITE_REG ( hw, TDT, adapter->tx_tail );
592
 
593
 
593
 	return 0;
594
 	return 0;

Loading…
取消
儲存