From c2e3cbaf7bde655d7521a63dd57a13085125c3b4 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Fri, 20 Feb 2015 08:44:48 -0800 Subject: 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 Acked-by: Alex Wang --- lib/stream.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'lib/stream.c') 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 -- cgit v1.2.1