Skip to content

Commit

Permalink
s390/qeth: query IPv6 IPA support on HiperSockets
Browse files Browse the repository at this point in the history
HiperSocket devices don't need the full IPv6 initialization, but we
should still query the supported assists for logging purposes.

Signed-off-by: Julian Wiedmann <jwi@linux.vnet.ibm.com>
Acked-by: Ursula Braun <ubraun@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Julian Wiedmann authored and David S. Miller committed Jun 6, 2017
1 parent 94a9c98 commit 2327459
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions drivers/s390/net/qeth_l3_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1035,16 +1035,17 @@ static int qeth_l3_softsetup_ipv6(struct qeth_card *card)

QETH_CARD_TEXT(card, 3, "softipv6");

if (card->info.type == QETH_CARD_TYPE_IQD)
goto out;

rc = qeth_query_ipassists(card, QETH_PROT_IPV6);
if (rc) {
dev_err(&card->gdev->dev,
"Activating IPv6 support for %s failed\n",
QETH_CARD_IFNAME(card));
return rc;
}

if (card->info.type == QETH_CARD_TYPE_IQD)
goto out;

rc = qeth_send_simple_setassparms(card, IPA_IPV6,
IPA_CMD_ASS_START, 3);
if (rc) {
Expand Down

0 comments on commit 2327459

Please sign in to comment.