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

2018-03-20 Thread Yonghong Song
On 3/20/18 11:08 AM, Alexander Duyck wrote: On Tue, Mar 20, 2018 at 8:55 AM, 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 f

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

2018-03-20 Thread Alexander Duyck
On Tue, Mar 20, 2018 at 8:55 AM, 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 ipv6 to ipv4, an

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

2018-03-20 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. 3472