Re: [ovs-dev] Question about metadata matching

2014-08-27 Thread Thomas Graf
On 08/26/14 at 03:23pm, Junguk Cho wrote: > What I thought is to generally use metadata as matching rule in datapath. > It is not just between tables. You may be looking for the 'mark' field of the flow. It is known in the datapath and used across different Linux kernel subsystems. ___

Re: [ovs-dev] Question about metadata matching

2014-08-26 Thread Junguk Cho
What I thought is to generally use metadata as matching rule in datapath. It is not just between tables. Thanks, Junguk 2014-08-26 15:15 GMT-06:00 Ben Pfaff : > On Tue, Aug 26, 2014 at 03:14:10PM -0600, Junguk Cho wrote: > > But, it is in "struct flow" in lib/flow.h. > > It is not from "stru

Re: [ovs-dev] Question about metadata matching

2014-08-26 Thread Ben Pfaff
On Tue, Aug 26, 2014 at 03:14:10PM -0600, Junguk Cho wrote: > But, it is in "struct flow" in lib/flow.h. > It is not from "struct sw_flow_key" in /datapath/flow.h. > > I assume metadata is used in action in datapath. metadata is not a datapath concept. There is no need for it to be a datapath co

Re: [ovs-dev] Question about metadata matching

2014-08-26 Thread Junguk Cho
But, it is in "struct flow" in lib/flow.h. It is not from "struct sw_flow_key" in /datapath/flow.h. I assume metadata is used in action in datapath. Is it right? Thanks, Junguk 2014-08-26 14:00 GMT-06:00 Ben Pfaff : > On Tue, Aug 26, 2014 at 01:57:32PM -0600, Junguk Cho wrote: > > One more qu

Re: [ovs-dev] Question about metadata matching

2014-08-26 Thread Ben Pfaff
On Tue, Aug 26, 2014 at 01:57:32PM -0600, Junguk Cho wrote: > One more question, if we used metadata, is metadata stored in "tun_in" in > "struct ovs_key_ipv4_tunnel"? No. > Which data structure keeps metadata information? struct flow's "metadata" member.

Re: [ovs-dev] Question about metadata matching

2014-08-26 Thread Junguk Cho
Ok. I got it. Maybe I misunderstood the concept of metadata. Metadata is passed between tables. It is not from packets. One more question, if we used metadata, is metadata stored in "tun_in" in "struct ovs_key_ipv4_tunnel"? Which data structure keeps metadata information? Thanks, Junguk 2014-08

Re: [ovs-dev] Question about metadata matching

2014-08-26 Thread Ben Pfaff
Metadata is always 0 at the point that a packet enters the OpenFlow pipeline, so there's no need for the datapath to match on it--it would always be a match against 0. On Tue, Aug 26, 2014 at 01:44:56PM -0600, Junguk Cho wrote: > Oh, really? > > Basically, what I understood is datapath keeps some

Re: [ovs-dev] Question about metadata matching

2014-08-26 Thread Junguk Cho
Oh, really? Basically, what I understood is datapath keeps some tables based on "struct sw_flow_key" and used it for evaluating if incoming packet is matched or not. Is it right or do I miss something? If I miss something, can you forward me to metadata matching in datapath? Thanks, Junguk 2

Re: [ovs-dev] Question about metadata matching

2014-08-26 Thread Ben Pfaff
On Tue, Aug 26, 2014 at 01:36:04PM -0600, Junguk Cho wrote: > Hi, I have a simple question. > When we use metadata as flow-rule, > Does all traffic forward ofproto to match it because there is no match > field in "struct sw_flow" in datapath? No, metadata matching still allows for kernel forwardin

[ovs-dev] Question about metadata matching

2014-08-26 Thread Junguk Cho
Hi, I have a simple question. When we use metadata as flow-rule, Does all traffic forward ofproto to match it because there is no match field in "struct sw_flow" in datapath? Thanks, Junguk ___ dev mailing list dev@openvswitch.org http://openvswitch.org/