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

dpdk: add initial unittests for DPDK codebase v6 #12083

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Commits on Nov 3, 2024

  1. dpdk: transform static variable to function-guarded global variable

    To better control the values within the variables and to
    prepare for the follow-up unit tests, the variable was moved
    into global scope and should accessed only by functions.
    This allows reinstantination of the variable value - needed for
    unit tests.
    Lukas Sismis authored and lukashino committed Nov 3, 2024
    Configuration menu
    Copy the full SHA
    cd4ea87 View commit details
    Browse the repository at this point in the history
  2. dpdk: fix the CPU exclude logic

    The function would incorrectly perform XOR operation. While it
    worked when the worker cores were occupying all cores, it is
    still not correct operation. The example might be when a core
    would be affined to only management and not worker threads.
    With the XOR operation it would set affinity to also worker set.
    (1 XOR 0 -> 1 where in fact the desired outcome is 0)
    Lukas Sismis authored and lukashino committed Nov 3, 2024
    Configuration menu
    Copy the full SHA
    beb0df7 View commit details
    Browse the repository at this point in the history
  3. util-device: reset the device list after cleanup

    Lukas Sismis authored and lukashino committed Nov 3, 2024
    Configuration menu
    Copy the full SHA
    1d95d27 View commit details
    Browse the repository at this point in the history
  4. unittests: add skip directive to skip over unsupported unit tests

    For the upcoming changes, skipping a unit test might be beneficial
    when testing a function that retrieves hardware data. This can e.g. depend
    on the number of CPU cores and systems that does not meet the required
    test criteria will need to omit the tests.
    The tests should always target minimal system requirements
    Lukas Sismis authored and lukashino committed Nov 3, 2024
    Configuration menu
    Copy the full SHA
    4cc0fb7 View commit details
    Browse the repository at this point in the history
  5. affinity: change function guards and add function to meet minimal CPU…

    … requirements of tests
    Lukas Sismis authored and lukashino committed Nov 3, 2024
    Configuration menu
    Copy the full SHA
    a62e7da View commit details
    Browse the repository at this point in the history
  6. dpdk: add unit tests for mempool cache calculation and threading assi…

    …gnment
    
    Ticket: 6927
    Lukas Sismis authored and lukashino committed Nov 3, 2024
    Configuration menu
    Copy the full SHA
    b5e7520 View commit details
    Browse the repository at this point in the history

Commits on Nov 4, 2024

  1. dpdk: supress a warning of the bond function

    DPDK Bonding API has been changed in DPDK version 23.11 where
    the old *slave* API was marked as deprecated and the new *member*
    API was marked as experimental.
    This was unfortunately executed by marking both API variants
    at the same time. The deprecated version is removed from the follow
    up versions while the experimental version will become stable
    in the next DPDK releases. This is based on a policy in DPDK where
    an API change needs to merged in main for 1 stable release before
    removing the experimental flag.
    The patch request to do is ACKed:
    https://patches.dpdk.org/project/dpdk/patch/20241029204416.392274-1-sismis@cesnet.cz/
    Lukas Sismis authored and lukashino committed Nov 4, 2024
    Configuration menu
    Copy the full SHA
    9a0a020 View commit details
    Browse the repository at this point in the history
  2. github-ci: add DPDK v23.11.x to the build test

    Lukas Sismis authored and lukashino committed Nov 4, 2024
    Configuration menu
    Copy the full SHA
    962167c View commit details
    Browse the repository at this point in the history
  3. github-ci: bump up DPDK versions in the build test

    Lukas Sismis authored and lukashino committed Nov 4, 2024
    Configuration menu
    Copy the full SHA
    89203be View commit details
    Browse the repository at this point in the history