Re: [PATCH] net: mlx5: allow default ip_proto to offload

2019-01-24 Thread Or Gerlitz
On Sat, Jan 19, 2019 at 10:50 AM Tonghao Zhang wrote: > On Fri, Jan 18, 2019 at 10:19 PM Or Gerlitz wrote: > > On Thu, Jan 17, 2019 at 3:34 PM Tonghao Zhang > > wrote: > > > On Thu, Jan 17, 2019 at 8:58 PM Or Gerlitz wrote: > > > > On Thu, Jan 17, 2019 at 11:28 AM wrote: > > > > > From: Tongh

Re: [PATCH] net: mlx5: allow default ip_proto to offload

2019-01-19 Thread Tonghao Zhang
On Fri, Jan 18, 2019 at 10:19 PM Or Gerlitz wrote: > > On Thu, Jan 17, 2019 at 3:34 PM Tonghao Zhang > wrote: > > On Thu, Jan 17, 2019 at 8:58 PM Or Gerlitz wrote: > > > On Thu, Jan 17, 2019 at 11:28 AM wrote: > > > > From: Tonghao Zhang > > > with this patch, run the command [2], we will not

Re: [PATCH] net: mlx5: allow default ip_proto to offload

2019-01-18 Thread Or Gerlitz
On Thu, Jan 17, 2019 at 3:34 PM Tonghao Zhang wrote: > On Thu, Jan 17, 2019 at 8:58 PM Or Gerlitz wrote: > > On Thu, Jan 17, 2019 at 11:28 AM wrote: > > > From: Tonghao Zhang > with this patch, run the command [2], we will not get err log, > and the filter work in hw. This whole thing is done

Re: [PATCH] net: mlx5: allow default ip_proto to offload

2019-01-17 Thread Tonghao Zhang
On Thu, Jan 17, 2019 at 8:58 PM Or Gerlitz wrote: > > On Thu, Jan 17, 2019 at 11:28 AM wrote: > > From: Tonghao Zhang > > with the current code, if a modification of the ip header is required > and the ip protocol is not one of tcp, udp or icmp - we err > > This is done in purpose, and we don't

Re: [PATCH] net: mlx5: allow default ip_proto to offload

2019-01-17 Thread Tonghao Zhang
On Thu, Jan 17, 2019 at 8:58 PM Or Gerlitz wrote: > > On Thu, Jan 17, 2019 at 11:28 AM wrote: > > From: Tonghao Zhang > > with the current code, if a modification of the ip header is required > and the ip protocol is not one of tcp, udp or icmp - we err > > This is done in purpose, and we don't

Re: [PATCH] net: mlx5: allow default ip_proto to offload

2019-01-17 Thread Or Gerlitz
On Thu, Jan 17, 2019 at 11:28 AM wrote: > From: Tonghao Zhang with the current code, if a modification of the ip header is required and the ip protocol is not one of tcp, udp or icmp - we err This is done in purpose, and we don't want to allow offloading this header re-write for unknown ip prot

[PATCH] net: mlx5: allow default ip_proto to offload

2019-01-16 Thread xiangxia . m . yue
From: Tonghao Zhang Allow default ip_proto to offload, so icmp, tcp, and udp will match the flow as show below, otherwise we must type the ip_proto for icmp, tcp and udp respectively. $ tc filter add dev netdev01_rep parent : protocol ip prio 1 \ flower skip_sw dst_ip 3.3.3.3 \