Re: [PATCH net-next v5 1/2] net: permit skb_segment on head_frag frag_list skb

2018-03-21 Thread Yonghong Song
On 3/21/18 2:51 PM, Alexander Duyck wrote: On Wed, Mar 21, 2018 at 1:36 PM, Yonghong Song wrote: One of our in-house projects, bpf-based NAT, hits a kernel BUG_ON at function skb_segment(), line 3667. The bpf program attaches to clsact ingress, calls bpf_skb_change_proto to

Re: [PATCH net-next v5 1/2] net: permit skb_segment on head_frag frag_list skb

2018-03-21 Thread Alexander Duyck
On Wed, Mar 21, 2018 at 1:36 PM, Yonghong Song wrote: > One of our in-house projects, bpf-based NAT, hits a kernel BUG_ON at > function skb_segment(), line 3667. The bpf program attaches to > clsact ingress, calls bpf_skb_change_proto to change protocol > from ipv4 to ipv6 or from

[PATCH net-next v5 1/2] net: permit skb_segment on head_frag frag_list skb

2018-03-21 Thread Yonghong Song
One of our in-house projects, bpf-based NAT, hits a kernel BUG_ON at function skb_segment(), line 3667. The bpf program attaches to clsact ingress, calls bpf_skb_change_proto to change protocol from ipv4 to ipv6 or from ipv6 to ipv4, and then calls bpf_redirect to send the changed packet out.