diff --git a/pkg/daemon/handler.go b/pkg/daemon/handler.go index 52e6716c43c..6367a4a049e 100644 --- a/pkg/daemon/handler.go +++ b/pkg/daemon/handler.go @@ -511,7 +511,7 @@ func (csh cniServerHandler) handleDel(req *restful.Request, resp *restful.Respon } // Proceed to delete the NIC regardless of whether the Pod was found or not. - err = csh.deleteNic(podRequest.PodName, podRequest.PodNamespace, podRequest.ContainerID, podRequest.NetNs, podRequest.DeviceID, podRequest.IfName, nicType, podRequest.Provider) + err = csh.deleteNic(podRequest.PodName, podRequest.PodNamespace, podRequest.ContainerID, podRequest.NetNs, podRequest.DeviceID, podRequest.IfName, nicType) if err != nil { errMsg := fmt.Errorf("del nic failed %w", err) klog.Error(errMsg) diff --git a/pkg/daemon/ovs_linux.go b/pkg/daemon/ovs_linux.go index 3c1f16c7d11..1f64f58507f 100644 --- a/pkg/daemon/ovs_linux.go +++ b/pkg/daemon/ovs_linux.go @@ -265,7 +265,7 @@ func (csh cniServerHandler) releaseVf(podName, podNamespace, podNetns, ifName, n return nil } -func (csh cniServerHandler) deleteNic(podName, podNamespace, containerID, netns, deviceID, ifName, nicType, provider string) error { +func (csh cniServerHandler) deleteNic(podName, podNamespace, containerID, netns, deviceID, ifName, nicType string) error { if err := csh.releaseVf(podName, podNamespace, netns, ifName, nicType, deviceID); err != nil { return fmt.Errorf("failed to release VF %s assigned to the Pod %s/%s back to the host network namespace: "+ "%w", ifName, podName, podNamespace, err)