]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: do not use skb_mac_header() in qdisc_pkt_len_init()
authorEric Dumazet <edumazet@google.com>
Tue, 21 Mar 2023 16:45:17 +0000 (16:45 +0000)
committerJakub Kicinski <kuba@kernel.org>
Thu, 23 Mar 2023 05:43:23 +0000 (22:43 -0700)
commitf5fca219ad4548bc45f0221f9857ad22cb8136a1
treebea1cdd9ff34847c01cc98a643a01b7b04928e68
parentb50fea1f261d2f011e9ee28e3e30c21eb2e680d5
net: do not use skb_mac_header() in qdisc_pkt_len_init()

We want to remove our use of skb_mac_header() in tx paths,
eg remove skb_reset_mac_header() from __dev_queue_xmit().

Idea is that ndo_start_xmit() can get the mac header
simply looking at skb->data.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/dev.c