[IPVS]: Replace local version of skb_make_writable
This patch removes the IPVS-specific version of skb_make_writable and replaces it with the netfilter one. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
37d4187922
commit
af1e1cf073
@@ -20,6 +20,7 @@
|
||||
#include <linux/tcp.h> /* for tcphdr */
|
||||
#include <net/ip.h>
|
||||
#include <net/tcp.h> /* for csum_tcpudp_magic */
|
||||
#include <linux/netfilter.h>
|
||||
#include <linux/netfilter_ipv4.h>
|
||||
|
||||
#include <net/ip_vs.h>
|
||||
@@ -129,7 +130,7 @@ tcp_snat_handler(struct sk_buff **pskb,
|
||||
const unsigned int tcphoff = ip_hdrlen(*pskb);
|
||||
|
||||
/* csum_check requires unshared skb */
|
||||
if (!ip_vs_make_skb_writable(pskb, tcphoff+sizeof(*tcph)))
|
||||
if (!skb_make_writable(*pskb, tcphoff+sizeof(*tcph)))
|
||||
return 0;
|
||||
|
||||
if (unlikely(cp->app != NULL)) {
|
||||
@@ -177,7 +178,7 @@ tcp_dnat_handler(struct sk_buff **pskb,
|
||||
const unsigned int tcphoff = ip_hdrlen(*pskb);
|
||||
|
||||
/* csum_check requires unshared skb */
|
||||
if (!ip_vs_make_skb_writable(pskb, tcphoff+sizeof(*tcph)))
|
||||
if (!skb_make_writable(*pskb, tcphoff+sizeof(*tcph)))
|
||||
return 0;
|
||||
|
||||
if (unlikely(cp->app != NULL)) {
|
||||
|
Reference in New Issue
Block a user