Skip to content

Commit

Permalink
Merge pull request #285 from swordqiu/automated-cherry-pick-of-#283-u…
Browse files Browse the repository at this point in the history
…pstream-release-3.11

Automated cherry pick of #283: fix: ovn encap cost
  • Loading branch information
swordqiu authored May 30, 2024
2 parents 899efa9 + f176216 commit e43f763
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/agent/utils/hostconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import (

"yunion.io/x/log"

apis "yunion.io/x/onecloud/pkg/apis/compute"
"yunion.io/x/onecloud/pkg/apis/identity"
"yunion.io/x/onecloud/pkg/hostman/options"
"yunion.io/x/onecloud/pkg/mcclient/auth"
Expand Down Expand Up @@ -114,7 +115,7 @@ func (hc *HostConfig) GetOverlayMTU() int {
if mtu < 576 {
mtu = 576
}
mtu -= 58
mtu -= apis.VPC_OVN_ENCAP_COST
return mtu
}

Expand Down

0 comments on commit e43f763

Please sign in to comment.