aregm / nff-go

NFF-Go -Network Function Framework for GO (former YANFF)
BSD 3-Clause "New" or "Revised" License
1.38k stars 154 forks source link

Export GetPortsNumber in flow package #680

Closed guesslin closed 4 years ago

guesslin commented 4 years ago
For user who want to get the number of device ports on system,
better to get it from rte_eth_dev_count function in rte_ethdev.h
But while a Go application include this rte_ethdev.h header and
nff-go library will cause a RTR_HASH error.
See https://github.com/intel-go/nff-go/issues/649 for detail
information about the error message.

Signed-off-by: Yu-Han Lin guesslin@glasnostic.com