Skip to content

Commit

Permalink
update container mount point for bpfman
Browse files Browse the repository at this point in the history
Signed-off-by: Maryam Tahhan <[email protected]>
  • Loading branch information
maryamtahhan committed Jan 10, 2024
1 parent 7a06a3b commit bcffa6f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/deviceplugin/poolManager.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,10 +298,11 @@ func (pm *PoolManager) Allocate(ctx context.Context,
return &response, err
}

logging.Debugf("mapping %s to %s", xskmap, constants.Bpf.BpfMapPodPath)
containerMapPath := constants.Bpf.BpfMapPodPath + device.Name() + constants.Bpf.Xsk_map
logging.Debugf("mapping %s to %s", xskmap, containerMapPath)
cresp.Mounts = append(cresp.Mounts, &pluginapi.Mount{
HostPath: xskmap,
ContainerPath: constants.Bpf.BpfMapPodPath,
ContainerPath: containerMapPath,
ReadOnly: false,
})

Expand Down

0 comments on commit bcffa6f

Please sign in to comment.