diff options
author | Ben Pfaff <blp@nicira.com> | 2015-02-20 08:44:48 -0800 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2015-02-20 11:32:06 -0800 |
commit | c2e3cbaf7bde655d7521a63dd57a13085125c3b4 (patch) | |
tree | 2f240c35d59c9499f5dfa6d3a7bb6980c0dbb088 /lib/stream.c | |
parent | ee5315b9f90b106bd0eb8d1cab18e627d0d19c30 (diff) | |
download | openvswitch-c2e3cbaf7bde655d7521a63dd57a13085125c3b4.tar.gz |
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>
Diffstat (limited to 'lib/stream.c')
-rw-r--r-- | lib/stream.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/lib/stream.c b/lib/stream.c index ca469fb5f..a7e07d09c 100644 --- a/lib/stream.c +++ b/lib/stream.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013 Nicira, Inc. + * Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013, 2015 Nicira, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -592,15 +592,6 @@ pstream_wait(struct pstream *pstream) (pstream->class->wait)(pstream); } -int -pstream_set_dscp(struct pstream *pstream, uint8_t dscp) -{ - if (pstream->class->set_dscp) { - return pstream->class->set_dscp(pstream, dscp); - } - return 0; -} - /* Returns the transport port on which 'pstream' is listening, or 0 if the * concept doesn't apply. */ ovs_be16 |