diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2011-06-15 21:31:01 +0000 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2011-06-15 21:31:01 +0000 |
commit | 235e3319876d5d1354e2774ec73495fdeb2616ec (patch) | |
tree | d776ac5daed14d9e6ee5562e979d388420e8ff08 /target/linux/generic/patches-3.0/650-pppoe_header_pad.patch | |
parent | 0db9c2bd7d3620ba18fa784bda702d971783b4f6 (diff) | |
download | mtk-20170518-235e3319876d5d1354e2774ec73495fdeb2616ec.zip mtk-20170518-235e3319876d5d1354e2774ec73495fdeb2616ec.tar.gz mtk-20170518-235e3319876d5d1354e2774ec73495fdeb2616ec.tar.bz2 |
linux/generic: Add support for 3.0-rc3
Also make linux identify itself properly as 3.0, not 3.0.0.
Signed-off-by: Jonas Gorski <jonas.gorski+openwrt@gmail.com>
SVN-Revision: 27191
Diffstat (limited to 'target/linux/generic/patches-3.0/650-pppoe_header_pad.patch')
-rw-r--r-- | target/linux/generic/patches-3.0/650-pppoe_header_pad.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/target/linux/generic/patches-3.0/650-pppoe_header_pad.patch b/target/linux/generic/patches-3.0/650-pppoe_header_pad.patch new file mode 100644 index 0000000..4875d5f --- /dev/null +++ b/target/linux/generic/patches-3.0/650-pppoe_header_pad.patch @@ -0,0 +1,20 @@ +--- a/drivers/net/pppoe.c ++++ b/drivers/net/pppoe.c +@@ -855,7 +855,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; +@@ -863,7 +863,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; |