Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(446)

Issue 22381012: Allow p2p UDP packages to set DSCP (Closed)

Created:
7 years, 4 months ago by hubbe
Modified:
7 years, 2 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, cbentzel+watch_chromium.org, jam
Visibility:
Public.

Description

Implement support for p2p socket UDP packages to set the Differntiated Services Code Point for each package. Will be used by webrtc to hopefully improve performance. (See bug for how we will test this.) BUG=277022 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=229975

Patch Set 1 #

Total comments: 2

Patch Set 2 : enum + windows support #

Patch Set 3 : fixed tests #

Total comments: 2

Patch Set 4 : plumb DSCP up through IPC layer #

Total comments: 4

Patch Set 5 : extra newline removed #

Total comments: 24

Patch Set 6 : addressed (some) comments #

Patch Set 7 : changed SC0 to DEFAULT in one place #

Patch Set 8 : test fix #

Total comments: 12

Patch Set 9 : win fix #

Patch Set 10 : win fix #

Patch Set 11 : reverted mistaken DatagramServerSocket -> UDPServerSocket change #

Patch Set 12 : merge #

Patch Set 13 : comments adressed #

Total comments: 1

Patch Set 14 : use GQoS on windows #

Total comments: 2

Patch Set 15 : merge #

Patch Set 16 : stub out DSCP for windows for now #

Total comments: 8

Patch Set 17 : merge #

Patch Set 18 : comments fixed #

