Thread (13 messages) flat view 13 messages, 2 authors, 2021-06-07

Re: [RESEND net-next 1/2] net: hns3: add support for PTP

From: Richard Cochran <richardcochran@gmail.com>
Date: 2021-06-05 15:38:20
Also in: lkml

On Sat, Jun 05, 2021 at 05:54:45PM +0800, huangguangbin (A) wrote:
quoted
This won't work.  After all, the ISR thread might already be running.
Use a proper spinlock instead.
Thanks for review. Using spinlock in irq_handler looks heavy, what about
adding a new flag HCLGE_STATE_PTP_CLEANING_TX_HWTS for hclge_ptp_clean_tx_hwts()?
Function hclge_ptp_clean_tx_hwts() test and set this flag at the beginning
and clean it in the end. Do you think it is Ok?
No, I don't.  Use a proper lock.  Don't make vague arguments about how
it "looks heavy".

Thanks,
Richard
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help