mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 06:15:47 +00:00
datapath: Convert kernel priority actions into match/set.
Following patch adds skb-priority to flow key. So userspace will know what was priority when packet arrived and we can remove the pop/reset priority action. It's no longer necessary to have a special action for pop that is based on the kernel remembering original skb->priority. Userspace can just emit a set priority action with the original value. Since the priority field is a match field with just a normal set action, we can convert it into the new model for actions that are based on matches. Signed-off-by: Pravin B Shelar <pshelar@nicira.com> Acked-by: Jesse Gross <jesse@nicira.com> Bug #7715
This commit is contained in:
@@ -419,7 +419,7 @@ process_packet_in(struct lswitch *sw, struct rconn *rconn,
|
||||
pkt_ofs = offsetof(struct ofp_packet_in, data);
|
||||
pkt_len = ntohs(opi->header.length) - pkt_ofs;
|
||||
ofpbuf_use_const(&pkt, opi->data, pkt_len);
|
||||
flow_extract(&pkt, 0, in_port, &flow);
|
||||
flow_extract(&pkt, 0, 0, in_port, &flow);
|
||||
|
||||
/* Choose output port. */
|
||||
out_port = lswitch_choose_destination(sw, &flow);
|
||||
|
Reference in New Issue
Block a user