diff options
| author | Xie He <xie.he.0141@gmail.com> | 2020-12-08 17:43:54 -0800 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2020-12-09 19:22:48 -0800 |
| commit | 7bdddc68cda3e0c9ef7711238206881cf016bdbb (patch) | |
| tree | 7c26016d387ce04d45ba5e23d3c8f6c8eb05d369 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | net/mlx4: simplify the return expression of mlx4_init_cq_table() (diff) | |
| download | linux-7bdddc68cda3e0c9ef7711238206881cf016bdbb.tar.gz linux-7bdddc68cda3e0c9ef7711238206881cf016bdbb.zip | |
net: hdlc_x25: Remove unnecessary skb_reset_network_header calls
1. In x25_xmit, skb_reset_network_header is not necessary before we call
lapb_data_request. The lapb module doesn't need skb->network_header.
So there is no need to set skb->network_header before calling
lapb_data_request.
2. In x25_data_indication (called by the lapb module after data have
been received), skb_reset_network_header is not necessary before we
call netif_rx. After we call netif_rx, the code in net/core/dev.c will
call skb_reset_network_header before handing the skb to upper layers
(in __netif_receive_skb_core, called by __netif_receive_skb_one_core,
called by __netif_receive_skb, called by process_backlog). So we don't
need to call skb_reset_network_header by ourselves.
Cc: Martin Schiller <ms@dev.tdt.de>
Signed-off-by: Xie He <xie.he.0141@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions
