aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/net
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/s390/net')
-rw-r--r--drivers/s390/net/qeth_l2_main.c2
-rw-r--r--drivers/s390/net/qeth_l3_main.c5
2 files changed, 4 insertions, 3 deletions
diff --git a/drivers/s390/net/qeth_l2_main.c b/drivers/s390/net/qeth_l2_main.c
index d86f645a76da..2db409330c21 100644
--- a/drivers/s390/net/qeth_l2_main.c
+++ b/drivers/s390/net/qeth_l2_main.c
@@ -645,7 +645,7 @@ static int qeth_l2_request_initial_mac(struct qeth_card *card)
645 } 645 }
646 QETH_DBF_HEX(SETUP, 2, card->dev->dev_addr, OSA_ADDR_LEN); 646 QETH_DBF_HEX(SETUP, 2, card->dev->dev_addr, OSA_ADDR_LEN);
647 } else { 647 } else {
648 random_ether_addr(card->dev->dev_addr); 648 eth_random_addr(card->dev->dev_addr);
649 memcpy(card->dev->dev_addr, vendor_pre, 3); 649 memcpy(card->dev->dev_addr, vendor_pre, 3);
650 } 650 }
651 return 0; 651 return 0;
diff --git a/drivers/s390/net/qeth_l3_main.c b/drivers/s390/net/qeth_l3_main.c
index f0045ca8a766..0cf706699a04 100644
--- a/drivers/s390/net/qeth_l3_main.c
+++ b/drivers/s390/net/qeth_l3_main.c
@@ -1471,7 +1471,7 @@ static int qeth_l3_iqd_read_initial_mac_cb(struct qeth_card *card,
1471 memcpy(card->dev->dev_addr, 1471 memcpy(card->dev->dev_addr,
1472 cmd->data.create_destroy_addr.unique_id, ETH_ALEN); 1472 cmd->data.create_destroy_addr.unique_id, ETH_ALEN);
1473 else 1473 else
1474 random_ether_addr(card->dev->dev_addr); 1474 eth_random_addr(card->dev->dev_addr);
1475 1475
1476 return 0; 1476 return 0;
1477} 1477}
@@ -2698,10 +2698,11 @@ int inline qeth_l3_get_cast_type(struct qeth_card *card, struct sk_buff *skb)
2698 rcu_read_lock(); 2698 rcu_read_lock();
2699 dst = skb_dst(skb); 2699 dst = skb_dst(skb);
2700 if (dst) 2700 if (dst)
2701 n = dst_get_neighbour_noref(dst); 2701 n = dst_neigh_lookup_skb(dst, skb);
2702 if (n) { 2702 if (n) {
2703 cast_type = n->type; 2703 cast_type = n->type;
2704 rcu_read_unlock(); 2704 rcu_read_unlock();
2705 neigh_release(n);
2705 if ((cast_type == RTN_BROADCAST) || 2706 if ((cast_type == RTN_BROADCAST) ||
2706 (cast_type == RTN_MULTICAST) || 2707 (cast_type == RTN_MULTICAST) ||
2707 (cast_type == RTN_ANYCAST)) 2708 (cast_type == RTN_ANYCAST))