Re: [ovs-dev] set_field:222->pkt_mark does not take effect

2014-09-19 Thread Ben Pfaff
On Thu, Sep 18, 2014 at 10:02:15AM +0530, Nirmalanand Jebakumar wrote: > On Thu, Sep 18, 2014 at 2:30 AM, Ben Pfaff wrote: > > > As it turns out, when output goes through a tunnel, the pkt_mark comes > > from the tunnel configuration. Currently, OVS forces it to 1 for IPSEC > > tunnel traffic an

Re: [ovs-dev] set_field:222->pkt_mark does not take effect

2014-09-17 Thread Nirmalanand Jebakumar
On Thu, Sep 18, 2014 at 2:30 AM, Ben Pfaff wrote: > As it turns out, when output goes through a tunnel, the pkt_mark comes > from the tunnel configuration. Currently, OVS forces it to 1 for IPSEC > tunnel traffic and 0 for other tunnel traffic. This could be changed, > and it probably should, b

Re: [ovs-dev] set_field:222->pkt_mark does not take effect

2014-09-17 Thread Ben Pfaff
As it turns out, when output goes through a tunnel, the pkt_mark comes from the tunnel configuration. Currently, OVS forces it to 1 for IPSEC tunnel traffic and 0 for other tunnel traffic. This could be changed, and it probably should, because it is surprising, but this is the first that I've not

Re: [ovs-dev] set_field:222->pkt_mark does not take effect

2014-09-17 Thread Ben Pfaff
OK, this may be a bug. I'll try to investigate soon. On Wed, Sep 17, 2014 at 11:53:16PM +0530, Nirmalanand Jebakumar wrote: > Hi Ben, > > The ovs-dpctl command output does not show any skb_mark being set for the > datapath flow: > > # ovs-dpctl dump-flows > skb_priority(0),in_port(4),eth(src=52

Re: [ovs-dev] set_field:222->pkt_mark does not take effect

2014-09-17 Thread Nirmalanand Jebakumar
Hi Ben, The ovs-dpctl command output does not show any skb_mark being set for the datapath flow: # ovs-dpctl dump-flows skb_priority(0),in_port(4),eth(src=52:54:00:74:f9:41,dst=52:54:00:aa:93:9e),eth_type(0x0800),ipv4(src= 2.2.2.3/255.255.255.255,dst=2.2.2.2/255.255.255.255,proto=1/0xff,tos=0/0x3

Re: [ovs-dev] set_field:222->pkt_mark does not take effect

2014-09-17 Thread Ben Pfaff
On Wed, Sep 17, 2014 at 05:12:20PM +0530, Nirmalanand Jebakumar wrote: > In this link below, I read that pkt_mark is supported as a MATCH field. > Does OVS support pkt_mark as a SET action? Yes. > The command I ran is > /usr/bin/ovs-ofctl add-flow -O Openflow13 br0 " > hard_timeout=3600,idle_tim

[ovs-dev] set_field:222->pkt_mark does not take effect

2014-09-17 Thread Nirmalanand Jebakumar
Hello everyone, For some implementation of ours, we need to mark the socket buffer(sk_buff->skb_mark) using flows in an openvswitch (v 2.0) before sending it through an egress vxlan port on the OVS, for setting ToS and CoS values using iptables command later. VXLAN offload is not enabled on the h