[ovs-dev] [0/2] extend nlmon functionality to support TC flowers monitoring

Mohammad Heib mheib at redhat.com
Sun Nov 21 23:39:31 UTC 2021

These two patches aim to make nlmon tool more generic
and extend its functionality to support TC flowers/actions
monitoring and parsing.

This change will improve the visibility of the communication
between the OVS and the TC subsystem and can be used for debugging
and testing OVS HW offload communication with TC.

The patches added basic support for capturing and parsing TC flower
create/replace/changes Netlink messages and print those messages after
parsing them, example:

 $ nlmon -l info -t tc
  filter ifindex 10 nsid local protocol 0x806 pref 49148 flower chain 0 handle 0x1 

  filter ifindex 10 nsid local protocol 0x806 pref 49147 flower chain 0 handle 0x1 

The first patch adds support for setting the nlmon log level from the CLI.

This change is backward compatible and apps that use nlmon
can still use it without any change required.

Mohammad Heib (2):
  utilities/nlmon: extend nlmon design to handle more groups
  utilities/nlmon: Add TC flower monitoring support

 utilities/nlmon.c | 575 +++++++++++++++++++++++++++++++++++++++++++++-
 utilities/nlmon.h | 162 +++++++++++++
 2 files changed, 727 insertions(+), 10 deletions(-)
 create mode 100644 utilities/nlmon.h


More information about the dev mailing list