OSDN Git Service

s390/qeth: consolidate open/stop netdev ops
authorJulian Wiedmann <jwi@linux.ibm.com>
Fri, 25 Jan 2019 14:44:18 +0000 (15:44 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 26 Jan 2019 05:23:55 +0000 (21:23 -0800)
commite22355ea3f3cd6e3ff46b2c7d23c454762e82989
treeb3800d3c3b76004b2d1e6174cd938c61d72cc354
parent44eb086f9af9a7f562b087a70ef69506df20e9b7
s390/qeth: consolidate open/stop netdev ops

The L2 and L3 code for these ops is almost identical, we only need to
provide a custom ndo_validate_addr() for L2 that checks whether
programming the MAC address succeeded.

Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/s390/net/qeth_core.h
drivers/s390/net/qeth_core_main.c
drivers/s390/net/qeth_l2_main.c
drivers/s390/net/qeth_l3_main.c