mirror of
https://github.com/openvswitch/ovs
synced 2025-10-19 14:37:21 +00:00
Checksum offloading has changed quite a bit across different kernel and Xen versions. Since it is part of the skb data structure it is unfortunately difficult to separate out into compatibility code. This consolidates all of the checksum code in one place which makes it easier read and remove as we prepare for upstreaming. On newer kernels it also puts everything in inline functions, eliminating the need to run through the compat code or make extra function calls. Signed-off-by: Jesse Gross <jesse@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com>
25 lines
567 B
C
25 lines
567 B
C
/*
|
|
* Copyright (c) 2009, 2010 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 odp_flow_key;
|
|
union odp_action;
|
|
|
|
int execute_actions(struct datapath *dp, struct sk_buff *skb,
|
|
const struct odp_flow_key *key,
|
|
const union odp_action *, int n_actions);
|
|
|
|
#endif /* actions.h */
|