]> git.baikalelectronics.ru Git - kernel.git/commit
s390/qeth: remove qeth_get_ip_version()
authorJulian Wiedmann <jwi@linux.ibm.com>
Thu, 28 Jan 2021 11:25:48 +0000 (12:25 +0100)
committerJakub Kicinski <kuba@kernel.org>
Fri, 29 Jan 2021 04:35:58 +0000 (20:35 -0800)
commit8f694bf832d958e6f5b72d0e06259a1a3985e9b9
treeb9270782fc98754e738af0df4b4f659024a223b0
parenta7ae31339c9d91a5f60e74d1a6b365de7ae8514d
s390/qeth: remove qeth_get_ip_version()

Replace our home-grown helper with the more robust vlan_get_protocol().
This is pretty much a 1:1 replacement, we just need to pass around a
proper ETH_P_* everyhwere and convert the old value range.

For readability also convert the protocol checks in
qeth_l3_hard_start_xmit() to a switch statement.

Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Acked-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
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