]> git.ipfire.org Git - thirdparty/linux.git/commit
net: txgbe: rework service event handling
authorJiawen Wu <jiawenwu@trustnetic.com>
Mon, 25 May 2026 10:05:43 +0000 (18:05 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 28 May 2026 09:51:51 +0000 (11:51 +0200)
commitf67aead16e85f7bae5b4c2546f8972e867cd0873
treefbaa8c827c778300568ba4b1394e32f247ba842e
parent58ac2f8eb050be93484f154d40f17511cd87164c
net: txgbe: rework service event handling

Convert to use test_and_clear_bit() for link event subtasks. Only re-arm
the WX_FLAG_NEED_MODULE_RESET flag when module is absent. Unsupported or
invalid modules no longer cause the service task to continuously retry
module identification.

Additionally, explicitly cancel service_task during device teardown to
ensure no pending asynchronous service work survives after the device
has entered the DOWN state.

Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>
Link: https://patch.msgid.link/20260525100543.27140-4-jiawenwu@trustnetic.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/wangxun/txgbe/txgbe_aml.c
drivers/net/ethernet/wangxun/txgbe/txgbe_aml.h
drivers/net/ethernet/wangxun/txgbe/txgbe_main.c