devices: fix issue of per_interface_next_index 91/22291/2
authorMichael Yu <[email protected]>
Thu, 29 Aug 2019 16:50:16 +0000 (00:50 +0800)
committerAndrew Yourtchenko <[email protected]>
Sat, 28 Sep 2019 20:20:42 +0000 (20:20 +0000)
commit61b1d46db0068a35c1ac51b93019dbe8122129ac
treeab9be0a026f1644da2b1bfe255ef10b0c53bb1cb
parenta2c0637129f0c642a4d55df297bb353243ca7a49
devices: fix issue of per_interface_next_index

Per interface, next hop graph node can be customized
with vnet_hw_interface_rx_redirect_to_node function,
but it doesn't work well for af-packet type interface.

In current implementation, with function
af_packet_set_interface_next_node invoked next hop graph
node index can be set to apif->per_interface_next_index,
but it's not set to next0 properly for packet processing
in af_packet_device_input_fn.

Type: fix

Signed-off-by: Michael Yu <[email protected]>
Change-Id: I8e132ddd1c3c01b6f476de78546d4a9389b3ff87
Signed-off-by: Michael Yu <[email protected]>
(cherry picked from commit 90b34ed67a516c4391ad353ba431f8419b582d50)
src/vnet/devices/af_packet/node.c