ofproto: Avoid ofpbuf_clone() for OFPAT_CONTROLLER common case.
authorBen Pfaff <blp@nicira.com>
Tue, 10 Aug 2010 18:05:01 +0000 (11:05 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 27 Aug 2010 17:10:23 +0000 (10:10 -0700)
commit750638bbefd179b91f8fb3c9c1bde855af05cf45
tree95db34726c984aef7fad9233dce8eb25c08ae6cd
parent9dbb9d5e94d1db5a0fb5cb3867c26d7c3d07d0c4
ofproto: Avoid ofpbuf_clone() for OFPAT_CONTROLLER common case.

This additionally optimizes the common case of the first packet of a flow
that consists only of an OFPAT_CONTROLLER action, by avoiding an
ofpbuf_clone() call along that path.
ofproto/ofproto.c
ofproto/pktbuf.c