datapath.h (6e9041c6ddd6cbdc61d87bcaca8ca7bb17c28377) datapath.h (7d5437c709ded4f152cb8b305d17972d6707f20c)
1/*
2 * Copyright (c) 2007-2012 Nicira, Inc.
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of version 2 of the GNU General Public
6 * License as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful, but

--- 74 unchanged lines hidden (view full) ---

83 /* Network namespace ref. */
84 struct net *net;
85#endif
86};
87
88/**
89 * struct ovs_skb_cb - OVS data in skb CB
90 * @flow: The flow associated with this packet. May be %NULL if no flow.
1/*
2 * Copyright (c) 2007-2012 Nicira, Inc.
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of version 2 of the GNU General Public
6 * License as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful, but

--- 74 unchanged lines hidden (view full) ---

83 /* Network namespace ref. */
84 struct net *net;
85#endif
86};
87
88/**
89 * struct ovs_skb_cb - OVS data in skb CB
90 * @flow: The flow associated with this packet. May be %NULL if no flow.
91 * @tun_key: Key for the tunnel that encapsulated this packet. NULL if the
92 * packet is not being tunneled.
91 */
92struct ovs_skb_cb {
93 struct sw_flow *flow;
93 */
94struct ovs_skb_cb {
95 struct sw_flow *flow;
96 struct ovs_key_ipv4_tunnel *tun_key;
94};
95#define OVS_CB(skb) ((struct ovs_skb_cb *)(skb)->cb)
96
97/**
98 * struct dp_upcall - metadata to include with a packet to send to userspace
99 * @cmd: One of %OVS_PACKET_CMD_*.
100 * @key: Becomes %OVS_PACKET_ATTR_KEY. Must be nonnull.
101 * @userdata: If nonnull, its variable-length value is passed to userspace as

--- 81 unchanged lines hidden ---
97};
98#define OVS_CB(skb) ((struct ovs_skb_cb *)(skb)->cb)
99
100/**
101 * struct dp_upcall - metadata to include with a packet to send to userspace
102 * @cmd: One of %OVS_PACKET_CMD_*.
103 * @key: Becomes %OVS_PACKET_ATTR_KEY. Must be nonnull.
104 * @userdata: If nonnull, its variable-length value is passed to userspace as

--- 81 unchanged lines hidden ---