Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vsock: Move iter outside of while loop in process_rx_queue #411

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Commits on Sep 7, 2023

  1. vsock: Move iter outside of loop in process_rx_queue

    the iter() function is used for produce a queue iterator to iterate over
    the descriptors.
    
    But usually, it shouldn't be in the while loop, which might brings more
    unnecessary overhead.
    
    So move `iter` outside of the while loop.
    
    And the process_tx_queue has the same problem, maybe we can fix it, too.
    
    Signed-off-by: Li Zebin <cutelizebin@gmail.com>
    cutelizebin committed Sep 7, 2023
    Configuration menu
    Copy the full SHA
    be8a7ac View commit details
    Browse the repository at this point in the history
  2. vsock: Move iter outside of loop in process_tx_queue.

    the iter() function is used for produce a queue iterator to iterate over the descriptors.
    
    But usually, it shouldn't be in the while loop, which might brings more unnecessary overhead.
    
    So move iter outside of the while loop.
    
    Signed-off-by: Li Zebin <cutelizebin@gmail.com>
    cutelizebin committed Sep 7, 2023
    Configuration menu
    Copy the full SHA
    ae31c18 View commit details
    Browse the repository at this point in the history