2
0
mirror of https://github.com/openvswitch/ovs synced 2025-10-23 14:57:06 +00:00

Allow configuring DSCP on controller and manager connections.

The changes allow the user to specify a separate dscp value for the
controller connection and the manager connection. The value will take
effect on resetting the connections. If no value is specified a default
value of 192 is chosen for each of the connections.

Feature #10074
Requested-by: Rajiv Ramanathan <rramanathan@nicira.com>
Signed-off-by: Mehak Mahajan <mmahajan@nicira.com>
This commit is contained in:
Mehak Mahajan
2012-03-10 15:58:10 -08:00
parent 11460e2316
commit f125905cdd
37 changed files with 361 additions and 97 deletions

View File

@@ -40,7 +40,8 @@ VLOG_DEFINE_THIS_MODULE(stream_unix);
/* Active UNIX socket. */
static int
unix_open(const char *name, char *suffix, struct stream **streamp)
unix_open(const char *name, char *suffix, struct stream **streamp,
uint8_t dscp OVS_UNUSED)
{
const char *connect_path = suffix;
int fd;
@@ -73,7 +74,7 @@ static int punix_accept(int fd, const struct sockaddr *sa, size_t sa_len,
static int
punix_open(const char *name OVS_UNUSED, char *suffix,
struct pstream **pstreamp)
struct pstream **pstreamp, uint8_t dscp OVS_UNUSED)
{
int fd, error;