Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net/iavf: add thread for event callbacks
[ upstream commit cb5c1b9 ] All callbacks registered for ethdev events are called in eal-intr-thread, and some of them execute virtchnl commands. Because interrupts are disabled in the intr thread, no response will be received for these commands. So all callbacks should be called in a new context. When the device is bonded, the bond pmd registers a callback for the LSC event to execute virtchnl commands to reinitialize the device, and it would also raise the above issue. This commit adds a new thread to call all event callbacks. Fixes: 48de41c ("net/avf: enable link status update") Fixes: 8410842 ("net/iavf: support asynchronous virtual channel message") Signed-off-by: Yiding Zhou <yidingx.zhou@intel.com> Acked-by: Qi Zhang <qi.z.zhang@intel.com>
- Loading branch information
1 parent
4ff81b5
commit c346009
Showing
3 changed files
with
154 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters