diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/core/dev.c | 4 | ||||
-rw-r--r-- | net/ipv4/af_inet.c | 4 | ||||
-rw-r--r-- | net/ipv4/route.c | 2 |
3 files changed, 6 insertions, 4 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index 63ec4bf89b29..52fea5b28ca6 100644 --- a/net/core/dev.c +++ b/net/core/dev.c | |||
@@ -1457,7 +1457,9 @@ static bool can_checksum_protocol(unsigned long features, __be16 protocol) | |||
1457 | ((features & NETIF_F_IP_CSUM) && | 1457 | ((features & NETIF_F_IP_CSUM) && |
1458 | protocol == htons(ETH_P_IP)) || | 1458 | protocol == htons(ETH_P_IP)) || |
1459 | ((features & NETIF_F_IPV6_CSUM) && | 1459 | ((features & NETIF_F_IPV6_CSUM) && |
1460 | protocol == htons(ETH_P_IPV6))); | 1460 | protocol == htons(ETH_P_IPV6)) || |
1461 | ((features & NETIF_F_FCOE_CRC) && | ||
1462 | protocol == htons(ETH_P_FCOE))); | ||
1461 | } | 1463 | } |
1462 | 1464 | ||
1463 | static bool dev_can_checksum(struct net_device *dev, struct sk_buff *skb) | 1465 | static bool dev_can_checksum(struct net_device *dev, struct sk_buff *skb) |
diff --git a/net/ipv4/af_inet.c b/net/ipv4/af_inet.c index d5aaabbb7cb3..7f03373b8c07 100644 --- a/net/ipv4/af_inet.c +++ b/net/ipv4/af_inet.c | |||
@@ -1375,10 +1375,10 @@ EXPORT_SYMBOL_GPL(snmp_fold_field); | |||
1375 | int snmp_mib_init(void *ptr[2], size_t mibsize) | 1375 | int snmp_mib_init(void *ptr[2], size_t mibsize) |
1376 | { | 1376 | { |
1377 | BUG_ON(ptr == NULL); | 1377 | BUG_ON(ptr == NULL); |
1378 | ptr[0] = __alloc_percpu(mibsize); | 1378 | ptr[0] = __alloc_percpu(mibsize, __alignof__(unsigned long long)); |
1379 | if (!ptr[0]) | 1379 | if (!ptr[0]) |
1380 | goto err0; | 1380 | goto err0; |
1381 | ptr[1] = __alloc_percpu(mibsize); | 1381 | ptr[1] = __alloc_percpu(mibsize, __alignof__(unsigned long long)); |
1382 | if (!ptr[1]) | 1382 | if (!ptr[1]) |
1383 | goto err1; | 1383 | goto err1; |
1384 | return 0; | 1384 | return 0; |
diff --git a/net/ipv4/route.c b/net/ipv4/route.c index 5caee609be06..c40debe51b38 100644 --- a/net/ipv4/route.c +++ b/net/ipv4/route.c | |||
@@ -3377,7 +3377,7 @@ int __init ip_rt_init(void) | |||
3377 | int rc = 0; | 3377 | int rc = 0; |
3378 | 3378 | ||
3379 | #ifdef CONFIG_NET_CLS_ROUTE | 3379 | #ifdef CONFIG_NET_CLS_ROUTE |
3380 | ip_rt_acct = __alloc_percpu(256 * sizeof(struct ip_rt_acct)); | 3380 | ip_rt_acct = __alloc_percpu(256 * sizeof(struct ip_rt_acct), __alignof__(struct ip_rt_acct)); |
3381 | if (!ip_rt_acct) | 3381 | if (!ip_rt_acct) |
3382 | panic("IP: failed to allocate ip_rt_acct\n"); | 3382 | panic("IP: failed to allocate ip_rt_acct\n"); |
3383 | #endif | 3383 | #endif |