On 31 Oct 2019, at 15:21, Ilya Maximets wrote:

On 31.10.2019 13:12, Eelco Chaudron wrote:
This patch adds support for DPDK to notify link layer changes trough
the if_notifier_xxx() APIs.

Signed-off-by: Eelco Chaudron <[email protected]>
---
  lib/automake.mk        |    4 ++
lib/if-notifier-dpdk.c | 82 ++++++++++++++++++++++++++++++++++++++++++++++++
  lib/if-notifier-dpdk.h |   46 +++++++++++++++++++++++++++
  lib/if-notifier.c      |   21 +++++++++++-
  4 files changed, 149 insertions(+), 4 deletions(-)
  create mode 100644 lib/if-notifier-dpdk.c
  create mode 100644 lib/if-notifier-dpdk.h


Looking at all of this code I think that it might be too heavy
for just a single function to increment single sequence number.

Another approach:
Maybe we could just call rtnetlink_report_link() as a workaround.
netdev-dpdk is Linux dependent right now anyway.
What do you think?

That would work, but it’s not really thread safe, as its will be called from the eal interrupt thread

//Eelco

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to