Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
This commit is contained in:
@@ -757,10 +757,12 @@ static void tipc_aead_encrypt_done(struct crypto_async_request *base, int err)
|
||||
switch (err) {
|
||||
case 0:
|
||||
this_cpu_inc(tx->stats->stat[STAT_ASYNC_OK]);
|
||||
rcu_read_lock();
|
||||
if (likely(test_bit(0, &b->up)))
|
||||
b->media->send_msg(net, skb, b, &tx_ctx->dst);
|
||||
else
|
||||
kfree_skb(skb);
|
||||
rcu_read_unlock();
|
||||
break;
|
||||
case -EINPROGRESS:
|
||||
return;
|
||||
|
@@ -660,6 +660,7 @@ static int tipc_udp_enable(struct net *net, struct tipc_bearer *b,
|
||||
struct udp_tunnel_sock_cfg tuncfg = {NULL};
|
||||
struct nlattr *opts[TIPC_NLA_UDP_MAX + 1];
|
||||
u8 node_id[NODE_ID_LEN] = {0,};
|
||||
struct net_device *dev;
|
||||
int rmcast = 0;
|
||||
|
||||
ub = kzalloc(sizeof(*ub), GFP_ATOMIC);
|
||||
@@ -714,8 +715,6 @@ static int tipc_udp_enable(struct net *net, struct tipc_bearer *b,
|
||||
rcu_assign_pointer(ub->bearer, b);
|
||||
tipc_udp_media_addr_set(&b->addr, &local);
|
||||
if (local.proto == htons(ETH_P_IP)) {
|
||||
struct net_device *dev;
|
||||
|
||||
dev = __ip_dev_find(net, local.ipv4.s_addr, false);
|
||||
if (!dev) {
|
||||
err = -ENODEV;
|
||||
@@ -738,9 +737,8 @@ static int tipc_udp_enable(struct net *net, struct tipc_bearer *b,
|
||||
b->mtu = b->media->mtu;
|
||||
#if IS_ENABLED(CONFIG_IPV6)
|
||||
} else if (local.proto == htons(ETH_P_IPV6)) {
|
||||
struct net_device *dev;
|
||||
|
||||
dev = ipv6_dev_find(net, &local.ipv6);
|
||||
dev = ub->ifindex ? __dev_get_by_index(net, ub->ifindex) : NULL;
|
||||
dev = ipv6_dev_find(net, &local.ipv6, dev);
|
||||
if (!dev) {
|
||||
err = -ENODEV;
|
||||
goto err;
|
||||
|
Reference in New Issue
Block a user