mirror of
https://github.com/openvswitch/ovs
synced 2025-10-29 15:28:56 +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, 2012, 2013, 2014 Nicira, Inc.
|
||||
* Copyright (c) 2008, 2009, 2010, 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.
|
||||
@@ -161,8 +161,7 @@ new_pstream(char *suffix, const char *name, struct pstream **pstreamp,
|
||||
conn_name = bound_name;
|
||||
}
|
||||
|
||||
error = new_fd_pstream(conn_name, fd, ptcp_accept, set_dscp, unlink_path,
|
||||
pstreamp);
|
||||
error = new_fd_pstream(conn_name, fd, ptcp_accept, unlink_path, pstreamp);
|
||||
if (!error) {
|
||||
pstream_set_bound_port(*pstreamp, htons(port));
|
||||
}
|
||||
@@ -196,7 +195,6 @@ const struct pstream_class ptcp_pstream_class = {
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
};
|
||||
|
||||
#ifdef _WIN32
|
||||
|
||||
Reference in New Issue
Block a user