diff options
| author | Xie He <xie.he.0141@gmail.com> | 2020-10-31 21:10:41 +0300 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2020-11-04 02:19:09 +0300 |
| commit | efc790394f8ac7645d80c44f9cc110779428fe7b (patch) | |
| tree | cc817ed88a7eaa8fcdafe2c4df2d5bf1b4d41043 /include/linux/timerqueue.h | |
| parent | 14b20704a18062249903a7a930e27c4452bc56bc (diff) | |
| download | linux-efc790394f8ac7645d80c44f9cc110779428fe7b.tar.xz | |
net: hdlc_fr: Do skb_reset_mac_header for skbs received on normal PVC devices
When an skb is received on a normal (non-Ethernet-emulating) PVC device,
call skb_reset_mac_header before we pass it to upper layers.
This is because normal PVC devices don't have header_ops, so any header we
have would not be visible to upper layer code when sending, so the header
shouldn't be visible to upper layer code when receiving, either.
Cc: Krzysztof Halasa <khc@pm.waw.pl>
Cc: Willem de Bruijn <willemdebruijn.kernel@gmail.com>
Signed-off-by: Xie He <xie.he.0141@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
