netfilter: bridge: refactor frag_max_size
authorBernhard Thaler <bernhard.thaler@wvnet.at>
Sat, 30 May 2015 13:28:28 +0000 (15:28 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 12 Jun 2015 12:08:51 +0000 (14:08 +0200)
commit411ffb4fde80705a9a8db4c2d38dbeef6f5bd689
tree225a56eb69a24396de12556e0641955ae4801fac
parent72b31f7271df34c6aab36c01305287924826678f
netfilter: bridge: refactor frag_max_size

Currently frag_max_size is member of br_input_skb_cb and copied back and
forth using IPCB(skb) and BR_INPUT_SKB_CB(skb) each time it is changed or
used.

Attach frag_max_size to nf_bridge_info and set value in pre_routing and
forward functions. Use its value in forward and xmit functions.

Signed-off-by: Bernhard Thaler <bernhard.thaler@wvnet.at>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/linux/skbuff.h
net/bridge/br_netfilter.c
net/bridge/br_private.h