Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 213894
b: refs/heads/master
c: eb4d406
h: refs/heads/master
v: v3
  • Loading branch information
Grégoire Baron authored and David S. Miller committed Aug 20, 2010
1 parent 65b2a02 commit 33cb6b2
Show file tree
Hide file tree
Showing 7 changed files with 655 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 49e8ab03ebcacd8e37660ffec20c0c46721a2800
refs/heads/master: eb4d40654505e47aa9d2035bb97f631fa61d14b4
1 change: 1 addition & 0 deletions trunk/include/linux/tc_act/Kbuild
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ header-y += tc_mirred.h
header-y += tc_pedit.h
header-y += tc_nat.h
header-y += tc_skbedit.h
header-y += tc_csum.h
32 changes: 32 additions & 0 deletions trunk/include/linux/tc_act/tc_csum.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#ifndef __LINUX_TC_CSUM_H
#define __LINUX_TC_CSUM_H

#include <linux/types.h>
#include <linux/pkt_cls.h>

#define TCA_ACT_CSUM 16

enum {
TCA_CSUM_UNSPEC,
TCA_CSUM_PARMS,
TCA_CSUM_TM,
__TCA_CSUM_MAX
};
#define TCA_CSUM_MAX (__TCA_CSUM_MAX - 1)

enum {
TCA_CSUM_UPDATE_FLAG_IPV4HDR = 1,
TCA_CSUM_UPDATE_FLAG_ICMP = 2,
TCA_CSUM_UPDATE_FLAG_IGMP = 4,
TCA_CSUM_UPDATE_FLAG_TCP = 8,
TCA_CSUM_UPDATE_FLAG_UDP = 16,
TCA_CSUM_UPDATE_FLAG_UDPLITE = 32
};

struct tc_csum {
tc_gen;

__u32 update_flags;
};

#endif /* __LINUX_TC_CSUM_H */
15 changes: 15 additions & 0 deletions trunk/include/net/tc_act/tc_csum.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#ifndef __NET_TC_CSUM_H
#define __NET_TC_CSUM_H

#include <linux/types.h>
#include <net/act_api.h>

struct tcf_csum {
struct tcf_common common;

u32 update_flags;
};
#define to_tcf_csum(pc) \
container_of(pc,struct tcf_csum,common)

#endif /* __NET_TC_CSUM_H */
10 changes: 10 additions & 0 deletions trunk/net/sched/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,16 @@ config NET_ACT_SKBEDIT
To compile this code as a module, choose M here: the
module will be called act_skbedit.

config NET_ACT_CSUM
tristate "Checksum Updating"
depends on NET_CLS_ACT
---help---
Say Y here to update some common checksum after some direct
packet alterations.

To compile this code as a module, choose M here: the
module will be called act_csum.

config NET_CLS_IND
bool "Incoming device classification"
depends on NET_CLS_U32 || NET_CLS_FW
Expand Down
1 change: 1 addition & 0 deletions trunk/net/sched/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ obj-$(CONFIG_NET_ACT_NAT) += act_nat.o
obj-$(CONFIG_NET_ACT_PEDIT) += act_pedit.o
obj-$(CONFIG_NET_ACT_SIMP) += act_simple.o
obj-$(CONFIG_NET_ACT_SKBEDIT) += act_skbedit.o
obj-$(CONFIG_NET_ACT_CSUM) += act_csum.o
obj-$(CONFIG_NET_SCH_FIFO) += sch_fifo.o
obj-$(CONFIG_NET_SCH_CBQ) += sch_cbq.o
obj-$(CONFIG_NET_SCH_HTB) += sch_htb.o
Expand Down
Loading

0 comments on commit 33cb6b2

Please sign in to comment.