forked from luigirizzo/netmap
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mvpp2: Ensure driver works with netmap buffers in pools
The previous change for populating the buffer pools with netmap buffers was incomplete in several ways: * The native driver resets the buffer offset when the mvpp2_open is called because it initialises the rx queues again. (e.g. when the device is made admin up) * Changing the mtu potentially switches between per-cpu and shared buffer pools which will interfere with the netmap use of queues. * Changing the mtu can alter which pools the port's queues may use which would interfere with the netmap pool use. To correct these: * Hook the rxq_offset_set call from the rxq init and set it according to netmap on state. * Hook the mtu change function to avoid the various troublesome interactions with the native driver, refuse changes that would not fit in the netmap buffer size. * Ensure the port rxq's are disabled before emptying them during netmap start and stop.
- Loading branch information
1 parent
606680f
commit d8dedd8
Showing
2 changed files
with
113 additions
and
18 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