OSDN Git Service

s390/qeth: extract helper to determine L2 cast type
authorJulian Wiedmann <jwi@linux.ibm.com>
Thu, 25 Apr 2019 16:26:00 +0000 (18:26 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Apr 2019 15:14:06 +0000 (11:14 -0400)
commit58aa2491aa615d9618ffc764cc3eaf689053c7a9
tree13906d11273f817392d2917c091a9229cbafdd16
parent4e26c5fe552e5f0d9e3abcea48cd311af232bed9
s390/qeth: extract helper to determine L2 cast type

This de-duplicates the L2 and L3 cast-type code, and makes the L2 code
a bit more robust by removing the fragile assumption that skb->data
always points to the Ethernet Header. This would break in code paths
where we pushed the HW header onto the skb.

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_l2_main.c
drivers/s390/net/qeth_l3_main.c