stream: Eliminate pstream_set_dscp().
authorBen Pfaff <blp@nicira.com>
Fri, 20 Feb 2015 16:44:48 +0000 (08:44 -0800)
committerAlex Wang <alexw@nicira.com>
Fri, 20 Feb 2015 21:38:27 +0000 (13:38 -0800)
commit611f766e77b3da91db98308794c0659a197d0ed1
tree97537854fa871a66ff243f014fa36df4a3b712b0
parenta62c715408caec1b8bff1861afaa45d561acab61
stream: Eliminate pstream_set_dscp().

This function is really of marginal utility.  This commit drops it and
makes the existing callers instead open a new pstream with the desired
dscp.

The ulterior motive here is that the set_dscp() function that actually sets
the DSCP on a socket really wants to know the address family (AF_INET vs.
AF_INET6).  We could plumb that down through the stream code, and that's
one reasonable option, but I thought that simply eliminating some calls
to set_dscp() where we don't already have the address family handy was
another reasonable way to go.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Alex Wang <alexw@nicira.com>
lib/jsonrpc.c
lib/stream-fd-unix.c
lib/stream-fd.h
lib/stream-provider.h
lib/stream-ssl.c
lib/stream-tcp.c
lib/stream-unix.c
lib/stream.c
lib/stream.h
ovsdb/jsonrpc-server.c