dpif-netdev: Add function to get pmd using core id.
authorAlex Wang <alexw@nicira.com>
Mon, 13 Oct 2014 21:47:09 +0000 (14:47 -0700)
committerAlex Wang <alexw@nicira.com>
Tue, 30 Dec 2014 19:47:18 +0000 (11:47 -0800)
commitb19befaef27dddd7fb76cb3a547f9c972cafe9e7
treed428e34409f9877dfe85ad63da37b6f63aa24cf7
parenta1f42a528104f85bca4d7431b5103f7ae7d99d9b
dpif-netdev: Add function to get pmd using core id.

This commit adds the function dp_netdev_get_pmd() which allows
users to get 'struct dp_netdev_pmd_thread' based on the core id.

Signed-off-by: Alex Wang <alexw@nicira.com>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
lib/dpif-netdev.c