samples/pktgen: Add some helper functions
authorRobert Hoo <robert.hu@intel.com>
Wed, 1 Nov 2017 10:41:09 +0000 (11:41 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Nov 2017 05:19:53 +0000 (14:19 +0900)
commit22ac5ad4a7d4e201d19b7f04ce8d79346c80a34b
tree81c175a4e739157476aade1971233975c848151d
parentde218073e16f967620c4a4b2620525ea3d2e0d5f
samples/pktgen: Add some helper functions

1. given a device, get its NUMA belongings
2. given a device, get its queues' irq numbers.
3. given a NUMA node, get its cpu id list.

Signed-off-by: Robert Hoo <robert.hu@intel.com>
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
samples/pktgen/functions.sh