diff options
author | David S. Miller <davem@davemloft.net> | 2015-03-03 21:16:48 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-03 21:16:48 -0500 |
commit | 71a83a6db6138b9d41d8a0b6b91cb59f6dc4742c (patch) | |
tree | f74b6e4e48257ec6ce40b95645ecb8533b9cc1f8 /net/ipv6 | |
parent | b97526f3ff95f92b107f0fb52cbb8627e395429b (diff) | |
parent | a6c5170d1edea97c538c81e377e56c7b5c5b7e63 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Conflicts:
drivers/net/ethernet/rocker/rocker.c
The rocker commit was two overlapping changes, one to rename
the ->vport member to ->pport, and another making the bitmask
expression use '1ULL' instead of plain '1'.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
-rw-r--r-- | net/ipv6/addrconf.c | 17 | ||||
-rw-r--r-- | net/ipv6/ip6_output.c | 3 |
2 files changed, 18 insertions, 2 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index 783bccfcc060..88d2cf0cae52 100644 --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c | |||
@@ -4935,6 +4935,21 @@ int addrconf_sysctl_forward(struct ctl_table *ctl, int write, | |||
4935 | return ret; | 4935 | return ret; |
4936 | } | 4936 | } |
4937 | 4937 | ||
4938 | static | ||
4939 | int addrconf_sysctl_mtu(struct ctl_table *ctl, int write, | ||
4940 | void __user *buffer, size_t *lenp, loff_t *ppos) | ||
4941 | { | ||
4942 | struct inet6_dev *idev = ctl->extra1; | ||
4943 | int min_mtu = IPV6_MIN_MTU; | ||
4944 | struct ctl_table lctl; | ||
4945 | |||
4946 | lctl = *ctl; | ||
4947 | lctl.extra1 = &min_mtu; | ||
4948 | lctl.extra2 = idev ? &idev->dev->mtu : NULL; | ||
4949 | |||
4950 | return proc_dointvec_minmax(&lctl, write, buffer, lenp, ppos); | ||
4951 | } | ||
4952 | |||
4938 | static void dev_disable_change(struct inet6_dev *idev) | 4953 | static void dev_disable_change(struct inet6_dev *idev) |
4939 | { | 4954 | { |
4940 | struct netdev_notifier_info info; | 4955 | struct netdev_notifier_info info; |
@@ -5086,7 +5101,7 @@ static struct addrconf_sysctl_table | |||
5086 | .data = &ipv6_devconf.mtu6, | 5101 | .data = &ipv6_devconf.mtu6, |
5087 | .maxlen = sizeof(int), | 5102 | .maxlen = sizeof(int), |
5088 | .mode = 0644, | 5103 | .mode = 0644, |
5089 | .proc_handler = proc_dointvec, | 5104 | .proc_handler = addrconf_sysctl_mtu, |
5090 | }, | 5105 | }, |
5091 | { | 5106 | { |
5092 | .procname = "accept_ra", | 5107 | .procname = "accept_ra", |
diff --git a/net/ipv6/ip6_output.c b/net/ipv6/ip6_output.c index 7deebf102cba..0a04a37305d5 100644 --- a/net/ipv6/ip6_output.c +++ b/net/ipv6/ip6_output.c | |||
@@ -1298,7 +1298,8 @@ emsgsize: | |||
1298 | if (((length > mtu) || | 1298 | if (((length > mtu) || |
1299 | (skb && skb_is_gso(skb))) && | 1299 | (skb && skb_is_gso(skb))) && |
1300 | (sk->sk_protocol == IPPROTO_UDP) && | 1300 | (sk->sk_protocol == IPPROTO_UDP) && |
1301 | (rt->dst.dev->features & NETIF_F_UFO)) { | 1301 | (rt->dst.dev->features & NETIF_F_UFO) && |
1302 | (sk->sk_type == SOCK_DGRAM)) { | ||
1302 | err = ip6_ufo_append_data(sk, queue, getfrag, from, length, | 1303 | err = ip6_ufo_append_data(sk, queue, getfrag, from, length, |
1303 | hh_len, fragheaderlen, | 1304 | hh_len, fragheaderlen, |
1304 | transhdrlen, mtu, flags, rt); | 1305 | transhdrlen, mtu, flags, rt); |