wan/hdlc_x25: fix skb handling
authorMartin Schiller <ms@dev.tdt.de>
Tue, 21 Jan 2020 06:00:34 +0000 (07:00 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Jan 2020 10:41:36 +0000 (11:41 +0100)
commit953c4a08dfc9ffe763a8340ac10f459d6c6cc4eb
treee765ca351e3d2be8eab1d800752462b2a02cc83e
parentf362e5fe0f1f9774b28c5b4c9b07b0168575cf6e
wan/hdlc_x25: fix skb handling

o call skb_reset_network_header() before hdlc->xmit()
 o change skb proto to HDLC (0x0019) before hdlc->xmit()
 o call dev_queue_xmit_nit() before hdlc->xmit()

This changes make it possible to trace (tcpdump) outgoing layer2
(ETH_P_HDLC) packets

Additionally call skb_reset_network_header() after each skb_push() /
skb_pull().

Signed-off-by: Martin Schiller <ms@dev.tdt.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wan/hdlc_x25.c