diff options
author | Julian Wiedmann <jwi@linux.ibm.com> | 2018-09-26 18:29:02 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-09-26 09:56:07 -0700 |
commit | 4fda33547676e270245431d59aa72f3e5bdc1d30 (patch) | |
tree | 0472d464653965d27d1129f5c42fe5b9a94ad3b2 /drivers/s390/net/qeth_l3_main.c | |
parent | 4b1bd69769454175268908f50b32f1cbfee5bb83 (diff) | |
download | talos-op-linux-4fda33547676e270245431d59aa72f3e5bdc1d30.tar.gz talos-op-linux-4fda33547676e270245431d59aa72f3e5bdc1d30.zip |
s390/qeth: convert layer attribute to enum
While the raw values are fixed due to their use in a sysfs attribute,
we can still use the proper QETH_DISCIPLINE_* enum within the driver.
Also move the initialization into qeth_set_initial_options(), along with
all other user-configurable fields.
Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/s390/net/qeth_l3_main.c')
-rw-r--r-- | drivers/s390/net/qeth_l3_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/net/qeth_l3_main.c b/drivers/s390/net/qeth_l3_main.c index 8930d2a9fcad..552bfad20f85 100644 --- a/drivers/s390/net/qeth_l3_main.c +++ b/drivers/s390/net/qeth_l3_main.c @@ -2489,7 +2489,7 @@ static int qeth_l3_probe_device(struct ccwgroup_device *gdev) } hash_init(card->ip_htable); hash_init(card->ip_mc_htable); - card->options.layer2 = 0; + card->options.layer = QETH_DISCIPLINE_LAYER3; card->info.hwtrap = 0; return 0; } |