stream: Eliminate pstream_set_dscp().
authorBen Pfaff <blp@nicira.com>
Fri, 20 Feb 2015 16:44:48 +0000 (08:44 -0800)
committerBen Pfaff <blp@nicira.com>
Fri, 20 Feb 2015 19:32:06 +0000 (11:32 -0800)
commitc2e3cbaf7bde655d7521a63dd57a13085125c3b4
tree2f240c35d59c9499f5dfa6d3a7bb6980c0dbb088
parentee5315b9f90b106bd0eb8d1cab18e627d0d19c30
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.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