241 lines
4.1 KiB
HTML
241 lines
4.1 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of DEVLINK-PORT</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>DEVLINK-PORT</H1>
|
|
Section: Linux (8)<BR>Updated: 14 Mar 2016<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
devlink-port - devlink port configuration
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<P>
|
|
|
|
|
|
<BR>
|
|
|
|
<B>devlink</B>
|
|
|
|
[ <I>OPTIONS</I> ]
|
|
|
|
<B>port</B>
|
|
|
|
{ <I>COMMAND</I> |
|
|
|
|
<B>help</B> }
|
|
|
|
<P>
|
|
<P>
|
|
<BR>
|
|
|
|
<I>OPTIONS</I> := {
|
|
|
|
<B>-V</B>[<I>ersion</I>] |
|
|
<B>-n</B>[<I>no-nice-names</I>] }
|
|
<P>
|
|
<BR>
|
|
|
|
<B>devlink port set </B>
|
|
|
|
<I>DEV/PORT_INDEX</I>
|
|
|
|
[
|
|
|
|
<B>type</B> { <B>eth</B> | <B>ib</B> | <B>auto</B> }
|
|
|
|
]
|
|
|
|
<P>
|
|
<BR>
|
|
|
|
<B>devlink port split </B>
|
|
|
|
<I>DEV/PORT_INDEX</I>
|
|
|
|
<B>count</B>
|
|
|
|
<I>COUNT</I>
|
|
|
|
<P>
|
|
<BR>
|
|
|
|
<B>devlink port unsplit </B>
|
|
|
|
<I>DEV/PORT_INDEX</I>
|
|
|
|
<P>
|
|
<BR>
|
|
|
|
<B>devlink port show</B>
|
|
|
|
[ <I>DEV/PORT_INDEX</I> ]
|
|
|
|
<P>
|
|
<BR>
|
|
|
|
<B>devlink port help</B>
|
|
|
|
<P>
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
<A NAME="lbAE"> </A>
|
|
<H3>devlink port set - change devlink port attributes</H3>
|
|
|
|
<P>
|
|
<P>
|
|
|
|
<B>DEV/PORT_INDEX</B>
|
|
|
|
- specifies the devlink port to operate on.
|
|
<P>
|
|
|
|
Format is:
|
|
|
|
BUS_NAME/BUS_ADDRESS/PORT_INDEX
|
|
<P>
|
|
<DL COMPACT>
|
|
<DT id="1"><B>type</B> { <B>eth</B> | <B>ib</B> | <B>auto</B> }
|
|
|
|
<DD>
|
|
set port type
|
|
<P>
|
|
<I>eth</I>
|
|
|
|
- Ethernet
|
|
<P>
|
|
<I>ib</I>
|
|
|
|
- Infiniband
|
|
<P>
|
|
<I>auto</I>
|
|
|
|
- autoselect
|
|
<P>
|
|
</DL>
|
|
<A NAME="lbAF"> </A>
|
|
<H3>devlink port split - split devlink port into more</H3>
|
|
|
|
<P>
|
|
<P>
|
|
|
|
<B>DEV/PORT_INDEX</B>
|
|
|
|
- specifies the devlink port to operate on.
|
|
<P>
|
|
<DL COMPACT>
|
|
<DT id="2"><B>count</B><I> COUNT</I>
|
|
|
|
<DD>
|
|
number of ports to split to.
|
|
<P>
|
|
</DL>
|
|
<A NAME="lbAG"> </A>
|
|
<H3>devlink port unsplit - unsplit previously split devlink port</H3>
|
|
|
|
Could be performed on any split port of the same split group.
|
|
<P>
|
|
<P>
|
|
|
|
<B>DEV/PORT_INDEX</B>
|
|
|
|
- specifies the devlink port to operate on.
|
|
<P>
|
|
<A NAME="lbAH"> </A>
|
|
<H3>devlink port show - display devlink port attributes</H3>
|
|
|
|
<P>
|
|
<P>
|
|
|
|
<I>DEV/PORT_INDEX</I>
|
|
|
|
- specifies the devlink port to show.
|
|
If this argument is omitted all ports are listed.
|
|
<P>
|
|
<A NAME="lbAI"> </A>
|
|
<H2>EXAMPLES</H2>
|
|
|
|
<P>
|
|
|
|
devlink port show
|
|
<DL COMPACT><DT id="3"><DD>
|
|
Shows the state of all devlink ports on the system.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
devlink port show pci/0000:01:00.0/1
|
|
<DL COMPACT><DT id="4"><DD>
|
|
Shows the state of specified devlink port.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
devlink port set pci/0000:01:00.0/1 type eth
|
|
<DL COMPACT><DT id="5"><DD>
|
|
Set type of specified devlink port to Ethernet.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
devlink port split pci/0000:01:00.0/1 count 4
|
|
<DL COMPACT><DT id="6"><DD>
|
|
Split the specified devlink port into four ports.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
devlink port unsplit pci/0000:01:00.0/1
|
|
<DL COMPACT><DT id="7"><DD>
|
|
Unplit the specified previously split devlink port.
|
|
</DL>
|
|
|
|
<P>
|
|
<A NAME="lbAJ"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?8+devlink">devlink</A></B>(8),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?8+devlink-dev">devlink-dev</A></B>(8),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?8+devlink-sb">devlink-sb</A></B>(8),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?8+devlink-monitor">devlink-monitor</A></B>(8),
|
|
|
|
<BR>
|
|
|
|
<P>
|
|
<A NAME="lbAK"> </A>
|
|
<H2>AUTHOR</H2>
|
|
|
|
Jiri Pirko <<A HREF="mailto:jiri@mellanox.com">jiri@mellanox.com</A>>
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="8"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="9"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="10"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DL>
|
|
<DT id="11"><A HREF="#lbAE">devlink port set - change devlink port attributes</A><DD>
|
|
<DT id="12"><A HREF="#lbAF">devlink port split - split devlink port into more</A><DD>
|
|
<DT id="13"><A HREF="#lbAG">devlink port unsplit - unsplit previously split devlink port</A><DD>
|
|
<DT id="14"><A HREF="#lbAH">devlink port show - display devlink port attributes</A><DD>
|
|
</DL>
|
|
<DT id="15"><A HREF="#lbAI">EXAMPLES</A><DD>
|
|
<DT id="16"><A HREF="#lbAJ">SEE ALSO</A><DD>
|
|
<DT id="17"><A HREF="#lbAK">AUTHOR</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:06:11 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|