net/pcap: move handler to process private
authorQi Zhang <qi.z.zhang@intel.com>
Thu, 15 Nov 2018 01:37:41 +0000 (09:37 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 16 Nov 2018 15:55:10 +0000 (16:55 +0100)
commit0ecfb6c04d548d3f873a6f3116639aa3587b9b3a
treef176723cd3accba41760ef7baa5d85ff658d55c6
parentd31c844435e6aba171a41a47dd5818fe8c498337
net/pcap: move handler to process private

This is prework for data path enabling for secondary process.
To prevent pcap handler opened by one process be overwritten by
another process, each process should have their private copy,
`rte_eth_dev->process_private` is exactly what we needed.

Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/pcap/rte_eth_pcap.c