Skip to content

Commit

Permalink
dpdk: Update documentation.
Browse files Browse the repository at this point in the history
Add usage info for ovs-vswitchd dpdk option. Update
INSTALL.DPDK file and man page.

Reported-by: Hari Sasank Bhamidipalli <[email protected]>
Signed-off-by: Pravin B Shelar <[email protected]>
Acked-by: Ben Pfaff <[email protected]>
Acked-by: Flavio Leitner <[email protected]>
  • Loading branch information
Pravin B Shelar committed Aug 12, 2014
1 parent c640e3c commit d127946
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ Greg Dahlman [email protected]
Gregor Schaffrath [email protected]
Guolin Yang [email protected]
Gur Stavi [email protected]
Hari Sasank Bhamidipalli [email protected]
Hassan Khan [email protected]
Hector Oron [email protected]
Henrik Amren [email protected]
Expand Down
5 changes: 2 additions & 3 deletions INSTALL.DPDK
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,6 @@ First setup DPDK devices:
0000:02:00.0 0000:02:00.1 bind module new_id remove_id uevent unbind

Prepare system:
- load ovs kernel module
e.g modprobe openvswitch
- mount hugetlbfs
e.g. mount -t hugetlbfs -o pagesize=1G none /mnt/huge/

Expand Down Expand Up @@ -101,7 +99,8 @@ Start ovsdb-server as discussed in INSTALL doc:

Start vswitchd:
DPDK configuration arguments can be passed to vswitchd via `--dpdk`
argument. dpdk arg -c is ignored by ovs-dpdk, but it is a required parameter
argument. This needs to be first argument passed to vswitchd process.
dpdk arg -c is ignored by ovs-dpdk, but it is a required parameter
for dpdk initialization.

e.g.
Expand Down
4 changes: 4 additions & 0 deletions vswitchd/ovs-vswitchd.8.in
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ only allow privileged users, such as the superuser, to use it.
\fBovs\-vswitchd\fR emits a log message if \fBmlockall()\fR is
unavailable or unsuccessful.
.
.SS "DPDK Options"
.IP "\fB\-\-dpdk\fR"
Initialize \fBovs\-vswitchd\fR DPDK datapath. Refer to INSTALL.DPDK
for details.
.SS "Daemon Options"
.ds DD \
\fBovs\-vswitchd\fR detaches only after it has connected to the \
Expand Down
2 changes: 2 additions & 0 deletions vswitchd/ovs-vswitchd.c
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,8 @@ usage(void)
stream_usage("DATABASE", true, false, true);
daemon_usage();
vlog_usage();
printf("\nDPDK options:\n"
" --dpdk options Initialize DPDK datapath.\n");
printf("\nOther options:\n"
" --unixctl=SOCKET override default control socket name\n"
" -h, --help display this help message\n"
Expand Down

0 comments on commit d127946

Please sign in to comment.