Skip to content

Commit

Permalink
test both LWF and native XDP code paths (#773)
Browse files Browse the repository at this point in the history
  • Loading branch information
mtfriesen authored Dec 19, 2024
1 parent d1a7d89 commit 3a7d795
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
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 CpuSample.Verbose -Config $Config -Platform $Platform
& "$RootDir\tools\log.ps1" -Start -Name rxfiltercpu_$XdpMode -Profile CpuSample.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

0 comments on commit 3a7d795

Please sign in to comment.