From dbd78d11b09ce8a325cb6acb95345970787d5e38 Mon Sep 17 00:00:00 2001 From: RUANG Date: Fri, 29 Nov 2024 11:04:36 +0800 Subject: [PATCH 1/3] Add latest RDS constant --- .../Library/2024-11-29-11-04-15.gh-issue-127383.uH22xx.rst | 1 + Modules/socketmodule.c | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 Misc/NEWS.d/next/Library/2024-11-29-11-04-15.gh-issue-127383.uH22xx.rst diff --git a/Misc/NEWS.d/next/Library/2024-11-29-11-04-15.gh-issue-127383.uH22xx.rst b/Misc/NEWS.d/next/Library/2024-11-29-11-04-15.gh-issue-127383.uH22xx.rst new file mode 100644 index 00000000000000..a32ee3f4c4a808 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2024-11-29-11-04-15.gh-issue-127383.uH22xx.rst @@ -0,0 +1 @@ +Add the latest ``RDS`` macro constants to the :mod:`socket`. diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 2764bd6e2b2a47..91f83358c40fd1 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -8753,6 +8753,9 @@ socket_exec(PyObject *m) #ifdef RDS_CMSG_RDMA_STATUS ADD_INT_MACRO(m, RDS_CMSG_RDMA_STATUS); #endif +#ifdef RDS_CMSG_RXPATH_LATENCY + ADD_INT_MACRO(m, RDS_CMSG_RXPATH_LATENCY); +#endif #ifdef RDS_CMSG_RDMA_UPDATE ADD_INT_MACRO(m, RDS_CMSG_RDMA_UPDATE); #endif From 8f68fc0a647503f641461e2beeea3b2f89bae444 Mon Sep 17 00:00:00 2001 From: RUANG Date: Fri, 29 Nov 2024 16:25:05 +0800 Subject: [PATCH 2/3] Change NEWS --- .../Library/2024-11-29-11-04-15.gh-issue-127383.uH22xx.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Misc/NEWS.d/next/Library/2024-11-29-11-04-15.gh-issue-127383.uH22xx.rst b/Misc/NEWS.d/next/Library/2024-11-29-11-04-15.gh-issue-127383.uH22xx.rst index a32ee3f4c4a808..f5ec2123ea543a 100644 --- a/Misc/NEWS.d/next/Library/2024-11-29-11-04-15.gh-issue-127383.uH22xx.rst +++ b/Misc/NEWS.d/next/Library/2024-11-29-11-04-15.gh-issue-127383.uH22xx.rst @@ -1 +1,2 @@ -Add the latest ``RDS`` macro constants to the :mod:`socket`. +Add the ``RDS_CMSG_RXPATH_LATENCY`` macro +constants to the :mod:`socket`. From 649a73ad680df9e208246d6702d05e333c96d00d Mon Sep 17 00:00:00 2001 From: "Erlend E. Aasland" Date: Fri, 29 Nov 2024 09:47:26 +0100 Subject: [PATCH 3/3] Fix NEWS wording --- .../Library/2024-11-29-11-04-15.gh-issue-127383.uH22xx.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Misc/NEWS.d/next/Library/2024-11-29-11-04-15.gh-issue-127383.uH22xx.rst b/Misc/NEWS.d/next/Library/2024-11-29-11-04-15.gh-issue-127383.uH22xx.rst index f5ec2123ea543a..9aa1be32fc2fb7 100644 --- a/Misc/NEWS.d/next/Library/2024-11-29-11-04-15.gh-issue-127383.uH22xx.rst +++ b/Misc/NEWS.d/next/Library/2024-11-29-11-04-15.gh-issue-127383.uH22xx.rst @@ -1,2 +1 @@ -Add the ``RDS_CMSG_RXPATH_LATENCY`` macro -constants to the :mod:`socket`. +Add the ``RDS_CMSG_RXPATH_LATENCY`` constant to the :mod:`socket` module.