Skip to content

Commit

Permalink
Merge branch 'main' into sanfern-dev-ebpf-progs
Browse files Browse the repository at this point in the history
Signed-off-by: Santhosh Fernandes  <[email protected]>
  • Loading branch information
sanfern committed Oct 31, 2023
2 parents 2ead99d + 1ea1fd4 commit 80aec2e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions kf/bpf.go
Original file line number Diff line number Diff line change
Expand Up @@ -1429,6 +1429,11 @@ func (b *BPF) AttachBPFProgram(ifaceName, direction string) error {

// PinBpfMaps - Pinning tc and xdp maps
func (b *BPF) PinBpfMaps(ifaceName string) error {
// create map path directory
if err := b.CreateMapPinDirectory(ifaceName); err != nil {
return err
}

for k, v := range b.ProgMapCollection.Maps {
var mapFilename string
if b.Program.ProgType == models.TCType {
Expand Down
2 changes: 1 addition & 1 deletion kf/nfconfig_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ func TestNFConfigs_Close(t *testing.T) {
HostConfig: tt.fields.hostConfig,
processMon: tt.fields.processMon,
}
ctx, cancelfunc := context.WithTimeout(context.Background(), 900*time.Millisecond)
ctx, cancelfunc := context.WithTimeout(context.Background(), 2*time.Second)
defer cancelfunc()
if err := cfg.Close(ctx); (err != nil) != tt.wantErr {
t.Errorf("NFConfigs.Close() error = %v, wantErr %v", err, tt.wantErr)
Expand Down

0 comments on commit 80aec2e

Please sign in to comment.