[ovs-git] Open vSwitch: ofproto: Add "ofproto/trace" command to help debugging flow tables. (master)

dev at openvswitch.org dev at openvswitch.org
Thu Dec 9 23:01:51 UTC 2010


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Open vSwitch".

The branch, master has been updated
       via  7aa697ddd2dfe494693be590ae5b03cbec5f9944 (commit)
       via  f29152ca40cf8b4c15d0494160dd2865ab7f0eb0 (commit)
       via  78090f6300df053914954794301e44a2df1f6d57 (commit)
      from  8961de6adfd44216f47007ff75fd1cea213d7e31 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 7aa697ddd2dfe494693be590ae5b03cbec5f9944
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=7aa697ddd2dfe494693be590ae5b03cbec5f9944
Author: Ben Pfaff <blp at nicira.com>
		
ofproto: Add "ofproto/trace" command to help debugging flow tables.
		
With an appropriate flow table, output from a command like this:

ovs-appctl ofproto/trace system at dp0 0 0 ffffffffffff000c29f49d5c080600010
80006040001000c29f49d5cac10008a000000000000ac1004df00000000000000000000000000000
0000000

resembles the following:

Packet: -8:00:00.000000 00:0c:29:f4:9d:5c > ff:ff:ff:ff:ff:ff, ethertype ARP (0x
0806), length 60: arp who-has 172.16.4.223 tell 172.16.0.138
Flow: tunnel0:in_port0000:tci(0) mac00:0c:29:f4:9d:5c->ff:ff:ff:ff:ff:ff type080
6 proto1 tos0 ip172.16.0.138->172.16.4.223 port0->0
Rule: cookie=0 in_port=65534
OpenFlow actions=resubmit:1,mod_vlan_vid:5,resubmit:2,mod_vlan_pcp:6,strip_vlan

        Resubmitted flow: unchanged
        Rule: cookie=0 in_port=1
        OpenFlow actions=resubmit:3,resubmit:4

                Resubmitted flow: unchanged
                No match

                Resubmitted flow: unchanged
                No match

        Resubmitted flow: tunnel0:in_port0000:tci(vlan5,pcp0) mac00:0c:29:f4:9d:
5c->ff:ff:ff:ff:ff:ff type0806 proto1 tos0 ip172.16.0.138->172.16.4.223 port0->0
        No match

Final flow: tunnel0:in_port0000:tci(0) mac00:0c:29:f4:9d:5c->ff:ff:ff:ff:ff:ff t
ype0806 proto1 tos0 ip172.16.0.138->172.16.4.223 port0->0
Datapath actions: set_tci(vid=5,pcp=0),set_tci(vid=5,pcp=6),strip_vlan


commit f29152ca40cf8b4c15d0494160dd2865ab7f0eb0
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=f29152ca40cf8b4c15d0494160dd2865ab7f0eb0
Author: Ben Pfaff <blp at nicira.com>
		
ofproto: Change xlate_actions() to take a structure.
		
An upcoming commit has a need to give xlate_actions() another parameter,
but it already has too many.  This commit improves the situation by making
xlate_actions()'s caller fill in a structure instead.

The action_xlate_ctx structure is kind of big and unwieldy because it
include a struct odp_actions, which is about 16 kB.  But work underway will
change that to a "struct ofpbuf", which is much more reasonable.


commit 78090f6300df053914954794301e44a2df1f6d57
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=78090f6300df053914954794301e44a2df1f6d57
Author: Ben Pfaff <blp at nicira.com>
		
ofpbuf: New function ofpbuf_put_hex().
		
This commit converts nx_match_from_string() to use this new function.  The
new function will also have another user in an upcoming commit.


-----------------------------------------------------------------------

Summary of changes:
 debian/openvswitch-switch.install |    2 +
 lib/nx-match.c                    |   30 +--
 lib/ofpbuf.c                      |   27 +++
 lib/ofpbuf.h                      |    1 +
 ofproto/automake.mk               |    4 +-
 ofproto/ofproto-unixctl.man       |   26 +++
 ofproto/ofproto.c                 |  421 +++++++++++++++++++++++++++----------
 utilities/automake.mk             |   13 ++
 utilities/ovs-openflowd.8.in      |    1 +
 utilities/ovs-pcap.1.in           |   26 +++
 utilities/ovs-pcap.in             |  104 +++++++++
 utilities/ovs-tcpundump.1.in      |   30 +++
 utilities/ovs-tcpundump.in        |   75 +++++++
 vswitchd/ovs-vswitchd.8.in        |    1 +
 14 files changed, 628 insertions(+), 133 deletions(-)
 create mode 100644 ofproto/ofproto-unixctl.man
 create mode 100644 utilities/ovs-pcap.1.in
 create mode 100755 utilities/ovs-pcap.in
 create mode 100644 utilities/ovs-tcpundump.1.in
 create mode 100755 utilities/ovs-tcpundump.in


hooks/post-receive
-- 
Open vSwitch




More information about the git mailing list