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

rxfilterperf: test both LWF and native XDP code paths #773

Merged
merged 2 commits into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -432,9 +432,12 @@ jobs:
- name: Prepare Machine
shell: PowerShell
run: tools/prepare-machine.ps1 -ForPerfTest -Platform ${{ matrix.platform }} -RequireNoReboot -Verbose
- name: Run rxfilter (drop)
- name: Run rxfilter (drop, generic)
shell: PowerShell
run: tools/rxfilterperf.ps1 -Config ${{ matrix.configuration }} -Platform ${{ matrix.platform }} -Verbose -Fndis -QueueCount 4 -Action Drop
run: tools/rxfilterperf.ps1 -Config ${{ matrix.configuration }} -Platform ${{ matrix.platform }} -Verbose -Fndis -QueueCount 4 -Action Drop -XdpMode Generic
- name: Run rxfilter (drop, native)
shell: PowerShell
run: tools/rxfilterperf.ps1 -Config ${{ matrix.configuration }} -Platform ${{ matrix.platform }} -Verbose -Fndis -QueueCount 4 -Action Drop -XdpMode Native
- name: Upload Logs
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882
if: ${{ always() }}
Expand Down
4 changes: 2 additions & 2 deletions tools/rxfilterperf.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ try {
Write-Verbose "Set-NetAdapterRss XDPMP -NumberOfReceiveQueues $QueueCount"
Set-NetAdapterRss XDPMP -NumberOfReceiveQueues $QueueCount

& "$RootDir\tools\log.ps1" -Start -Name rxfiltercpu -Profile CpuCswitchSample.Verbose -Config $Config -Platform $Platform
& "$RootDir\tools\log.ps1" -Start -Name rxfiltercpu_$XdpMode -Profile CpuCswitchSample.Verbose -Config $Config -Platform $Platform

$ArgList = `
"-IfIndex", (Get-NetAdapter -Name XDPMP).ifIndex, `
Expand Down Expand Up @@ -90,7 +90,7 @@ try {
Stop-Process -InputObject $RxFilterProcess
}

& "$RootDir\tools\log.ps1" -Stop -Name rxfiltercpu -Config $Config -Platform $Platform -ErrorAction 'Continue'
& "$RootDir\tools\log.ps1" -Stop -Name rxfiltercpu_$XdpMode -Config $Config -Platform $Platform -ErrorAction 'Continue'

& "$RootDir\tools\setup.ps1" -Uninstall xdpmp -Config $Config -Platform $Platform -ErrorAction 'Continue'
& "$RootDir\tools\setup.ps1" -Uninstall xdp -Config $Config -Platform $Platform -ErrorAction 'Continue'
Expand Down
Loading