Thanks for the reviews. I applied patches 2 through 7 to master.
On Tue, Jan 19, 2016 at 11:44:30AM -0800, Jarno Rajahalme wrote: > Acked-by: Jarno Rajahalme <ja...@ovn.org> > > > On Jan 18, 2016, at 11:26 PM, Ben Pfaff <b...@ovn.org> wrote: > > > > This call to ofpbuf_trim() comes from a time when the packets passed to > > pinsched came directly from a dpif. For some time now that's no longer > > true--now they are messages generated by ofputil_encode_packet_in(), which > > generally are well sized and do not benefit from trimming. > > > > This is not a bug fix--the code is equally correct either way, it's only > > the rationale for trimming that's obsolete. > > > > Signed-off-by: Ben Pfaff <b...@ovn.org> > > --- > > ofproto/pinsched.c | 13 +++---------- > > 1 file changed, 3 insertions(+), 10 deletions(-) > > > > diff --git a/ofproto/pinsched.c b/ofproto/pinsched.c > > index d81c9b3..c7118a6 100644 > > --- a/ofproto/pinsched.c > > +++ b/ofproto/pinsched.c > > @@ -1,5 +1,5 @@ > > /* > > - * Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013, 2014 Nicira, Inc. > > + * Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2016 Nicira, > > Inc. > > * > > * Licensed under the Apache License, Version 2.0 (the "License"); > > * you may not use this file except in compliance with the License. > > @@ -195,18 +195,11 @@ pinsched_send(struct pinsched *ps, ofp_port_t port_no, > > list_push_back(txq, &packet->list_node); > > } else { > > /* Otherwise queue it up for the periodic callback to drain out. */ > > - struct pinqueue *q; > > - > > - /* We might be called with a buffer obtained from dpif_recv() that > > has > > - * much more allocated space than actual content most of the time. > > - * Since we're going to store the packet for some time, free up > > that > > - * otherwise wasted space. */ > > - ofpbuf_trim(packet); > > - > > if (ps->n_queued * 1000 >= ps->token_bucket.burst) { > > drop_packet(ps); > > } > > - q = pinqueue_get(ps, port_no); > > + > > + struct pinqueue *q = pinqueue_get(ps, port_no); > > list_push_back(&q->packets, &packet->list_node); > > q->n++; > > ps->n_queued++; > > -- > > 2.1.3 > > > > _______________________________________________ > > dev mailing list > > dev@openvswitch.org > > http://openvswitch.org/mailman/listinfo/dev > _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev