mirror of
https://github.com/openvswitch/ovs
synced 2025-08-30 22:05:19 +00:00
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>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013, 2014 Nicira, Inc.
|
||||
* Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013, 2014, 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.
|
||||
@@ -871,13 +871,6 @@ pssl_wait(struct pstream *pstream)
|
||||
poll_fd_wait(pssl->fd, POLLIN);
|
||||
}
|
||||
|
||||
static int
|
||||
pssl_set_dscp(struct pstream *pstream, uint8_t dscp)
|
||||
{
|
||||
struct pssl_pstream *pssl = pssl_pstream_cast(pstream);
|
||||
return set_dscp(pssl->fd, dscp);
|
||||
}
|
||||
|
||||
const struct pstream_class pssl_pstream_class = {
|
||||
"pssl",
|
||||
true,
|
||||
@@ -885,7 +878,6 @@ const struct pstream_class pssl_pstream_class = {
|
||||
pssl_close,
|
||||
pssl_accept,
|
||||
pssl_wait,
|
||||
pssl_set_dscp,
|
||||
};
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user