mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-11 23:23:52 +08:00
r8169: let rtl8169_mark_to_asic clear rx descriptor field opts2
Clearing opts2 belongs to preparing the descriptor for DMA engine use. Therefore move it into rtl8169_mark_to_asic(). Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
6ee2425804
commit
047521d7b1
@ -3889,6 +3889,7 @@ static inline void rtl8169_mark_to_asic(struct RxDesc *desc)
|
||||
{
|
||||
u32 eor = le32_to_cpu(desc->opts1) & RingEnd;
|
||||
|
||||
desc->opts2 = 0;
|
||||
/* Force memory writes to complete before releasing descriptor */
|
||||
dma_wmb();
|
||||
|
||||
@ -4543,7 +4544,6 @@ process_pkt:
|
||||
u64_stats_update_end(&tp->rx_stats.syncp);
|
||||
}
|
||||
release_descriptor:
|
||||
desc->opts2 = 0;
|
||||
rtl8169_mark_to_asic(desc);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user