Xie He df41c19abb drivers/net/wan/hdlc_fr: Move the skb_headroom check out of fr_hard_header
Move the skb_headroom check out of fr_hard_header and into pvc_xmit.
This has two benefits:

1. Originally we only do this check for skbs sent by users on Ethernet-
emulating PVC devices. After the change we do this check for skbs sent on
normal PVC devices, too.
(Also add a comment to make it clear that this is only a protection
against upper layers that don't take dev->needed_headroom into account.
Such upper layers should be rare and I believe they should be fixed.)

2. After the change we can simplify the parameter list of fr_hard_header.
We no longer need to use a pointer to pointers (skb_p) because we no
longer need to replace the skb inside fr_hard_header.

Cc: Krzysztof Halasa <khc@pm.waw.pl>
Signed-off-by: Xie He <xie.he.0141@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2020-10-10 12:05:05 -07:00
..
2020-09-04 13:19:19 -07:00
2020-09-20 15:18:11 -07:00
2020-07-27 11:49:37 +02:00
2020-09-15 16:20:43 -07:00
2020-08-29 12:37:00 -07:00
2020-08-05 19:24:27 -07:00
2020-09-21 19:49:15 -04:00
2020-09-24 09:05:04 -07:00
2020-08-28 10:15:33 -07:00
2020-09-13 08:52:21 -07:00
2020-10-02 14:48:25 -07:00
2020-09-29 17:21:54 +02:00
2020-10-06 12:00:52 -07:00
2020-09-18 17:49:20 -07:00
2020-08-14 16:00:09 -07:00
2020-09-25 15:16:01 -07:00
2020-09-25 15:21:54 -07:00
2020-09-15 13:52:14 +02:00
2020-09-25 16:53:02 +02:00
2020-10-06 12:38:28 +10:00