Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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: 6 additions & 1 deletion docker-sonic-vpp/conf/startup.conf.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -301,5 +301,10 @@ plugins {

# Why not support sub interfaces
linux-cp {
lcp-auto-subint
Comment thread
lunyue-ms marked this conversation as resolved.
# lcp-auto-subint disabled so sairedis owns sub-port LCP pair creation
# explicitly (vpp_create_router_interface, SUB_PORT path: create_subif +
# configure_lcp_interface). With it enabled VPP would also auto-create the
# pair, colliding with the explicit one.
# lcp-auto-subint
lcp-sync
}
7 changes: 6 additions & 1 deletion docker-syncd-vpp/conf/startup.conf.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -289,5 +289,10 @@ plugins {

# Why not support sub interfaces
linux-cp {
lcp-auto-subint
# lcp-auto-subint disabled so sairedis owns sub-port LCP pair creation
# explicitly (vpp_create_router_interface, SUB_PORT path: create_subif +
# configure_lcp_interface). With it enabled VPP would also auto-create the
# pair, colliding with the explicit one.
# lcp-auto-subint
lcp-sync
}
2 changes: 1 addition & 1 deletion docs/HLD/SONICVPP-HLD.md
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ The following table summarizes the flow from configuration to VPP/LCP API for di
| **Front-Panel** | Loaded from `config_db.json` | `\|c\|SAI_OBJECT_TYPE_HOSTIF:oid:0xd000000000080`<br>`SAI_HOSTIF_ATTR_NAME=Ethernet0`| *vpp intf pre-created using generated `startup.conf` | `lcp_itf_pair_add_del(vpp_ifname,EthernetX)`<br><br>>`itf-pair: [0] bobm0 tap4096 Ethernet0 10 type tap` | N/A |
| **PortChannel** | sudo config portchannel add PortChannel10<br>sudo&nbsp;config&nbsp;portchannel&nbsp;member&nbsp;add&nbsp;PortChannel10&nbsp;Ethernet4 | `\|c\|SAI_OBJECT_TYPE_LAG:oid:0x2000000000095`<br>`\|c\|SAI_OBJECT_TYPE_LAG_MEMBER:oid:0x1b000000000096`<br>`SAI_LAG_MEMBER_ATTR_LAG_ID=oid:0x2000000000095` | `bond_create`<br>`bond_add_member` | `lcp_itf_pair_add_del(BondEthernetX,beX)`<br><br>>`itf-pair: [4] BondEthernet10 tap4099 be10 16 type tap` | `beX`<br>--><br>`PortChannelX` |
| **Loopback** | sudo config interface ip add Loopback0 10.0.0.1/32 | `\|c\|SAI_OBJECT_TYPE_ROUTE_ENTRY:{"dest":"10.0.0.1/32","` | `create_loopback_instance`<br>`sw_interface_add_del_address` | `lcp_itf_pair_add_del(loopX,tap_LoopbackX)`<br><br>>`itf-pair: [2] loop0 tap4098 tap_Loopback0 13 type tap` | `tap_LoopbackX`<br>--><br>`LoopbackX` |
| **Subinterface** | sudo config subinterface add Ethernet0.10 10 | `\|c\|SAI_OBJECT_TYPE_ROUTER_INTERFACE:oid:0x6000000000094`<br>`SAI_ROUTER_INTERFACE_ATTR_TYPE=SAI_ROUTER_INTERFACE_TYPE_SUB_PORT` | `create_subif`| `lcp_itf_pair_add_del` automatically invoked with `lcp-auto-subinf` enabled<br><br>>`itf-pair: [3] bobm0.10 tap4096.10 Ethernet0.10 14 type tap` | N/A, shares parent tap |
| **Subinterface** | sudo config subinterface add Ethernet0.10 10 | `\|c\|SAI_OBJECT_TYPE_ROUTER_INTERFACE:oid:0x6000000000094`<br>`SAI_ROUTER_INTERFACE_ATTR_TYPE=SAI_ROUTER_INTERFACE_TYPE_SUB_PORT` | `create_subif`| Explicit `configure_lcp_interface(bobmX.10, EthernetX.10)` from sairedis (with `lcp-auto-subint = disabled` in startup.conf)<br><br>>`itf-pair: [3] bobm0.10 tap4096.10 Ethernet0.10 14 type tap` | N/A, shares parent tap |


<a id="item-13"></a>
Expand Down