mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 14:25:26 +00:00
dpif-netdev: Use PMD context to get the port for HW miss recovery.
Last RX queue, from which the packet got received, is already stored in the PMD context. So, we can get the netdev from it without the expensive hash map lookup. In my V2V testing this patch improves performance in case HW offload and experimental APIs are enabled by about 3%. That narrows down the performance difference with the case with experimental API disabled to about 0.5%, which is way within a margin of error for that setup. Signed-off-by: Ilya Maximets <i.maximets@ovn.org> Acked-by: Eli Britstein <elibr@nvidia.com> Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
This commit is contained in:
@@ -46,7 +46,6 @@ dp_netdev_batch_execute(struct dp_netdev_pmd_thread *pmd,
|
||||
|
||||
int
|
||||
dp_netdev_hw_flow(const struct dp_netdev_pmd_thread *pmd,
|
||||
odp_port_t port_no,
|
||||
struct dp_packet *packet,
|
||||
struct dp_netdev_flow **flow);
|
||||
|
||||
|
Reference in New Issue
Block a user