Merge ~paelzer/ubuntu/+source/ipset:lp-1918936-speed-up-numeric-port-adds-FOCAL into ubuntu/+source/ipset:ubuntu/focal-devel

Proposed by Christian Ehrhardt 
Status: Work in progress
Proposed branch: ~paelzer/ubuntu/+source/ipset:lp-1918936-speed-up-numeric-port-adds-FOCAL
Merge into: ubuntu/+source/ipset:ubuntu/focal-devel
Diff against target: 69 lines (+47/-0)
3 files modified
debian/changelog (+7/-0)
debian/patches/lp-1918936-Parse-port-before-trying-by-service-name.patch (+39/-0)
debian/patches/series (+1/-0)
Reviewer Review Type Date Requested Status
Christian Ehrhardt  (community) Approve
OpenStack Ubuntu packagers Pending
Canonical Server packageset reviewers Pending
git-ubuntu developers Pending
Review via email: mp+404746@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

I'm setting those to WIP but only to have them vanish from the server Teams review queue.

Do not consider this a withdrawl, I still consider these as "provided as much of a helping hand that I can cross-team, but now needs a review/ack/upload from the owner".

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Or better, I'll consume the server Team slot and leave it as is since I already added an openstack packagers slot before.

+1 from my POV

review: Approve

Unmerged commits

f543822... by Christian Ehrhardt 

changelog: speed up numeric port adds (LP: #1918936)

Signed-off-by: Christian Ehrhardt <email address hidden>

c6ed807... by Christian Ehrhardt 

d/p/lp-1918936-Parse-port-before-trying-by-service-name.patch: speed up numeric port adds (LP: #1918936)

Signed-off-by: Christian Ehrhardt <email address hidden>

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/debian/changelog b/debian/changelog
index 5b28d83..9b2a73f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
1ipset (7.5-1~exp1.ubuntu0.1) focal; urgency=medium
2
3 * d/p/lp-1918936-Parse-port-before-trying-by-service-name.patch: speed
4 up numeric port adds (LP: #1918936)
5
6 -- Christian Ehrhardt <christian.ehrhardt@canonical.com> Fri, 25 Jun 2021 08:07:14 +0200
7
1ipset (7.5-1~exp1) experimental; urgency=medium8ipset (7.5-1~exp1) experimental; urgency=medium
29
3 * [9c18ea7] New upstream version 7.510 * [9c18ea7] New upstream version 7.5
diff --git a/debian/patches/lp-1918936-Parse-port-before-trying-by-service-name.patch b/debian/patches/lp-1918936-Parse-port-before-trying-by-service-name.patch
4new file mode 10064411new file mode 100644
index 0000000..53ca445
--- /dev/null
+++ b/debian/patches/lp-1918936-Parse-port-before-trying-by-service-name.patch
@@ -0,0 +1,39 @@
1From dbeb20a667e82e4efb8b26b24a0ec641dab5c857 Mon Sep 17 00:00:00 2001
2From: Haw Loeung <haw.loeung@canonical.com>
3Date: Wed, 17 Feb 2021 10:15:07 +0100
4Subject: [PATCH] Parse port before trying by service name
5
6This improves performance for loading IP sets using port numbers,
7especially large ones.
8
9Signed-off-by: Jozsef Kadlecsik <kadlec@netfilter.org>
10
11Origin: upstream, https://git.netfilter.org/ipset/commit/?id=dbeb20a667e8
12Bug-Ubuntu: https://bugs.launchpad.net/bugs/1918936
13Last-Update: 2021-06-25
14
15---
16 lib/parse.c | 4 ++--
17 1 file changed, 2 insertions(+), 2 deletions(-)
18
19diff --git a/lib/parse.c b/lib/parse.c
20index 31a619db..f3f2d113 100644
21--- a/lib/parse.c
22+++ b/lib/parse.c
23@@ -319,11 +319,11 @@ ipset_parse_port(struct ipset_session *session,
24 assert(opt == IPSET_OPT_PORT || opt == IPSET_OPT_PORT_TO);
25 assert(str);
26
27- if (parse_portname(session, str, &port, proto) == 0) {
28+ if (string_to_u16(session, str, &port) == 0) {
29 return ipset_session_data_set(session, opt, &port);
30 }
31 /* Error is stored as warning in session report */
32- if (string_to_u16(session, str, &port) == 0) {
33+ if (parse_portname(session, str, &port, proto) == 0) {
34 /* No error, so reset false error messages */
35 ipset_session_report_reset(session);
36 return ipset_session_data_set(session, opt, &port);
37--
382.32.0
39
diff --git a/debian/patches/series b/debian/patches/series
index f86188f..f59762a 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@ test-installed.patch
2workaround-iphash-delete-one-by-one-test-failed.patch2workaround-iphash-delete-one-by-one-test-failed.patch
305-delay-the-set-with-timeout-resizing-test.patch305-delay-the-set-with-timeout-resizing-test.patch
4fix-bash-completion.patch4fix-bash-completion.patch
5lp-1918936-Parse-port-before-trying-by-service-name.patch

Subscribers

People subscribed via source and target branches