Re: [ovs-dev] [PATCH] ofproto-dpif-xlate: Don't save pkt_mark in compose_output_action__().
Thanks, applied to master. On Fri, Mar 17, 2017 at 11:07:30AM -0700, Jarno Rajahalme wrote: > Acked-by: Jarno Rajahalme > > > On Mar 17, 2017, at 10:55 AM, Ben Pfaff wrote: > > > > Previously, this function could modify the pkt_mark field as part of IPsec > > integration. It no longer does that, so there's no longer any need for it > > to save and restore pkt_mark, and this commit removes that. > > > > CC: Ansis Atteka > > Signed-off-by: Ben Pfaff > > --- > > ofproto/ofproto-dpif-xlate.c | 3 --- > > 1 file changed, 3 deletions(-) > > > > diff --git a/ofproto/ofproto-dpif-xlate.c b/ofproto/ofproto-dpif-xlate.c > > index 1a82b8d569be..9fe778a32857 100644 > > --- a/ofproto/ofproto-dpif-xlate.c > > +++ b/ofproto/ofproto-dpif-xlate.c > > @@ -3265,7 +3265,6 @@ compose_output_action__(struct xlate_ctx *ctx, > > ofp_port_t ofp_port, > > struct flow *flow = &ctx->xin->flow; > > struct flow_tnl flow_tnl; > > union flow_vlan_hdr flow_vlans[FLOW_MAX_VLAN_HEADERS]; > > -uint32_t flow_pkt_mark; > > uint8_t flow_nw_tos; > > odp_port_t out_port, odp_port; > > bool tnl_push_pop_send = false; > > @@ -3460,7 +3459,6 @@ compose_output_action__(struct xlate_ctx *ctx, > > ofp_port_t ofp_port, > > } > > > > memcpy(flow_vlans, flow->vlans, sizeof flow_vlans); > > -flow_pkt_mark = flow->pkt_mark; > > flow_nw_tos = flow->nw_tos; > > > > if (count_skb_priorities(xport)) { > > @@ -3588,7 +3586,6 @@ compose_output_action__(struct xlate_ctx *ctx, > > ofp_port_t ofp_port, > > out: > > /* Restore flow */ > > memcpy(flow->vlans, flow_vlans, sizeof flow->vlans); > > -flow->pkt_mark = flow_pkt_mark; > > flow->nw_tos = flow_nw_tos; > > } > > > > -- > > 2.10.2 > > > > ___ > > dev mailing list > > d...@openvswitch.org > > https://mail.openvswitch.org/mailman/listinfo/ovs-dev > ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev
Re: [ovs-dev] [PATCH] ofproto-dpif-xlate: Don't save pkt_mark in compose_output_action__().
On Sat, Mar 18, 2017 at 01:15:53PM +0500, Valentine Sinitsyn wrote: > Hi, > > On 17.03.2017 22:55, Ben Pfaff wrote: > >Previously, this function could modify the pkt_mark field as part of IPsec > >integration. It no longer does that, so there's no longer any need for it > >to save and restore pkt_mark, and this commit removes that. > Does it mean that now there is no way to send a bit of information across a > pair of patch ports, that is, mark a packet on bridge A and check the mark > on bridge B? This change doesn't have anything to do with that. ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev
Re: [ovs-dev] [PATCH] ofproto-dpif-xlate: Don't save pkt_mark in compose_output_action__().
Hi, On 17.03.2017 22:55, Ben Pfaff wrote: Previously, this function could modify the pkt_mark field as part of IPsec integration. It no longer does that, so there's no longer any need for it to save and restore pkt_mark, and this commit removes that. Does it mean that now there is no way to send a bit of information across a pair of patch ports, that is, mark a packet on bridge A and check the mark on bridge B? Thanks, Valentine CC: Ansis Atteka Signed-off-by: Ben Pfaff --- ofproto/ofproto-dpif-xlate.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/ofproto/ofproto-dpif-xlate.c b/ofproto/ofproto-dpif-xlate.c index 1a82b8d569be..9fe778a32857 100644 --- a/ofproto/ofproto-dpif-xlate.c +++ b/ofproto/ofproto-dpif-xlate.c @@ -3265,7 +3265,6 @@ compose_output_action__(struct xlate_ctx *ctx, ofp_port_t ofp_port, struct flow *flow = &ctx->xin->flow; struct flow_tnl flow_tnl; union flow_vlan_hdr flow_vlans[FLOW_MAX_VLAN_HEADERS]; -uint32_t flow_pkt_mark; uint8_t flow_nw_tos; odp_port_t out_port, odp_port; bool tnl_push_pop_send = false; @@ -3460,7 +3459,6 @@ compose_output_action__(struct xlate_ctx *ctx, ofp_port_t ofp_port, } memcpy(flow_vlans, flow->vlans, sizeof flow_vlans); -flow_pkt_mark = flow->pkt_mark; flow_nw_tos = flow->nw_tos; if (count_skb_priorities(xport)) { @@ -3588,7 +3586,6 @@ compose_output_action__(struct xlate_ctx *ctx, ofp_port_t ofp_port, out: /* Restore flow */ memcpy(flow->vlans, flow_vlans, sizeof flow->vlans); -flow->pkt_mark = flow_pkt_mark; flow->nw_tos = flow_nw_tos; } ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev
Re: [ovs-dev] [PATCH] ofproto-dpif-xlate: Don't save pkt_mark in compose_output_action__().
Acked-by: Jarno Rajahalme > On Mar 17, 2017, at 10:55 AM, Ben Pfaff wrote: > > Previously, this function could modify the pkt_mark field as part of IPsec > integration. It no longer does that, so there's no longer any need for it > to save and restore pkt_mark, and this commit removes that. > > CC: Ansis Atteka > Signed-off-by: Ben Pfaff > --- > ofproto/ofproto-dpif-xlate.c | 3 --- > 1 file changed, 3 deletions(-) > > diff --git a/ofproto/ofproto-dpif-xlate.c b/ofproto/ofproto-dpif-xlate.c > index 1a82b8d569be..9fe778a32857 100644 > --- a/ofproto/ofproto-dpif-xlate.c > +++ b/ofproto/ofproto-dpif-xlate.c > @@ -3265,7 +3265,6 @@ compose_output_action__(struct xlate_ctx *ctx, > ofp_port_t ofp_port, > struct flow *flow = &ctx->xin->flow; > struct flow_tnl flow_tnl; > union flow_vlan_hdr flow_vlans[FLOW_MAX_VLAN_HEADERS]; > -uint32_t flow_pkt_mark; > uint8_t flow_nw_tos; > odp_port_t out_port, odp_port; > bool tnl_push_pop_send = false; > @@ -3460,7 +3459,6 @@ compose_output_action__(struct xlate_ctx *ctx, > ofp_port_t ofp_port, > } > > memcpy(flow_vlans, flow->vlans, sizeof flow_vlans); > -flow_pkt_mark = flow->pkt_mark; > flow_nw_tos = flow->nw_tos; > > if (count_skb_priorities(xport)) { > @@ -3588,7 +3586,6 @@ compose_output_action__(struct xlate_ctx *ctx, > ofp_port_t ofp_port, > out: > /* Restore flow */ > memcpy(flow->vlans, flow_vlans, sizeof flow->vlans); > -flow->pkt_mark = flow_pkt_mark; > flow->nw_tos = flow_nw_tos; > } > > -- > 2.10.2 > > ___ > dev mailing list > d...@openvswitch.org > https://mail.openvswitch.org/mailman/listinfo/ovs-dev ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev
[ovs-dev] [PATCH] ofproto-dpif-xlate: Don't save pkt_mark in compose_output_action__().
Previously, this function could modify the pkt_mark field as part of IPsec integration. It no longer does that, so there's no longer any need for it to save and restore pkt_mark, and this commit removes that. CC: Ansis Atteka Signed-off-by: Ben Pfaff --- ofproto/ofproto-dpif-xlate.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/ofproto/ofproto-dpif-xlate.c b/ofproto/ofproto-dpif-xlate.c index 1a82b8d569be..9fe778a32857 100644 --- a/ofproto/ofproto-dpif-xlate.c +++ b/ofproto/ofproto-dpif-xlate.c @@ -3265,7 +3265,6 @@ compose_output_action__(struct xlate_ctx *ctx, ofp_port_t ofp_port, struct flow *flow = &ctx->xin->flow; struct flow_tnl flow_tnl; union flow_vlan_hdr flow_vlans[FLOW_MAX_VLAN_HEADERS]; -uint32_t flow_pkt_mark; uint8_t flow_nw_tos; odp_port_t out_port, odp_port; bool tnl_push_pop_send = false; @@ -3460,7 +3459,6 @@ compose_output_action__(struct xlate_ctx *ctx, ofp_port_t ofp_port, } memcpy(flow_vlans, flow->vlans, sizeof flow_vlans); -flow_pkt_mark = flow->pkt_mark; flow_nw_tos = flow->nw_tos; if (count_skb_priorities(xport)) { @@ -3588,7 +3586,6 @@ compose_output_action__(struct xlate_ctx *ctx, ofp_port_t ofp_port, out: /* Restore flow */ memcpy(flow->vlans, flow_vlans, sizeof flow->vlans); -flow->pkt_mark = flow_pkt_mark; flow->nw_tos = flow_nw_tos; } -- 2.10.2 ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev