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-08-26 10:50:50 -07:00
2020-09-23 13:50:12 +02:00
2020-07-29 17:05:44 +02:00
2020-09-04 13:19:19 -07:00
2020-09-28 16:03:30 -07:00
2020-09-05 14:22:46 -07:00
2020-09-26 10:33:57 -07:00
2020-10-01 16:23:50 +03:00
2020-10-05 18:40:01 -07:00
2020-09-27 23:44:50 +02:00
2020-08-23 17:36:59 -05:00
2020-07-08 16:20:01 -06:00
2020-08-30 15:53:44 -07:00
2020-09-22 12:54:41 -07:00
2020-09-29 23:55:27 -07:00
2020-09-21 13:48:29 -07:00
2020-08-22 11:38:42 +01:00
2020-09-30 17:37:23 +02:00
2020-09-22 19:32:03 +02:00
2020-09-11 17:26:39 -07:00
2020-09-20 08:57:36 -07:00
2020-09-23 13:35:58 +09:00
2020-09-22 20:18:05 +05:30
2020-09-21 11:17:06 +02:00
2020-09-15 09:42:15 +02:00
2020-08-23 17:36:59 -05:00
2020-09-20 15:18:11 -07:00
2020-07-27 11:49:37 +02:00
2020-10-02 09:51:42 -07:00
2020-10-07 15:33:09 +10:00
2020-07-29 16:58:08 +02:00
2020-09-02 12:55:46 -07:00
2020-08-23 17:36:59 -05:00
2020-09-15 16:20:43 -07:00
2020-08-29 12:37:00 -07:00
2020-07-13 22:29:28 -07:00
2020-08-23 17:36:59 -05:00
2020-09-27 20:05:27 +02:00
2020-08-23 17:36:59 -05:00
2020-08-23 17:36:59 -05:00
2020-08-26 12:41:53 +02:00
2020-09-22 13:33:19 +01:00
2020-10-05 11:27:14 -07:00
2020-10-03 11:37:23 -07:00
2020-09-04 00:07:12 +03:00
2020-10-01 14:54:17 +02:00
2020-08-30 11:56:54 -07:00
2020-08-23 17:36:59 -05:00
2020-08-05 19:24:27 -07:00
2020-08-23 17:36:59 -05:00
2020-08-23 17:36:59 -05:00
2020-08-14 19:56:57 -07:00
2020-09-21 19:49:15 -04:00
2020-09-24 09:05:04 -07:00
2020-08-23 17:36:59 -05:00
2020-09-28 12:16:13 +02:00
2020-08-23 17:36:59 -05:00
2020-08-28 10:15:33 -07:00
2020-09-13 08:52:21 -07:00
2020-09-28 12:16:47 +02:00
2020-07-31 14:38:12 +02:00
2020-09-14 20:58:27 +05:30
2020-08-23 17:36:59 -05:00
2020-10-10 12:05:05 -07:00
2020-09-10 15:22:16 -07:00
2020-08-23 17:36:59 -05:00
2020-08-17 14:47:38 -06:00
2020-10-05 11:27:14 -07:00
2020-07-29 17:12:09 +02:00
2020-10-10 10:55:05 -07:00
2020-09-01 19:44:20 +02:00
2020-08-12 12:41:15 -07:00
2020-08-23 17:36:59 -05:00
2020-10-02 14:48:25 -07:00
2020-08-23 17:36:59 -05:00
2020-08-23 17:36:59 -05:00
2020-09-29 17:21:54 +02:00
2020-10-01 09:51:36 +02:00
2020-10-06 12:00:52 -07:00
2020-08-23 17:36:59 -05:00
2020-09-16 14:16:04 +02:00
2020-08-23 17:36:59 -05:00
2020-09-18 17:49:20 -07:00
2020-08-14 16:00:09 -07:00
2020-09-05 19:52:54 +03:00
2020-09-25 15:16:01 -07:00
2020-08-23 17:36:59 -05:00
2020-08-23 17:36:59 -05:00
2020-08-23 17:36:59 -05:00
2020-08-23 17:36:59 -05:00
2020-10-05 18:40:01 -07:00
2020-10-05 11:27:14 -07:00
2020-08-14 19:56:57 -07:00
2020-08-23 17:36:59 -05:00
2020-09-03 14:10:19 +05:30
2020-09-25 15:21:54 -07:00
2020-09-21 16:01:35 +03:00
2020-09-13 09:15:20 -07:00
2020-10-05 18:40:01 -07:00
2020-07-13 15:11:44 +02:00
2020-10-02 19:11:11 -07:00
2020-09-15 13:52:14 +02:00
2020-09-16 13:23:33 +02:00
2020-07-10 13:42:33 +02:00
2020-09-25 16:53:02 +02:00
2020-10-08 16:02:00 -04:00
2020-08-23 17:36:59 -05:00
2020-10-04 03:47:02 -04:00
2020-10-06 12:38:28 +10:00
2020-07-10 13:45:32 +02:00
2020-08-14 19:56:57 -07:00
2020-08-23 17:36:59 -05:00
2020-10-01 14:45:26 +02:00