sch_cake: do not use skb_mac_header() in cake_overhead()
authorEric Dumazet <edumazet@google.com>
Tue, 21 Mar 2023 16:45:18 +0000 (16:45 +0000)
committerJakub Kicinski <kuba@kernel.org>
Thu, 23 Mar 2023 05:43:23 +0000 (22:43 -0700)
commite495a9673caf7619fc234b6808814bdf5072e0a6
tree95e03723edd6d9fe7c2d848e06446e14117fed57
parentf5fca219ad4548bc45f0221f9857ad22cb8136a1
sch_cake: do not use skb_mac_header() in cake_overhead()

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/sched/sch_cake.c