diff options
author | Imre Kaloz <kaloz@openwrt.org> | 2012-11-18 18:52:38 +0000 |
---|---|---|
committer | Imre Kaloz <kaloz@openwrt.org> | 2012-11-18 18:52:38 +0000 |
commit | 935ca3f3eb7435b50b91bc2ed341a4bbd6e759b0 (patch) | |
tree | 48e34d859046c692a221dddd165db5abc37feb90 /target/linux/generic/patches-3.7/650-pppoe_header_pad.patch | |
parent | d0226aff1d62d39530819938ac116ee3cbb93efa (diff) | |
download | mtk-20170518-935ca3f3eb7435b50b91bc2ed341a4bbd6e759b0.zip mtk-20170518-935ca3f3eb7435b50b91bc2ed341a4bbd6e759b0.tar.gz mtk-20170518-935ca3f3eb7435b50b91bc2ed341a4bbd6e759b0.tar.bz2 |
add 3.7-rc6 support (patch 820 still has to be fixed)
SVN-Revision: 34247
Diffstat (limited to 'target/linux/generic/patches-3.7/650-pppoe_header_pad.patch')
-rw-r--r-- | target/linux/generic/patches-3.7/650-pppoe_header_pad.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/target/linux/generic/patches-3.7/650-pppoe_header_pad.patch b/target/linux/generic/patches-3.7/650-pppoe_header_pad.patch new file mode 100644 index 0000000..a89a9f3 --- /dev/null +++ b/target/linux/generic/patches-3.7/650-pppoe_header_pad.patch @@ -0,0 +1,20 @@ +--- a/drivers/net/ppp/pppoe.c ++++ b/drivers/net/ppp/pppoe.c +@@ -850,7 +850,7 @@ static int pppoe_sendmsg(struct kiocb *i + goto end; + + +- skb = sock_wmalloc(sk, total_len + dev->hard_header_len + 32, ++ skb = sock_wmalloc(sk, total_len + dev->hard_header_len + 32 + NET_SKB_PAD, + 0, GFP_KERNEL); + if (!skb) { + error = -ENOMEM; +@@ -858,7 +858,7 @@ static int pppoe_sendmsg(struct kiocb *i + } + + /* Reserve space for headers. */ +- skb_reserve(skb, dev->hard_header_len); ++ skb_reserve(skb, dev->hard_header_len + NET_SKB_PAD); + skb_reset_network_header(skb); + + skb->dev = dev; |