--- x/net/core/filter.c +++ y/net/core/filter.c @@ -2148,17 +2148,6 @@ static int __bpf_redirect_no_mac(struct return -ERANGE; } - if (mlen) { - __skb_pull(skb, mlen); - - /* At ingress, the mac header has already been pulled once. - * At egress, skb_pospull_rcsum has to be done in case that - * the skb is originated from ingress (i.e. a forwarded skb) - * to ensure that rcsum starts at net header. - */ - if (!skb_at_tc_ingress(skb)) - skb_postpull_rcsum(skb, skb_mac_header(skb), mlen); - } skb_pop_mac_header(skb); skb_reset_mac_len(skb); return flags & BPF_F_INGRESS ?