-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
infra: packet tracing #81
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Chris,
Thank you for this. This is a precious tool to help understanding packet flow.
In addition of my code review remarks, I think this series should be split at least in 4 or 5 commits. You already list multiple independent changes in your commit message. You can start with this, but I think more fine grain commits would help a lot.
Cheers
ed1ce08
to
09e1c0e
Compare
cc0445c
to
5954b3e
Compare
8cc6f57
to
eeae9af
Compare
Added trace cli to enable/disable globally and per interface packet tracing. |
1f1e0f7
to
73d1c03
Compare
Add packet tracing infrastructure, to log packet traversal on nodes. Add CLI to enable/disable packet tracing per interface. Signed-off-by: Christophe Fontaine <cfontain@redhat.com>
Use trace api to enable/disable packet tracing for control_input node. Signed-off-by: Christophe Fontaine <cfontain@redhat.com>
Add ethertype and ip proto format functions Signed-off-by: Christophe Fontaine <cfontain@redhat.com>
Implement tracing functions for ethernet nodes. For vlan interfaces, enable tracing according to the user intent. Signed-off-by: Christophe Fontaine <cfontain@redhat.com>
Implement tracing function for arp input/output/output_request. Signed-off-by: Christophe Fontaine <cfontain@redhat.com>
Implement tracing for icmp_node node Signed-off-by: Christophe Fontaine <cfontain@redhat.com>
Implement tracing functions for ip nodes. Update tests to enable and show traces. Signed-off-by: Christophe Fontaine <cfontain@redhat.com>
Implement tracing for ipip nodes Signed-off-by: Christophe Fontaine <cfontain@redhat.com>
Implement tracing for ip6/icmp6/ndp nodes. Signed-off-by: Christophe Fontaine <cfontain@redhat.com>
Implement tracing and trace aggregate for control output node. Signed-off-by: Christophe Fontaine <cfontain@redhat.com>
73d1c03
to
e90543d
Compare
Prepend a common structure for all mbuf priv data Prepend to all mbuf_priv data a common structure, which will include data available for the whole life of the packet.
Add packet tracing infra, to log the packet traversal on each node. Add CLI to enable/disable packet tracing per interface. Add relevant trace function on nodes.
'show trace' command is destructive and empties the ring.
Sample output: