aboutsummaryrefslogtreecommitdiff
path: root/datapath/actions.h
blob: a832295ce8043fefcc936eff8f64b82fe535ec62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
 * Copyright (c) 2009, 2010, 2011 Nicira Networks.
 * Distributed under the terms of the GNU GPL version 2.
 *
 * Significant portions of this file may be copied from parts of the Linux
 * kernel, by Linus Torvalds and others.
 */

#ifndef ACTIONS_H
#define ACTIONS_H 1

#include <linux/skbuff.h>
#include <linux/version.h>

struct datapath;
struct sk_buff;
struct sw_flow_key;

int execute_actions(struct datapath *dp, struct sk_buff *skb);

static inline void skb_clear_rxhash(struct sk_buff *skb)
{
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35)
	skb->rxhash = 0;
#endif
}

#endif /* actions.h */