Patch Set 19 : win fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+169 lines, -43 lines) Patch
M content/browser/renderer_host/p2p/socket_dispatcher_host.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/p2p/socket_dispatcher_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/p2p/socket_host.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/renderer_host/p2p/socket_host_tcp.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/p2p/socket_host_tcp.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/renderer_host/p2p/socket_host_tcp_server.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/p2p/socket_host_tcp_server.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/p2p/socket_host_tcp_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 9 chunks +20 lines, -19 lines 0 comments Download
M content/browser/renderer_host/p2p/socket_host_udp.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +4 lines, -0 lines 0 comments Download
M content/browser/renderer_host/p2p/socket_host_udp.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 5 chunks +20 lines, -3 lines 0 comments Download
M content/browser/renderer_host/p2p/socket_host_udp_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 8 chunks +21 lines, -16 lines 0 comments Download
M content/common/p2p_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +3 lines, -1 line 0 comments Download
M content/renderer/p2p/socket_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +6 lines, -0 lines 0 comments Download
M content/renderer/p2p/socket_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +10 lines, -3 lines 0 comments Download
M net/base/net_util.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +28 lines, -0 lines 0 comments Download
M net/dns/mock_mdns_socket_factory.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
M net/udp/datagram_server_socket.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -0 lines 0 comments Download
M net/udp/udp_server_socket.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M net/udp/udp_server_socket.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -0 lines 0 comments Download
M net/udp/udp_socket_libevent.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +5 lines, -0 lines 0 comments Download
M net/udp/udp_socket_libevent.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +20 lines, -0 lines 0 comments Download
M net/udp/udp_socket_win.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -0 lines 0 comments Download
M net/udp/udp_socket_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 38 (0 generated)
hubbe
7 years, 4 months ago (2013-08-07 00:35:43 UTC) #1
Alpha Left Google
Please add a reviewer for net/udp since I'm not an owner. But I prefer to ...
7 years, 4 months ago (2013-08-07 00:45:16 UTC) #2
hubbe
https://codereview.chromium.org/22381012/diff/1/net/udp/udp_socket_libevent.h File net/udp/udp_socket_libevent.h (right): https://codereview.chromium.org/22381012/diff/1/net/udp/udp_socket_libevent.h#newcode161 net/udp/udp_socket_libevent.h:161: int SetToS(int dscp); On 2013/08/07 00:45:16, Alpha wrote: > ...
7 years, 4 months ago (2013-08-07 17:20:35 UTC) #3
Alpha Left Google
Still have compilation errors.
7 years, 4 months ago (2013-08-07 17:52:40 UTC) #4
juberti2
Note that when multiplexing audio and video, we will want to set QoS on a ...
7 years, 4 months ago (2013-08-08 00:44:45 UTC) #5
hubbe
https://codereview.chromium.org/22381012/diff/12001/content/browser/renderer_host/p2p/socket_host_udp.cc File content/browser/renderer_host/p2p/socket_host_udp.cc (right): https://codereview.chromium.org/22381012/diff/12001/content/browser/renderer_host/p2p/socket_host_udp.cc#newcode69 content/browser/renderer_host/p2p/socket_host_udp.cc:69: socket_->SetToS(net::DSCP_AF41); On 2013/08/08 00:44:45, juberti2 wrote: > Seems a ...
7 years, 4 months ago (2013-08-08 23:23:00 UTC) #6
Alpha Left Google
*/p2p/*: LGTM Still need owner of net to review changes in UDP sockets. Next step ...
7 years, 4 months ago (2013-08-08 23:28:26 UTC) #7
Alpha Left Google
On 2013/08/08 23:28:26, Alpha wrote: > */p2p/*: LGTM > > Still need owner of net ...
7 years, 4 months ago (2013-08-08 23:30:09 UTC) #8
Alpha Left Google
Next step is to have libjingle provide the DSCP info through this API: https://code.google.com/p/chromium/codesearch#chromium/src/content/renderer/p2p/ipc_socket_factory.cc&sq=package:chromium&type=cs&l=49
7 years, 4 months ago (2013-08-08 23:30:39 UTC) #9
juberti2
lgtm Overall this looks great, one comment about the API exposed upwards. https://codereview.chromium.org/22381012/diff/21001/content/renderer/p2p/socket_client.h File content/renderer/p2p/socket_client.h ...
7 years, 4 months ago (2013-08-09 01:05:23 UTC) #10
hubbe
https://codereview.chromium.org/22381012/diff/21001/content/renderer/p2p/socket_client.h File content/renderer/p2p/socket_client.h (right): https://codereview.chromium.org/22381012/diff/21001/content/renderer/p2p/socket_client.h#newcode62 content/renderer/p2p/socket_client.h:62: net::DiffServCodePoint dscp); On 2013/08/09 01:05:24, juberti2 wrote: > Not ...
7 years, 4 months ago (2013-08-15 23:31:10 UTC) #11
hubbe
Adding OWNERS. content/common/p2p_messages.h security review = cevans content/renderer/p2p/* = sergeyu /net/* = cbentzel
7 years, 4 months ago (2013-08-15 23:39:58 UTC) #12
Sergey Ulanov
https://codereview.chromium.org/22381012/diff/34001/content/browser/renderer_host/p2p/socket_dispatcher_host.h File content/browser/renderer_host/p2p/socket_dispatcher_host.h (right): https://codereview.chromium.org/22381012/diff/34001/content/browser/renderer_host/p2p/socket_dispatcher_host.h#newcode71 content/browser/renderer_host/p2p/socket_dispatcher_host.h:71: net::DiffServCodePoint dscp); nit: |dscp| is not readable. maybe call ...
7 years, 4 months ago (2013-08-17 05:50:03 UTC) #13
cbentzel
Please add a bug. How do you plan to measure whether this actually provides benefit? ...
7 years, 4 months ago (2013-08-19 13:54:49 UTC) #14
juberti2
https://codereview.chromium.org/22381012/diff/34001/content/renderer/p2p/socket_client.h File content/renderer/p2p/socket_client.h (right): https://codereview.chromium.org/22381012/diff/34001/content/renderer/p2p/socket_client.h#newcode60 content/renderer/p2p/socket_client.h:60: void SendWithDscp(const net::IPEndPoint& address, On 2013/08/17 05:50:04, Sergey Ulanov ...
7 years, 4 months ago (2013-08-19 16:06:05 UTC) #15
hubbe
Updated Cl description, linked to a bug which outlines how we will measure effectiveness. https://codereview.chromium.org/22381012/diff/34001/content/browser/renderer_host/p2p/socket_dispatcher_host.h ...
7 years, 4 months ago (2013-08-21 18:51:36 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hubbe@chromium.org/22381012/48001
7 years, 4 months ago (2013-08-21 18:52:02 UTC) #17
juberti2
https://codereview.chromium.org/22381012/diff/34001/net/base/net_util.h File net/base/net_util.h (right): https://codereview.chromium.org/22381012/diff/34001/net/base/net_util.h#newcode541 net/base/net_util.h:541: enum DiffServCodePoint { On 2013/08/21 18:51:36, hubbe wrote: > ...
7 years, 4 months ago (2013-08-21 19:13:13 UTC) #18
cbentzel
Small fixes please. Thanks for entering the bug and the description. https://codereview.chromium.org/22381012/diff/34001/net/base/net_util.h File net/base/net_util.h (right): ...
7 years, 4 months ago (2013-08-21 22:00:19 UTC) #19
hubbe
https://codereview.chromium.org/22381012/diff/55001/net/base/net_util.h File net/base/net_util.h (right): https://codereview.chromium.org/22381012/diff/55001/net/base/net_util.h#newcode540 net/base/net_util.h:540: // Differentiated Services Code Point, replaces the old IP_TOS ...
7 years, 4 months ago (2013-08-22 23:41:02 UTC) #20
cbentzel
https://codereview.chromium.org/22381012/diff/73001/net/udp/udp_socket_libevent.cc File net/udp/udp_socket_libevent.cc (right): https://codereview.chromium.org/22381012/diff/73001/net/udp/udp_socket_libevent.cc#newcode662 net/udp/udp_socket_libevent.cc:662: rv = setsockopt(socket_, IPPROTO_IP, IP_TOS, Looks like this may ...
7 years, 4 months ago (2013-08-23 04:05:34 UTC) #21
Sergey Ulanov
Do we still need DSCP_NO_CHANGE? It looks like its not needed anymore because P2PSocketClient doesn't ...
7 years, 4 months ago (2013-08-23 19:17:30 UTC) #22
hubbe
On 2013/08/23 19:17:30, Sergey Ulanov wrote: > Do we still need DSCP_NO_CHANGE? It looks like ...
7 years, 4 months ago (2013-08-23 21:43:10 UTC) #23
Sergey Ulanov
On 2013/08/23 21:43:10, hubbe wrote: > On 2013/08/23 19:17:30, Sergey Ulanov wrote: > > Do ...
7 years, 4 months ago (2013-08-24 00:00:41 UTC) #24
cbentzel
On 2013/08/23 21:43:10, hubbe wrote: > On 2013/08/23 19:17:30, Sergey Ulanov wrote: > > Do ...
7 years, 3 months ago (2013-08-26 18:25:51 UTC) #25
Mallinath (Gone from Chromium)
https://codereview.chromium.org/22381012/diff/80001/net/base/net_util.h File net/base/net_util.h (right): https://codereview.chromium.org/22381012/diff/80001/net/base/net_util.h#newcode542 net/base/net_util.h:542: enum DiffServCodePoint { Is it possible to use the ...
7 years, 3 months ago (2013-09-12 17:30:32 UTC) #26
juberti2
What is the status of this patch? We have the rest of the libjingle stuff ...
7 years, 3 months ago (2013-09-21 00:06:06 UTC) #27
hubbe
Getting this to work on windows is taking longer than I thought it would, so ...
7 years, 3 months ago (2013-09-24 17:10:24 UTC) #28
juberti2
On 2013/09/24 17:10:24, hubbe wrote: > Getting this to work on windows is taking longer ...
7 years, 3 months ago (2013-09-25 00:03:56 UTC) #29
hubbe1
Ping? cbentzel? cevans? On Mon, Aug 26, 2013 at 11:25 AM, <cbentzel@chromium.org> wrote: > On ...
7 years, 2 months ago (2013-09-27 19:41:16 UTC) #30
cbentzel
net/ LGTM No need to wait for another round of review from me. Apologies for ...
7 years, 2 months ago (2013-10-17 01:32:56 UTC) #31
hubbe
Trying a different security reviewer.
7 years, 2 months ago (2013-10-18 20:38:34 UTC) #32
Tom Sepez
lgtm
7 years, 2 months ago (2013-10-18 21:49:00 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hubbe@chromium.org/22381012/94001
7 years, 2 months ago (2013-10-21 17:17:05 UTC) #34
commit-bot: I haz the power
Failed to apply patch for content/browser/renderer_host/p2p/socket_dispatcher_host.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 2 months ago (2013-10-21 17:17:11 UTC) #35
hubbe
https://codereview.chromium.org/22381012/diff/94001/content/browser/renderer_host/p2p/socket_host.cc File content/browser/renderer_host/p2p/socket_host.cc (right): https://codereview.chromium.org/22381012/diff/94001/content/browser/renderer_host/p2p/socket_host.cc#newcode11 content/browser/renderer_host/p2p/socket_host.cc:11: #include "net/udp/datagram_socket.h" On 2013/10/17 01:32:57, cbentzel wrote: > Why ...
7 years, 2 months ago (2013-10-21 19:39:20 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hubbe@chromium.org/22381012/253001
7 years, 2 months ago (2013-10-21 21:42:42 UTC) #37
commit-bot: I haz the power
7 years, 2 months ago (2013-10-22 00:34:49 UTC) #38
Message was sent while issue was closed.
Change committed as 229975

Powered by Google App Engine
This is Rietveld 408576698