[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:
Rocco Yue <rocco.yue@mediatek.com>
CR-Id: ALPS05515240
Feature: IPv6 over MD
Loading
Please register or sign in to comment