Skip to content

Commit

Permalink
app/vfe-vdpa: support RPC message and handle
Browse files Browse the repository at this point in the history
Support RPC message with application user
to configure VDPA.

Create RPC thread to handle RPC message from application.
Call the relation API rte_vdpa to trigger
driver configuration HW.

python file vhostmgmt as RPC example.
The following command as example:
python vhostmgmt -h
python vhostmgmt mgmtpf -h
python vhostmgmt mgmtpf -a 000:04:00.0
python vhostmgmt mgmtpf -r 000:04:00.0
python vhostmgmt mgmtpf -l
python vhostmgmt vf -p 000:04:00.3 -n 24 -q 256 -s 1024 -f 200000002 -t 2048 -m 00:11:22:33:44:55
python vhostmgmt vf -a 000:04:00.3 -v /tmp/sock1
python vhostmgmt vf -l 000:04:00.3
python vhostmgmt vf -i 000:04:00.3
python vhostmgmt vf -r 000:04:00.3
python vhostmgmt vf -h
python vhostmgmt vf -d 000:04:00.3 -o 1
python vhostmgmt vf -d 000:04:00.3 -o 4 -b 2 -e 4096 -g 4096

Signed-off-by: Li Zhang <lizh@nvidia.com>
  • Loading branch information
Li Zhang authored and kailiangz1 committed Jul 19, 2022
1 parent 2291a1d commit 60d8d8c
Show file tree
Hide file tree
Showing 7 changed files with 1,609 additions and 3 deletions.
1 change: 1 addition & 0 deletions app/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ apps = [
'test-pmd',
'test-regex',
'test-sad',
'vfe-vdpa',
]

default_cflags = machine_args + ['-DALLOW_EXPERIMENTAL_API']
Expand Down
Loading

0 comments on commit 60d8d8c

Please sign in to comment.