Skip to content

Commit ed960fb

Browse files
committed
Upgrade npol patch from patchset 8 to 12
This patch upgrade the npol patch we target from patchset 8 to 12, removes the unused addressfamily and simplifies the private patches we apply. We keep a single ACL+npol binding patch that updates the ACL code to allow hooking the npol logic, and leverage it in the public npol plugin in VPP. Signed-off-by: Nathan Skrzypczak <[email protected]>
1 parent 88d3f2d commit ed960fb

File tree

10 files changed

+165
-385
lines changed

10 files changed

+165
-385
lines changed

calico-vpp-agent/felix/rule.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -123,17 +123,6 @@ func fromProtoRule(r *proto.Rule) (rule *Rule, err error) {
123123
return nil, fmt.Errorf("unknown rule action: %s", r.Action)
124124
}
125125

126-
switch r.IpVersion {
127-
case proto.IPVersion_ANY:
128-
rule.AddressFamily = types.FamilyAll
129-
case proto.IPVersion_IPV4:
130-
rule.AddressFamily = types.FamilyV4
131-
case proto.IPVersion_IPV6:
132-
rule.AddressFamily = types.FamilyV6
133-
default:
134-
return nil, fmt.Errorf("unknown rule AF: %d", r.IpVersion)
135-
}
136-
137126
if r.Protocol != nil {
138127
if r.NotProtocol != nil {
139128
return nil, fmt.Errorf("protocol and NotProtocol specified in Rule")

vpplink/generated/bindings/npol/npol.ba.go

Lines changed: 11 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vpplink/generated/generate.log

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
VPP Version : 25.06.0-26~g4b73463b3
1+
VPP Version : 25.06.0-25~gd73287ef3
22
Binapi-generator version : v0.11.0
33
VPP Base commit : 47505bc21 misc: Initial changes for stable/2506 branch
44
------------------ Cherry picked commits --------------------
5-
fix npol tests and add acl plugin in npol
65
acl: acl-plugin custom policies
76
cnat: [WIP] no k8s maglev from pods
87
pbl: Port based balancer
9-
gerrit:43710/8 npol: Network Policies plugin
8+
gerrit:43710/12 npol: Network Policies plugin
109
gerrit:43723/3 session svm: fix session migrate attach data corruption
1110
gerrit:43139/5 udp: regrab connected session after transport clone
1211
gerrit:43714/5 session: fix handling of closed during migration

vpplink/generated/patches/0001-pbl-Port-based-balancer.patch

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
22
From: Nathan Skrzypczak <[email protected]>
33
Date: Tue, 27 Jul 2021 09:41:55 +0200
4-
Subject: [PATCH 1/5] pbl: Port based balancer
4+
Subject: [PATCH 1/3] pbl: Port based balancer
55

66
Type: feature
77

@@ -34,10 +34,10 @@ Signed-off-by: Nathan Skrzypczak <[email protected]>
3434
create mode 100644 src/plugins/pbl/pbl_node.c
3535

3636
diff --git a/MAINTAINERS b/MAINTAINERS
37-
index 1117b6da4..5b5522c86 100644
37+
index d642c742e..43508f00b 100644
3838
--- a/MAINTAINERS
3939
+++ b/MAINTAINERS
40-
@@ -700,6 +700,11 @@ I: svs
40+
@@ -725,6 +725,11 @@ I: svs
4141
M: Neale Ranns <[email protected]>
4242
F: src/plugins/svs/
4343

@@ -1357,5 +1357,5 @@ index 000000000..478584019
13571357
+ * End:
13581358
+ */
13591359
--
1360-
2.39.2
1360+
2.43.0
13611361

vpplink/generated/patches/0002-cnat-WIP-no-k8s-maglev-from-pods.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
22
From: Nathan Skrzypczak <[email protected]>
33
Date: Mon, 8 Mar 2021 19:00:04 +0100
4-
Subject: [PATCH 2/5] cnat: [WIP] no k8s maglev from pods
4+
Subject: [PATCH 2/3] cnat: [WIP] no k8s maglev from pods
55

66
Type: improvement
77

@@ -12,7 +12,7 @@ Signed-off-by: Nathan Skrzypczak <[email protected]>
1212
1 file changed, 7 insertions(+), 1 deletion(-)
1313

1414
diff --git a/src/plugins/cnat/cnat_node_feature.c b/src/plugins/cnat/cnat_node_feature.c
15-
index 76aa89398..fd3b90a1a 100644
15+
index 9b2c0c2fe..d862a84c0 100644
1616
--- a/src/plugins/cnat/cnat_node_feature.c
1717
+++ b/src/plugins/cnat/cnat_node_feature.c
1818
@@ -43,6 +43,7 @@ cnat_input_feature_fn (vlib_main_t *vm, vlib_node_runtime_t *node,
@@ -45,5 +45,5 @@ index 76aa89398..fd3b90a1a 100644
4545
const dpo_id_t *dpo0;
4646
const load_balance_t *lb1;
4747
--
48-
2.39.2
48+
2.43.0
4949

0 commit comments

Comments
 (0)