Skip to content

Commit f225c66

Browse files
committed
ovn: do not send direct traffic between lports to conntrack (#3131)
1 parent e5c62d9 commit f225c66

File tree

4 files changed

+2
-38
lines changed

4 files changed

+2
-38
lines changed

dist/images/Dockerfile.base

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ RUN cd /usr/src/ && \
2929

3030
RUN cd /usr/src/ && git clone -b branch-22.12 --depth=1 https://github.com/ovn-org/ovn.git && \
3131
cd ovn && \
32-
# do not send traffic that not designate to svc to conntrack
33-
curl -s https://github.com/kubeovn/ovn/commit/961e67eff786fe219c98054a7af5409cc0fb52cc.patch | git apply && \
32+
# do not send direct traffic between lports to conntrack
33+
curl -s https://github.com/kubeovn/ovn/commit/4124fb623183541b80a577846ce145c7faf8eb5d.patch | git apply && \
3434
# change hash type from dp_hash to hash with field src_ip
3535
curl -s https://github.com/kubeovn/ovn/commit/daa09e380eec61620d4ee317e3265c44366d1147.patch | git apply && \
3636
# set ether dst addr for dnat on logical switch

mocks/pkg/ovs/interface.go

-28
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/controller/init.go

-7
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,6 @@ func (c *Controller) InitOVN() error {
3232
klog.Errorf("init load balancer failed: %v", err)
3333
return err
3434
}
35-
v4Svc, _ := util.SplitStringIP(c.config.ServiceClusterIPRange)
36-
if v4Svc != "" {
37-
if err := c.ovnClient.SetLBCIDR(v4Svc); err != nil {
38-
klog.Errorf("init load balancer svc cidr failed: %v", err)
39-
return err
40-
}
41-
}
4235
}
4336

4437
if err := c.initDefaultVlan(); err != nil {

pkg/ovs/interface.go

-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ type NBGlobal interface {
1515
SetAzName(azName string) error
1616
SetUseCtInvMatch() error
1717
SetICAutoRoute(enable bool, blackList []string) error
18-
SetLBCIDR(serviceCIDR string) error
1918
SetLsDnatModDlDst(enabled bool) error
2019
GetNbGlobal() (*ovnnb.NBGlobal, error)
2120
}

0 commit comments

Comments
 (0)