Skip to content

Commit

Permalink
vpp: upgrade to 156d452750ab37a51984938bf4a8ab0e16650d82 (31 mars 23)
Browse files Browse the repository at this point in the history
This upgrade VPP's version containing mostly changes in the way the memif API
allows to create abstract sockets. Notably the syntax changed and is now
inconsistent with the tap_v2 api.
Changelog also contains patches for avf & wireguard.

Signed-off-by: Nathan Skrzypczak <[email protected]>
  • Loading branch information
sknat committed Apr 6, 2023
1 parent 8134c53 commit fa5cbd2
Show file tree
Hide file tree
Showing 33 changed files with 1,195 additions and 885 deletions.
2 changes: 1 addition & 1 deletion calico-vpp-agent/cni/cni_pod_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ var _ = Describe("Pod-related functionality of CNI", func() {
socket, err := vpp.MemifsocketByID(memifs[0].SocketId)
Expect(err).ToNot(HaveOccurred(), "failed to get memif socket")
Expect(socket.SocketFilename).To(Equal(
fmt.Sprintf("@netns:%s@vpp/memif-%s", newPod.Netns, newPod.InterfaceName)),
fmt.Sprintf("abstract:%s,netns_name=%s", newPod.InterfaceName, newPod.Netns)),
"memif socket file is not configured correctly")

By("Checking PBL (packet punting) to redirect some traffic into memif (secondary interface)")
Expand Down
2 changes: 2 additions & 0 deletions calico-vpp-agent/cni/pod_interface/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ func (i *PodInterfaceDriverData) SpreadTxQueuesOnWorkers(swIfIndex uint32, numTx
"swIfIndex": swIfIndex,
}).Debugf("Spreading %d TX queues on %d workers for pod interface: %v", numTxQueues, i.NDataThreads, i.Name)

return nil // FIXME

// set first tx queue for main worker
err = i.vpp.SetInterfaceTxPlacement(swIfIndex, 0 /* queue */, 0 /* worker */)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion calico-vpp-agent/cni/pod_interface/memif.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func (i *MemifPodInterfaceDriver) CreateInterface(podSpec *storage.LocalPodSpec,
if podSpec.NetworkName == "" {
memifName = "@vpp/memif-" + podSpec.InterfaceName
}
socketId, err := i.vpp.AddMemifSocketFileName(fmt.Sprintf("@netns:%s%s", podSpec.NetnsName, memifName))
socketId, err := i.vpp.AddMemifSocketFileName(fmt.Sprintf("abstract:%s,netns_name=%s", memifName, podSpec.NetnsName))
if err != nil {
return err
} else {
Expand Down
24 changes: 0 additions & 24 deletions vpplink/generated/bindings/capo/capo.ba.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

48 changes: 0 additions & 48 deletions vpplink/generated/bindings/cnat/cnat.ba.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions vpplink/generated/bindings/ikev2/ikev2.ba.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit fa5cbd2

Please sign in to comment.