Skip to content

Commit

Permalink
Fix memif ID difference between vswitch and cnf
Browse files Browse the repository at this point in the history
Signed-off-by: Rastislav Szabo <[email protected]>
  • Loading branch information
rastislavs committed Oct 11, 2019
1 parent f50174d commit da7fd66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/ipnet/pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ func (n *IPNet) podCustomIfsConfig(pod *podmanager.LocalPod, eventType configEve
switch customIf.ifType {
case memifIfType:
// handle custom memif interface
memifID++
if memifInfo == nil {
memifInfo, err = n.DeviceManager.GetPodMemifInfo(pod.ID)
if err != nil || memifInfo == nil {
Expand All @@ -270,7 +271,6 @@ func (n *IPNet) podCustomIfsConfig(pod *podmanager.LocalPod, eventType configEve
// VPP side of the memif
k, v := n.podVPPMemif(pod, podIP, customIf.ifName, customIf.ifNet, memifInfo, memifID)
config[k] = v
memifID++

case tapIfType:
// handle custom tap interface
Expand Down

0 comments on commit da7fd66

Please sign in to comment.