History

openvswitch: Add tunneling interface.

Add ovs tunnel interface for set tunnel action for userspace.

Pravin B Shelar committed 13 years ago

Commit 7d5437c1 parent 74f84a510 files · +251 −7Browse files

Showing the changes to include/uapi/linux (1 of 10 files). Show all

Unified · Split

include/uapi/linux/openvswitch.h+18−0
@@ -246,11 +246,29 @@ enum ovs_key_attr { · 245 unmodified lines
246246 OVS_KEY_ATTR_ARP, /* struct ovs_key_arp */
247247 OVS_KEY_ATTR_ND, /* struct ovs_key_nd */
248248 OVS_KEY_ATTR_SKB_MARK, /* u32 skb mark */
249+ OVS_KEY_ATTR_TUNNEL, /* Nested set of ovs_tunnel attributes */
250+
251+#ifdef __KERNEL__
252+ OVS_KEY_ATTR_IPV4_TUNNEL, /* struct ovs_key_ipv4_tunnel */
253+#endif
249254 __OVS_KEY_ATTR_MAX
250255 };
251256
252257 #define OVS_KEY_ATTR_MAX (__OVS_KEY_ATTR_MAX - 1)
253258
259+enum ovs_tunnel_key_attr {
260+ OVS_TUNNEL_KEY_ATTR_ID, /* be64 Tunnel ID */
261+ OVS_TUNNEL_KEY_ATTR_IPV4_SRC, /* be32 src IP address. */
262+ OVS_TUNNEL_KEY_ATTR_IPV4_DST, /* be32 dst IP address. */
263+ OVS_TUNNEL_KEY_ATTR_TOS, /* u8 Tunnel IP ToS. */
264+ OVS_TUNNEL_KEY_ATTR_TTL, /* u8 Tunnel IP TTL. */
265+ OVS_TUNNEL_KEY_ATTR_DONT_FRAGMENT, /* No argument, set DF. */
266+ OVS_TUNNEL_KEY_ATTR_CSUM, /* No argument. CSUM packet. */
267+ __OVS_TUNNEL_KEY_ATTR_MAX
268+};
269+
270+#define OVS_TUNNEL_KEY_ATTR_MAX (__OVS_TUNNEL_KEY_ATTR_MAX - 1)
271+
254272 /**
255273 * enum ovs_frag_type - IPv4 and IPv6 fragment type
256274 * @OVS_FRAG_TYPE_NONE: Packet is not a fragment.

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t