Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9aa02ea0 authored by Rocco Yue's avatar Rocco Yue Committed by Rocco.Yue
Browse files

[ALPS05515240] clatd: use rawip for ebpf ingress/egress



clatd rawip ebpf prog  translate ipv4 or ipv6 packet
in TC ingress and egress. change ccmni dev->type to ARPHRD_RAWIP.

After the ipv6 packet received from ccmnix passes through sw-gro,
skb->mac_len becomes to 14.
Then before run sched_cls_ingress_clat_rawip() eBPF program,
the skb->data pointer will be offset according to skb->mac_len.

This will cause the clat_rawip_ebpf program to fail to parse the
ip header normally. therefore, we need to change skb mac_len to 0.

MTK-Commit-Id: ffcd5e78a61e8c32f49e02bf46e9b6c0e04b6dc5

Change-Id: I1cf18fea0d84681e68802e037be6996ebc1fd7b0
Signed-off-by: default avatarRocco Yue <rocco.yue@mediatek.com>
CR-Id: ALPS05515240
Feature: IPv6 over MD
parent 9e72a8d8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment