]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb6df90d0e3b33b3576d4ce8e6d83ae57569f768f
tree13906d11273f817392d2917c091a9229cbafdd16
parent11063462a07c135811097471630c70108efb9fa0
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