openvswitch / ovs-issues

Issue tracker repo for Open vSwitch
10 stars 3 forks source link

Providing a method for recording specific types of openflow packets on reveiving and sending stage. #228

Open bBobxx opened 3 years ago

bBobxx commented 3 years ago

Details about the received and sent OpenFlow protocol packets are recorded only when the debug mode is enabled. However, for certain types, such as OFPTYPE_FLOW_MOD, OFPTYPE_GROUP_MOD, OFPTYPE_ROLE_REPLY, OFPTYPE_BARRIER_REPLY, you need to record the details of each time. This patch provides a method for recording specific types of packets. This method can be used not only to print logs, but also to collect statistics, improving maintainability. We provide a way https://github.com/openvswitch/ovs/pull/369. Maybe consider adding some maintainability.