Skip to content

Instantly share code, notes, and snippets.

@thaihust
Forked from jshen28/ovs-cheat.md
Created April 21, 2021 08:14
Show Gist options
  • Save thaihust/66e992ee66dc54c06284da229dc48163 to your computer and use it in GitHub Desktop.
Save thaihust/66e992ee66dc54c06284da229dc48163 to your computer and use it in GitHub Desktop.

Revisions

  1. @jshen28 jshen28 revised this gist Feb 18, 2019. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions ovs-cheat.md
    Original file line number Diff line number Diff line change
    @@ -83,6 +83,10 @@ ovs-appctl ofproto/trace br-int tcp,in_port=3,vlan_tci=0x0000,dl_src=fa:16:3e:8d
    ovs-appctl ofproto/trace br-int arp,in_port=984,arp_tpa=172.31.0.14,arp_spa=172.31.0.15,dl_src=fa:16:3e:d0:1f:36,dl_dst=ff:ff:ff:ff:ff:ff
    ovs-appctl ofproto/trace br-int arp,in_port=984,dl_src=fa:16:3e:d0:1f:36,dl_dst=ff:ff:ff:ff:ff:ff

    # dhcp
    ovs-appctl ofproto/trace br-int udp,in_port=6,dl_src=fa:16:3e:d3:4d:e0,dl_dst=ff:ff:ff:ff:ff:ff,nw_dst=255.255.255.255,udp_dst=67,udp_src=68


    # history
    ovsdb-tool -mm show-log /etc/openvswitch/conf.db

  2. @jshen28 jshen28 revised this gist Dec 20, 2018. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions ovs-cheat.md
    Original file line number Diff line number Diff line change
    @@ -81,6 +81,7 @@ ovs-appctl ofproto/trace br-int in_port=6
    # http://flowgrammable.org/sdn/openflow/classifiers/
    ovs-appctl ofproto/trace br-int tcp,in_port=3,vlan_tci=0x0000,dl_src=fa:16:3e:8d:26:61,dl_dst=fa:16:3e:0d:f5:e6,nw_src=10.0.0.26,nw_dst=10.0.0.9,nw_tos=0,nw_ecn=0,nw_ttl=0,tp_src=0,tp_dst=22,tcp_flags=0
    ovs-appctl ofproto/trace br-int arp,in_port=984,arp_tpa=172.31.0.14,arp_spa=172.31.0.15,dl_src=fa:16:3e:d0:1f:36,dl_dst=ff:ff:ff:ff:ff:ff
    ovs-appctl ofproto/trace br-int arp,in_port=984,dl_src=fa:16:3e:d0:1f:36,dl_dst=ff:ff:ff:ff:ff:ff

    # history
    ovsdb-tool -mm show-log /etc/openvswitch/conf.db
  3. @jshen28 jshen28 revised this gist Dec 19, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion ovs-cheat.md
    Original file line number Diff line number Diff line change
    @@ -80,7 +80,7 @@ ovs-appctl ofproto/trace br-int in_port=6

    # http://flowgrammable.org/sdn/openflow/classifiers/
    ovs-appctl ofproto/trace br-int tcp,in_port=3,vlan_tci=0x0000,dl_src=fa:16:3e:8d:26:61,dl_dst=fa:16:3e:0d:f5:e6,nw_src=10.0.0.26,nw_dst=10.0.0.9,nw_tos=0,nw_ecn=0,nw_ttl=0,tp_src=0,tp_dst=22,tcp_flags=0
    ovs-appctl ofproto/trace br-int arp,in_port=984,arp_tpa=172.31.0.2,arp_spa=172.31.0.15,dl_src=fa:16:3e:d0:1f:36
    ovs-appctl ofproto/trace br-int arp,in_port=984,arp_tpa=172.31.0.14,arp_spa=172.31.0.15,dl_src=fa:16:3e:d0:1f:36,dl_dst=ff:ff:ff:ff:ff:ff

    # history
    ovsdb-tool -mm show-log /etc/openvswitch/conf.db
  4. @jshen28 jshen28 revised this gist Dec 19, 2018. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions ovs-cheat.md
    Original file line number Diff line number Diff line change
    @@ -80,6 +80,7 @@ ovs-appctl ofproto/trace br-int in_port=6

    # http://flowgrammable.org/sdn/openflow/classifiers/
    ovs-appctl ofproto/trace br-int tcp,in_port=3,vlan_tci=0x0000,dl_src=fa:16:3e:8d:26:61,dl_dst=fa:16:3e:0d:f5:e6,nw_src=10.0.0.26,nw_dst=10.0.0.9,nw_tos=0,nw_ecn=0,nw_ttl=0,tp_src=0,tp_dst=22,tcp_flags=0
    ovs-appctl ofproto/trace br-int arp,in_port=984,arp_tpa=172.31.0.2,arp_spa=172.31.0.15,dl_src=fa:16:3e:d0:1f:36

    # history
    ovsdb-tool -mm show-log /etc/openvswitch/conf.db
  5. @jshen28 jshen28 revised this gist Dec 19, 2018. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions ovs-cheat.md
    Original file line number Diff line number Diff line change
    @@ -60,6 +60,8 @@ ovs-appctl vlog/set dpdk:file:dbg

    ## CONTRACK

    Contrack could be used to implement a stateful filter. In openstack, it could be utilized to replace iptables which forces use of a intermediary linuxbridge to work.

    ```bash
    # http://docs.openvswitch.org/en/latest/tutorials/ovs-conntrack/
    # https://redhatstackblog.redhat.com/2016/07/22/how-connection-tracking-in-open-vswitch-helps-openstack-performance/
  6. @jshen28 jshen28 revised this gist Dec 19, 2018. 1 changed file with 6 additions and 1 deletion.
    7 changes: 6 additions & 1 deletion ovs-cheat.md
    Original file line number Diff line number Diff line change
    @@ -84,4 +84,9 @@ ovsdb-tool -mm show-log /etc/openvswitch/conf.db

    top -p `pidof ovs-vswitchd` -H -d1

    ```
    ```

    ## REFERNCES

    * [ovs-ofctl man page](http://www.openvswitch.org/support/dist-docs-2.5/ovs-ofctl.8.txt)
    * [man page for commands available](http://www.openvswitch.org/support/dist-docs-2.5/)
  7. @jshen28 jshen28 revised this gist Dec 18, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion ovs-cheat.md
    Original file line number Diff line number Diff line change
    @@ -6,7 +6,7 @@ ovs-vsctl list interface
    ovs-vsctl --columns=ofport,name list Interface
    ovs-vsctl --columns=ofport,name --format=table list Interface
    ovs-vsctl --format=table --columns=name,mac_in_use find Interface name=br-dpdk1
    ovs-vsctl get interface vhub656c3cb-23 name
    ovs-vsctl get interface vhub656c3cb-23 name/ofport

    ovs-vsctl set port vlan1729 tag=1729
    ovs-vsctl get port vlan1729 tag
  8. @jshen28 jshen28 revised this gist Dec 14, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion ovs-cheat.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    ## DB
    ## CTL

    ```bash
    ovs-vsctl list open_vswitch
  9. @jshen28 jshen28 revised this gist Dec 14, 2018. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions ovs-cheat.md
    Original file line number Diff line number Diff line change
    @@ -64,6 +64,8 @@ ovs-appctl vlog/set dpdk:file:dbg
    # http://docs.openvswitch.org/en/latest/tutorials/ovs-conntrack/
    # https://redhatstackblog.redhat.com/2016/07/22/how-connection-tracking-in-open-vswitch-helps-openstack-performance/

    # This feature simplifies architecture and linux bridge which is used
    # to implement iptables is no longer necessary
    ovs-appctl dpctl/dump-conntrack
    ```

  10. @jshen28 jshen28 revised this gist Dec 14, 2018. 1 changed file with 24 additions and 9 deletions.
    33 changes: 24 additions & 9 deletions ovs-cheat.md
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,6 @@
    **DB**
    ```
    ## DB

    ```bash
    ovs-vsctl list open_vswitch
    ovs-vsctl list interface
    ovs-vsctl --columns=ofport,name list Interface
    @@ -22,8 +23,9 @@ ovs-vsctl clear Bridge br0 stp_enable
    ovs-vsctl --may-exist add-br br0 -- set bridge br0 datapath_type=netdev
    ovs-vsctl --if-exists del-br br0
    ```
    **Flows**
    ```
    ## FLOWS

    ```bash
    ovs-ofctl -O OpenFlow13 dump-flows br-int | cut -d',' -f3,6,7-

    ovs-appctl dpif/show
    @@ -38,8 +40,8 @@ ovs-appctl dpctl/dump-flows
    ovs-appctl dpctl/dump-flows system@ovs-system
    ovs-appctl dpctl/dump-flows netdev@ovs-netdev
    ```
    **DPDK**
    ```
    ## DPDK
    ```bash
    ovs-appctl dpif/show
    ovs-ofctl dump-ports br-int
    ovs-appctl dpctl/dump-flows
    @@ -48,13 +50,26 @@ ovs-appctl dpif-netdev/pmd-stats-show
    ovs-appctl dpif-netdev/pmd-stats-clear
    ovs-appctl dpif-netdev/pmd-rxq-show
    ```
    **Debug log**
    ```

    ## Debug log

    ```bash
    ovs-appctl vlog/list | grep dpdk
    ovs-appctl vlog/set dpdk:file:dbg
    ```
    **Misc**

    ## CONTRACK

    ```bash
    # http://docs.openvswitch.org/en/latest/tutorials/ovs-conntrack/
    # https://redhatstackblog.redhat.com/2016/07/22/how-connection-tracking-in-open-vswitch-helps-openstack-performance/

    ovs-appctl dpctl/dump-conntrack
    ```

    ## Misc

    ```bash
    ovs-appctl fdb/show brbm

    ovs-appctl ofproto/trace br-int in_port=6
  11. @jshen28 jshen28 revised this gist Dec 11, 2018. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions ovs-cheat.md
    Original file line number Diff line number Diff line change
    @@ -59,6 +59,7 @@ ovs-appctl fdb/show brbm
    ovs-appctl ofproto/trace br-int in_port=6
    # http://flowgrammable.org/sdn/openflow/classifiers/
    ovs-appctl ofproto/trace br-int tcp,in_port=3,vlan_tci=0x0000,dl_src=fa:16:3e:8d:26:61,dl_dst=fa:16:3e:0d:f5:e6,nw_src=10.0.0.26,nw_dst=10.0.0.9,nw_tos=0,nw_ecn=0,nw_ttl=0,tp_src=0,tp_dst=22,tcp_flags=0
    # history
  12. @jshen28 jshen28 revised this gist Dec 11, 2018. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions ovs-cheat.md
    Original file line number Diff line number Diff line change
    @@ -11,6 +11,7 @@ ovs-vsctl set port vlan1729 tag=1729
    ovs-vsctl get port vlan1729 tag
    ovs-vsctl remove port vlan1729 tag 1729
    # https://kashyapc.fedorapeople.org/virt/openvswitch/ovs-vlan-internal-port.txt
    ovs-vsctl add-port br-bond1 sjt-test tag=1002 -- set inerface sjt-test type=internal
    # not sure this is best
  13. @jshen28 jshen28 revised this gist Dec 11, 2018. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions ovs-cheat.md
    Original file line number Diff line number Diff line change
    @@ -11,6 +11,8 @@ ovs-vsctl set port vlan1729 tag=1729
    ovs-vsctl get port vlan1729 tag
    ovs-vsctl remove port vlan1729 tag 1729
    ovs-vsctl add-port br-bond1 sjt-test tag=1002 -- set inerface sjt-test type=internal
    # not sure this is best
    ovs-vsctl set interface vlan1729 mac='5c\:b9\:01\:8d\:3e\:9d'
  14. @djoreilly djoreilly revised this gist Jun 5, 2018. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions ovs-cheat.md
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,6 @@
    **DB**
    ```
    ovs-vsctl list open_vswitch
    ovs-vsctl list interface
    ovs-vsctl --columns=ofport,name list Interface
    ovs-vsctl --columns=ofport,name --format=table list Interface
  15. @djoreilly djoreilly revised this gist May 3, 2018. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions ovs-cheat.md
    Original file line number Diff line number Diff line change
    @@ -60,4 +60,6 @@ ovs-appctl ofproto/trace br-int tcp,in_port=3,vlan_tci=0x0000,dl_src=fa:16:3e:8d
    # history
    ovsdb-tool -mm show-log /etc/openvswitch/conf.db
    top -p `pidof ovs-vswitchd` -H -d1
    ```
  16. @djoreilly djoreilly revised this gist Aug 30, 2017. 1 changed file with 3 additions and 2 deletions.
    5 changes: 3 additions & 2 deletions ovs-cheat.md
    Original file line number Diff line number Diff line change
    @@ -3,6 +3,7 @@
    ovs-vsctl list interface
    ovs-vsctl --columns=ofport,name list Interface
    ovs-vsctl --columns=ofport,name --format=table list Interface
    ovs-vsctl --format=table --columns=name,mac_in_use find Interface name=br-dpdk1
    ovs-vsctl get interface vhub656c3cb-23 name
    ovs-vsctl set port vlan1729 tag=1729
    @@ -54,9 +55,9 @@ ovs-appctl fdb/show brbm
    ovs-appctl ofproto/trace br-int in_port=6
    ovs-appctl ofproto/trace br-int tcp,in_port=3,vlan_tci=0x0000,dl_src=fa:16:3e:8d:26:61,dl_dst=fa:16:3e:0d:f5:e6,nw_src=10.0.0.26,nw_dst=10.0.0.9,nw_tos=0,nw_ecn=0,nw_ttl=0,tp_src=0,tp_dst=22,tcp_flags=0
    # history
    ovsdb-tool -mm show-log /etc/openvswitch/conf.db
    ovs-appctl ofproto/trace br-int tcp,in_port=3,vlan_tci=0x0000,dl_src=fa:16:3e:8d:26:61,dl_dst=fa:16:3e:0d:f5:e6,nw_src=10.0.0.26,nw_dst=10.0.0.9,nw_tos=0,nw_ecn=0,nw_ttl=0,tp_src=0,tp_dst=22,tcp_flags=0
    ```
  17. @djoreilly djoreilly revised this gist Aug 30, 2017. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions ovs-cheat.md
    Original file line number Diff line number Diff line change
    @@ -56,4 +56,7 @@ ovs-appctl ofproto/trace br-int in_port=6
    # history
    ovsdb-tool -mm show-log /etc/openvswitch/conf.db
    ovs-appctl ofproto/trace br-int tcp,in_port=3,vlan_tci=0x0000,dl_src=fa:16:3e:8d:26:61,dl_dst=fa:16:3e:0d:f5:e6,nw_src=10.0.0.26,nw_dst=10.0.0.9,nw_tos=0,nw_ecn=0,nw_ttl=0,tp_src=0,tp_dst=22,tcp_flags=0
    ```
  18. @djoreilly djoreilly revised this gist Aug 30, 2017. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion ovs-cheat.md
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,8 @@
    **DB**
    ```
    ovs-vsctl list interface
    ovs-vsctl -- --columns=ofport,name list Interface
    ovs-vsctl --columns=ofport,name list Interface
    ovs-vsctl --columns=ofport,name --format=table list Interface
    ovs-vsctl get interface vhub656c3cb-23 name
    ovs-vsctl set port vlan1729 tag=1729
  19. Darragh O'Reilly revised this gist May 8, 2017. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions ovs-cheat.md
    Original file line number Diff line number Diff line change
    @@ -37,6 +37,7 @@ ovs-appctl dpctl/dump-flows netdev@ovs-netdev
    ovs-appctl dpif/show
    ovs-ofctl dump-ports br-int
    ovs-appctl dpctl/dump-flows
    ovs-appctl dpctl/show --statistics
    ovs-appctl dpif-netdev/pmd-stats-show
    ovs-appctl dpif-netdev/pmd-stats-clear
    ovs-appctl dpif-netdev/pmd-rxq-show
  20. Darragh O'Reilly revised this gist Apr 20, 2017. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion ovs-cheat.md
    Original file line number Diff line number Diff line change
    @@ -37,7 +37,8 @@ ovs-appctl dpctl/dump-flows netdev@ovs-netdev
    ovs-appctl dpif/show
    ovs-ofctl dump-ports br-int
    ovs-appctl dpctl/dump-flows
    ovs-appctl dpif-netdev/pmd-stats-show
    ovs-appctl dpif-netdev/pmd-stats-show
    ovs-appctl dpif-netdev/pmd-stats-clear
    ovs-appctl dpif-netdev/pmd-rxq-show
    ```
    **Debug log**
  21. Darragh O'Reilly revised this gist Jan 18, 2017. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions ovs-cheat.md
    Original file line number Diff line number Diff line change
    @@ -29,6 +29,8 @@ ovs-ofctl --strict del-flows brbm priority=0,in_port=11,dl_src=00:05:95:41:ec:8c
    # kernel datapath
    ovs-dpctl dump-flows
    ovs-appctl dpctl/dump-flows
    ovs-appctl dpctl/dump-flows system@ovs-system
    ovs-appctl dpctl/dump-flows netdev@ovs-netdev
    ```
    **DPDK**
    ```
  22. Darragh O'Reilly revised this gist Jan 13, 2017. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions ovs-cheat.md
    Original file line number Diff line number Diff line change
    @@ -12,6 +12,9 @@ ovs-vsctl remove port vlan1729 tag 1729
    ovs-vsctl set interface vlan1729 mac='5c\:b9\:01\:8d\:3e\:9d'
    ovs-vsctl clear Bridge br0 stp_enable
    ovs-vsctl --may-exist add-br br0 -- set bridge br0 datapath_type=netdev
    ovs-vsctl --if-exists del-br br0
    ```
    **Flows**
    ```
  23. Darragh O'Reilly revised this gist Jan 5, 2017. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions ovs-cheat.md
    Original file line number Diff line number Diff line change
    @@ -25,6 +25,7 @@ ovs-ofctl --strict del-flows brbm priority=0,in_port=11,dl_src=00:05:95:41:ec:8c
    # kernel datapath
    ovs-dpctl dump-flows
    ovs-appctl dpctl/dump-flows
    ```
    **DPDK**
    ```
  24. Darragh O'Reilly revised this gist Jan 5, 2017. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions ovs-cheat.md
    Original file line number Diff line number Diff line change
    @@ -10,6 +10,8 @@ ovs-vsctl remove port vlan1729 tag 1729
    # not sure this is best
    ovs-vsctl set interface vlan1729 mac='5c\:b9\:01\:8d\:3e\:9d'
    ovs-vsctl clear Bridge br0 stp_enable
    ```
    **Flows**
    ```
  25. Darragh O'Reilly revised this gist Jan 5, 2017. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions ovs-cheat.md
    Original file line number Diff line number Diff line change
    @@ -20,6 +20,9 @@ ovs-ofctl show br-int | egrep "^ [0-9]"
    ovs-ofctl add-flow brbm priority=1,in_port=11,dl_src=00:05:95:41:ec:8c/ff:ff:ff:ff:ff:ff,actions=drop
    ovs-ofctl --strict del-flows brbm priority=0,in_port=11,dl_src=00:05:95:41:ec:8c
    # kernel datapath
    ovs-dpctl dump-flows
    ```
    **DPDK**
    ```
  26. Darragh O'Reilly revised this gist Jan 5, 2017. 1 changed file with 18 additions and 11 deletions.
    29 changes: 18 additions & 11 deletions ovs-cheat.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,4 @@
    **DB**
    ```
    ovs-vsctl list interface
    ovs-vsctl -- --columns=ofport,name list Interface
    @@ -9,30 +10,36 @@ ovs-vsctl remove port vlan1729 tag 1729
    # not sure this is best
    ovs-vsctl set interface vlan1729 mac='5c\:b9\:01\:8d\:3e\:9d'
    ```
    **Flows**
    ```
    ovs-ofctl -O OpenFlow13 dump-flows br-int | cut -d',' -f3,6,7-
    ovs-appctl dpif/show
    ovs-ofctl show br-int | egrep "^ [0-9]"
    ovs-ofctl add-flow brbm priority=1,in_port=11,dl_src=00:05:95:41:ec:8c/ff:ff:ff:ff:ff:ff,actions=drop
    ovs-ofctl --strict del-flows brbm priority=0,in_port=11,dl_src=00:05:95:41:ec:8c
    ovs-appctl fdb/show brbm
    ovs-appctl ofproto/trace br-int in_port=6
    # history
    ovsdb-tool -mm show-log /etc/openvswitch/conf.db
    ```
    **DPDK**
    ```
    ovs-appctl dpif/show
    ovs-ofctl dump-ports br-int
    ovs-appctl dpctl/dump-flows
    ovs-appctl dpif-netdev/pmd-stats-show
    ovs-appctl dpif-netdev/pmd-rxq-show
    ```
    **Debug log**
    ```
    ovs-appctl vlog/list | grep dpdk
    ovs-appctl vlog/set dpdk:file:dbg
    ```
    ovs-appctl vlog/list | grep dpdk
    ovs-appctl vlog/set dpdk:file:dbg
    ```
    **Misc**
    ```
    ovs-appctl fdb/show brbm
    ovs-appctl ofproto/trace br-int in_port=6
    # history
    ovsdb-tool -mm show-log /etc/openvswitch/conf.db
    ```
  27. Darragh O'Reilly revised this gist Jan 5, 2017. 1 changed file with 6 additions and 4 deletions.
    10 changes: 6 additions & 4 deletions ovs-cheat.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,4 @@
    ```
    ovs-vsctl list interface
    ovs-vsctl -- --columns=ofport,name list Interface
    ovs-vsctl get interface vhub656c3cb-23 name
    @@ -6,7 +7,7 @@ ovs-vsctl set port vlan1729 tag=1729
    ovs-vsctl get port vlan1729 tag
    ovs-vsctl remove port vlan1729 tag 1729
    _not sure this is best_
    # not sure this is best
    ovs-vsctl set interface vlan1729 mac='5c\:b9\:01\:8d\:3e\:9d'
    ovs-ofctl -O OpenFlow13 dump-flows br-int | cut -d',' -f3,6,7-
    @@ -20,15 +21,16 @@ ovs-appctl fdb/show brbm
    ovs-appctl ofproto/trace br-int in_port=6
    _history_
    # history
    ovsdb-tool -mm show-log /etc/openvswitch/conf.db

    ```
    **DPDK**
    ```
    ovs-ofctl dump-ports br-int
    ovs-appctl dpctl/dump-flows
    ovs-appctl dpif-netdev/pmd-stats-show
    ovs-appctl dpif-netdev/pmd-rxq-show

    ```
    **Debug log**
    ```
    ovs-appctl vlog/list | grep dpdk
  28. Darragh O'Reilly created this gist Jan 5, 2017.
    36 changes: 36 additions & 0 deletions ovs-cheat.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,36 @@
    ovs-vsctl list interface
    ovs-vsctl -- --columns=ofport,name list Interface
    ovs-vsctl get interface vhub656c3cb-23 name

    ovs-vsctl set port vlan1729 tag=1729
    ovs-vsctl get port vlan1729 tag
    ovs-vsctl remove port vlan1729 tag 1729

    _not sure this is best_
    ovs-vsctl set interface vlan1729 mac='5c\:b9\:01\:8d\:3e\:9d'

    ovs-ofctl -O OpenFlow13 dump-flows br-int | cut -d',' -f3,6,7-

    ovs-ofctl show br-int | egrep "^ [0-9]"

    ovs-ofctl add-flow brbm priority=1,in_port=11,dl_src=00:05:95:41:ec:8c/ff:ff:ff:ff:ff:ff,actions=drop
    ovs-ofctl --strict del-flows brbm priority=0,in_port=11,dl_src=00:05:95:41:ec:8c

    ovs-appctl fdb/show brbm

    ovs-appctl ofproto/trace br-int in_port=6

    _history_
    ovsdb-tool -mm show-log /etc/openvswitch/conf.db

    **DPDK**
    ovs-ofctl dump-ports br-int
    ovs-appctl dpctl/dump-flows
    ovs-appctl dpif-netdev/pmd-stats-show
    ovs-appctl dpif-netdev/pmd-rxq-show

    **Debug log**
    ```
    ovs-appctl vlog/list | grep dpdk
    ovs-appctl vlog/set dpdk:file:dbg
    ```