vppinfra: Use affinity for online cpus on FreeBSD 10/41410/2
authorTom Jones <[email protected]>
Wed, 14 Aug 2024 09:23:11 +0000 (09:23 +0000)
committerDamjan Marion <[email protected]>
Thu, 29 Aug 2024 08:36:25 +0000 (08:36 +0000)
commit828353fa5f461319ef05d23984418a7652dd6315
treed8d8577952c4ba4ad75ed3468e79fff1503d8042
parentd726f6a99968b0e198b20b7d6cd21a6b64ce7909
vppinfra: Use affinity for online cpus on FreeBSD

On FreeBSD the affinity returned by cpuset gives us a bitmask
documenting the available cpus. This can be modified if we are jailed or
are launched via the cpuset(1) command.

Initialise the clib bitmask otherwise it is always 0 and we cannot
configure any workers.

Type: improvement
Change-Id: I067e373ea440c6fbd03839d1cf103c8b97d8a0c6
Signed-off-by: Tom Jones <[email protected]>
src/vppinfra/unix-misc.c