[ovs-discuss] Way to distinguish different packets rather than parsing a packet?
blp at ovn.org
Thu Jan 10 18:42:23 UTC 2019
On Thu, Jan 10, 2019 at 02:34:47PM +0800, Krish wrote:
> Is there any other way to distinguish different types of packets/flows when
> they enter dp_netdev_input__ and processed further(EMC,fastpath etc)?
> As of now, I have to *flow_extract* the packets using *struct flow flow*:
> if (flow.nw_proto == IPPROTO_TCP && l4_size >= TCP_HEADER_LEN) I want to
> distinguish different packets like udp,icmp,tcp etc. Parsing packets is
> time consuming. OR Another idea is to extract 5_tuple_fields from the
> packet and calculate hash on these fields without *miniflow_extract*, Can
> anyone help me pointing to the right direction of where or how I can
> extract these fields without miniflow or flow extract? Any help would be
> highly appreciated Thank You
You can distinguish packets any way you like, but if you don't extract
the flow you probably won't be able to take advantage of the usual
features of OVS, which are all flow-based.
More information about the discuss