Skip to content

Commit

Permalink
cleanup: dead/commented code
Browse files Browse the repository at this point in the history
Signed-off-by: Maryam Tahhan <[email protected]>
  • Loading branch information
maryamtahhan committed Oct 17, 2023
1 parent a16bb4f commit aa0121e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
8 changes: 0 additions & 8 deletions internal/bpf/bpfWrapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -271,13 +271,5 @@ int Load_bpf_pin_xsk_map(char *ifname, char *pin_path) {
return err;
}

// if (bpf_map__is_pinned(bpf_object__find_map_by_name(obj, "xsks_map"))) {
// Log_Info("%s: xsk map pinned to %s\n", __FUNCTION__,
// bpf_map__get_pin_path(bpf_object__find_map_by_name(obj, "xsks_map")));
// } else {
// Log_Error("%s: xsk map is not pinned \n", __FUNCTION__);
// return -1;
// }

return 0;
}
2 changes: 1 addition & 1 deletion internal/dpcnisyncerclient/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"net"

"github.com/intel/afxdp-plugins-for-kubernetes/constants"
pb "github.com/intel/afxdp-plugins-for-kubernetes/internal/dpcnisyncer" // Replace with the actual proto package
pb "github.com/intel/afxdp-plugins-for-kubernetes/internal/dpcnisyncer"
logging "github.com/sirupsen/logrus"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials/insecure"
Expand Down
1 change: 0 additions & 1 deletion internal/dpcnisyncerserver/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import (
"os"
"time"

// Replace with the actual proto package
"github.com/intel/afxdp-plugins-for-kubernetes/constants"
"github.com/intel/afxdp-plugins-for-kubernetes/internal/bpf"
pb "github.com/intel/afxdp-plugins-for-kubernetes/internal/dpcnisyncer"
Expand Down

0 comments on commit aa0121e

Please sign in to comment.