mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 06:15:47 +00:00
flow: Extend struct flow to contain tunnel outer header.
Soon the kernel will begin supplying the information about the outer IP header for tunneled packets and userspace will need to be able to track it as part of the flow. For the time being this is only used internally by OVS and not exposed outwards to OpenFlow. As a result, this threads the information throughout userspace but simply stores the existing tun_id in it. Signed-off-by: Jesse Gross <jesse@nicira.com>
This commit is contained in:
@@ -1399,7 +1399,7 @@ dpif_linux_vport_send(int dp_ifindex, uint32_t port_no,
|
||||
uint64_t action;
|
||||
|
||||
ofpbuf_use_const(&packet, data, size);
|
||||
flow_extract(&packet, 0, htonll(0), 0, &flow);
|
||||
flow_extract(&packet, 0, NULL, 0, &flow);
|
||||
|
||||
ofpbuf_use_stack(&key, &keybuf, sizeof keybuf);
|
||||
odp_flow_key_from_flow(&key, &flow);
|
||||
|
Reference in New Issue
Block a user