Re: Bug or mis configuration for mlx5e lag and multipath

2019-05-23 Thread wenxu
tree. 在 2019/5/23 23:15, Roi Dayan 写道: > > On 20/05/2019 04:53, wenxu wrote: >> Hi Roi & Saeed, >> >> I just test the mlx5e lag and mutipath feature. There are some suituation >> the outgoing can't be offloaded. >> >> ovs configureation as following

[PATCH net-next] netfilter: ipv6: fix compile err unknown field br_defrag and br_fragment

2019-05-31 Thread wenxu
From: wenxu When CONFIG_IPV6 is not build with modules and CONIFG_NF_CONNTRACK_BRIDGE=m There will compile err: net/ipv6/netfilter.c:242:2: error: unknown field 'br_defrag' specified in initializer .br_defrag = nf_ct_frag6_gather, net/ipv6/netfilter.c:243:2: error: unknown field &#

Re: [PATCH net-next,v2] netfilter: nf_conntrack_bridge: fix CONFIG_IPV6=y

2019-05-31 Thread wenxu
Signed-off-by: wenxu On 5/31/2019 5:15 PM, Pablo Neira Ayuso wrote: > This patch fixes a few problems with CONFIG_IPV6=y and > CONFIG_NF_CONNTRACK_BRIDGE=m: > > In file included from net/netfilter/utils.c:5: > include/linux/netfilter_ipv6.h: In function 'nf_ipv6_br_defr

[PATCH] netfilter: ipv6: Fix undefined symbol nf_ct_frag6_gather

2019-06-02 Thread wenxu
From: wenxu CONFIG_NETFILTER=m and CONFIG_NF_DEFRAG_IPV6 is not set ERROR: "nf_ct_frag6_gather" [net/ipv6/ipv6.ko] undefined! Fixes: c9bb6165a16e ("netfilter: nf_conntrack_bridge: fix CONFIG_IPV6=y") Reported-by: kbuild test robot Signed-off-by: wenxu --- net/ipv6/net

[PATCH net-next v2] netfilter: ipv6: Fix undefined symbol nf_ct_frag6_gather

2019-06-02 Thread wenxu
From: wenxu CONFIG_NETFILTER=m and CONFIG_NF_DEFRAG_IPV6 is not set ERROR: "nf_ct_frag6_gather" [net/ipv6/ipv6.ko] undefined! Fixes: c9bb6165a16e ("netfilter: nf_conntrack_bridge: fix CONFIG_IPV6=y") Reported-by: kbuild test robot Signed-off-by: wenxu --- v2: Forgot

[PATCH] netfilter: nft_paylaod: add base type NFT_PAYLOAD_LL_HEADER_NO_TAG

2019-06-10 Thread wenxu
From: wenxu nft add rule bridge firewall rule-100-ingress ip protocol icmp drop The rule like above "ip protocol icmp", the packet will not be matched, It tracelate base=NFT_PAYLOAD_LL_HEADER off=12 && base=NFT_PAYLOAD_NETWORK_HEADER off=11 if the packet contained with tag

rtnetlink dump operations also share the rrtnl_mutex

2019-06-10 Thread wenxu
ons. So there can be a good way for each msgtype have their own mutex for dump operations? BR wenxu

[PATCH net-next] bridge: Set the pvid for untaged packet before prerouting

2019-06-10 Thread wenxu
From: wenxu bridge vlan add dev veth1 vid 200 pvid untagged bridge vlan add dev veth2 vid 200 pvid untagged nft add table bridge firewall nft add chain bridge firewall zones { type filter hook prerouting priority - 300 \; } nft add rule bridge firewall zones counter ct zone set vlan id map

Re: [PATCH net-next] netfilter: nf_table_offload: Fix zero prio of flow_cls_common_offload

2019-07-24 Thread wenxu
On 7/25/2019 7:51 AM, Marcelo Ricardo Leitner wrote: > On Thu, Jul 11, 2019 at 04:03:30PM +0800, we...@ucloud.cn wrote: >> From: wenxu >> >> The flow_cls_common_offload prio should be not zero >> >> It leads the invalid table prio in hw. >> >> # nft

[PATCH net-next 1/3] flow_offload: move tc indirect block to flow offload

2019-07-25 Thread wenxu
From: wenxu move tc indirect block to flow_offload.c. The nf_tables can use the indr block architecture. Signed-off-by: wenxu --- drivers/net/ethernet/mellanox/mlx5/core/en_rep.c | 10 +- .../net/ethernet/netronome/nfp/flower/offload.c| 10 +- include/net/flow_offload.h

[PATCH net-next 3/3] netfilter: nf_tables_offload: support indr block call

2019-07-25 Thread wenxu
From: wenxu nftable support indr-block call. It makes nftable an offload vlan and tunnel device Signed-off-by: wenxu --- net/netfilter/nf_tables_api.c | 6 ++ net/netfilter/nf_tables_offload.c | 137 ++ 2 files changed, 115 insertions(+), 28 deletions

[PATCH net-next 2/3] flow_offload: Support get tcf block immediately

2019-07-25 Thread wenxu
From: wenxu It provide a callback to find the tcf block in the flow_indr_block_dev_get Signed-off-by: wenxu --- include/net/flow_offload.h | 4 net/core/flow_offload.c| 12 net/sched/cls_api.c| 31 +++ 3 files changed, 47 insertions

Re: [PATCH net-next 1/3] flow_offload: move tc indirect block to flow offload

2019-07-25 Thread wenxu
On 7/25/2019 6:22 PM, Florian Westphal wrote: > we...@ucloud.cn wrote: >> From: wenxu >> >> move tc indirect block to flow_offload.c. The nf_tables >> can use the indr block architecture. > ... to do what? Can you please illustrate how this is going to be

Re: [PATCH net-next 2/3] flow_offload: Support get tcf block immediately

2019-07-25 Thread wenxu
t;block immediately through tc_dev_ingress_block, But when the indr_block_dev_get put in the common flow_offload.  It can not direct access  tc_dev_ingress_block. On 7/25/2019 6:24 PM, Florian Westphal wrote: > we...@ucloud.cn wrote: >> From: wenxu >> >> It provide a

[PATCH] net/mlx5e: Fix zero table prio set by user.

2019-07-25 Thread wenxu
From: wenxu The flow_cls_common_offload prio is zero It leads the invalid table prio in hw. Error: Could not process rule: Invalid argument kernel log: mlx5_core :81:00.0: E-Switch: Failed to create FDB Table err -22 (table prio: 65535, level: 0, size: 4194304) table_prio = (chain

[PATCH net-next v2 2/3] flow_offload: Support get tcf block immediately

2019-07-25 Thread wenxu
From: wenxu Because the new flow-indr-block can't get the tcf_block directly. It provide a callback to find the tcf block immediately when the device register and contain a ingress block. Signed-off-by: wenxu --- v2: make use of flow_block include/net/flow_offload.h | 4 net

[PATCH net-next v2 0/3] flow_offload: add indr-block in nf_table_offload

2019-07-25 Thread wenxu
From: wenxu This series patch make nftables offload support the vlan and tunnel device offload through indr-block architecture. The first patch mv tc indr block to flow offload and rename to flow-indr-block. Because the new flow-indr-block can't get the tcf_block directly. The second

[PATCH net-next v2 3/3] netfilter: nf_tables_offload: support indr block call

2019-07-25 Thread wenxu
From: wenxu nftable support indr-block call. It makes nftable an offload vlan and tunnel device. nft add table netdev firewall nft add chain netdev firewall aclout { type filter hook ingress offload device mlx_pf0vf0 priority - 300 \; } nft add rule netdev firewall aclout ip daddr 10.0.0.1 fwd

[PATCH net-next v2 1/3] flow_offload: move tc indirect block to flow offload

2019-07-25 Thread wenxu
From: wenxu move tc indirect block to flow_offload and rename it to flow indirect block.The nf_tables can use the indr block architecture. Signed-off-by: wenxu --- v2: make use of flow_block from Pablo flow_indr_rhashtable_init advice by jakub.kicinski drivers/net/ethernet/mellanox/mlx5

Re: [PATCH] net/mlx5e: Fix zero table prio set by user.

2019-07-26 Thread wenxu
在 2019/7/26 20:19, Or Gerlitz 写道: > On Fri, Jul 26, 2019 at 12:24 AM Saeed Mahameed wrote: >> On Thu, 2019-07-25 at 19:24 +0800, we...@ucloud.cn wrote: >>> From: wenxu >>> >>> The flow_cls_common_offload prio is zero >>> >>> It leads

[PATCH net-next v3 0/3] flow_offload: add indr-block in nf_table_offload

2019-07-26 Thread wenxu
From: wenxu This series patch make nftables offload support the vlan and tunnel device offload through indr-block architecture. The first patch mv tc indr block to flow offload and rename to flow-indr-block. Because the new flow-indr-block can't get the tcf_block directly. The second

[PATCH net-next v3 1/3] flow_offload: move tc indirect block to flow offload

2019-07-26 Thread wenxu
From: wenxu move tc indirect block to flow_offload and rename it to flow indirect block.The nf_tables can use the indr block architecture. Signed-off-by: wenxu --- v3: subsys_initcall for init_flow_indr_rhashtable drivers/net/ethernet/mellanox/mlx5/core/en_rep.c | 10 +- .../net/ethernet

[PATCH net-next v3 2/3] flow_offload: support get tcf block immediately

2019-07-26 Thread wenxu
From: wenxu Because the new flow-indr-block can't get the tcf_block directly. It provide a callback to find the tcf block immediately when the device register and contain a ingress block. Signed-off-by: wenxu --- v3: no change include/net/flow_offload.h | 4 net/core/flow_offl

[PATCH net-next v3 3/3] netfilter: nf_tables_offload: support indr block call

2019-07-26 Thread wenxu
From: wenxu nftable support indr-block call. It makes nftable an offload vlan and tunnel device. nft add table netdev firewall nft add chain netdev firewall aclout { type filter hook ingress offload device mlx_pf0vf0 priority - 300 \; } nft add rule netdev firewall aclout ip daddr 10.0.0.1 fwd

Re: [PATCH net-next v3 2/3] flow_offload: support get tcf block immediately

2019-07-27 Thread wenxu
在 2019/7/27 8:52, Jakub Kicinski 写道: > On Fri, 26 Jul 2019 21:34:06 +0800, we...@ucloud.cn wrote: >> From: wenxu >> >> Because the new flow-indr-block can't get the tcf_block >> directly. >> It provide a callback to find the tcf block immediately >

Re: [PATCH net-next v3 1/3] flow_offload: move tc indirect block to flow offload

2019-07-27 Thread wenxu
在 2019/7/27 8:56, Jakub Kicinski 写道: > On Fri, 26 Jul 2019 21:34:05 +0800, we...@ucloud.cn wrote: >> From: wenxu >> >> move tc indirect block to flow_offload and rename >> it to flow indirect block.The nf_tables can use the >> indr block architecture. >> &

[PATCH net] net/mlx5e: Fix unnecessary flow_block_cb_is_busy call

2019-07-27 Thread wenxu
From: wenxu When call flow_block_cb_is_busy. The indr_priv is guaranteed to NULL ptr. So there is no need to call flow_bock_cb_is_busy. Fixes: 0d4fd02e7199 ("net: flow_offload: add flow_block_cb_is_busy() and use it") Signed-off-by: wenxu --- drivers/net/ethernet/mellanox/mlx5/cor

[PATCH net-next v4 0/3] flow_offload: add indr-block in nf_table_offload

2019-07-27 Thread wenxu
From: wenxu This series patch make nftables offload support the vlan and tunnel device offload through indr-block architecture. The first patch mv tc indr block to flow offload and rename to flow-indr-block. Because the new flow-indr-block can't get the tcf_block directly. The second

[PATCH net-next v4 2/3] flow_offload: Support get default block from tc immediately

2019-07-27 Thread wenxu
From: wenxu When thre indr device register, it can get the default block from tc immediately if the block is exist. Signed-off-by: wenxu --- v3: no change v4: get tc default block without callback include/net/pkt_cls.h | 7 +++ net/core/flow_offload.c | 2 ++ net/sched/cls_api.c

[PATCH net-next v4 3/3] netfilter: nf_tables_offload: support indr block call

2019-07-27 Thread wenxu
From: wenxu nftable support indr-block call. It makes nftable an offload vlan and tunnel device. nft add table netdev firewall nft add chain netdev firewall aclout { type filter hook ingress offload device mlx_pf0vf0 priority - 300 \; } nft add rule netdev firewall aclout ip daddr 10.0.0.1 fwd

[PATCH net-next v4 1/3] flow_offload: move tc indirect block to flow offload

2019-07-27 Thread wenxu
From: wenxu move tc indirect block to flow_offload and rename it to flow indirect block.The nf_tables can use the indr block architecture. Signed-off-by: wenxu --- v3: subsys_initcall for init_flow_indr_rhashtable v4: no change drivers/net/ethernet/mellanox/mlx5/core/en_rep.c | 10

Re: [PATCH net-next v4 2/3] flow_offload: Support get default block from tc immediately

2019-07-28 Thread wenxu
On 7/29/2019 4:16 AM, Jakub Kicinski wrote: > . > The TC default block is there because the indirect registration may > happen _after_ the block is installed and populated. It's the device > driver that usually does the indirect registration, the tunnel device > and its rules may already be set

Re: [PATCH net-next] netfilter: nf_table_offload: Fix zero prio of flow_cls_common_offload

2019-07-28 Thread wenxu
Hi pablo Any suggestion for this case.  Tthe 0 prio vlaue for driver is an invalid priority. So What should we do for this case? Currently there is no prio for each nft rules. BR wenxu On 7/25/2019 11:45 AM, Marcelo Ricardo Leitner wrote: > On Thu, Jul 25, 2019 at 11:03:52AM +0800, we

Re: [PATCH net-next v4 2/3] flow_offload: Support get default block from tc immediately

2019-07-29 Thread wenxu
On 7/29/2019 12:42 PM, Jakub Kicinski wrote: > On Mon, 29 Jul 2019 10:43:56 +0800, wenxu wrote: >> On 7/29/2019 4:16 AM, Jakub Kicinski wrote: >>> I don't know the nft code, but it seems unlikely it wouldn't have the >>> same problem/need.. >> nft don

Re: [PATCH net-next v4 2/3] flow_offload: Support get default block from tc immediately

2019-07-29 Thread wenxu
On 7/29/2019 12:42 PM, Jakub Kicinski wrote: > On Mon, 29 Jul 2019 10:43:56 +0800, wenxu wrote: >> On 7/29/2019 4:16 AM, Jakub Kicinski wrote: >>> I don't know the nft code, but it seems unlikely it wouldn't have the >>> same problem/need.. >> nft don

Re: [PATCH net-next v4 1/3] flow_offload: move tc indirect block to flow offload

2019-07-29 Thread wenxu
在 2019/7/29 19:13, Jiri Pirko 写道: > Sun, Jul 28, 2019 at 08:52:47AM CEST, we...@ucloud.cn wrote: >> From: wenxu >> >> move tc indirect block to flow_offload and rename >> it to flow indirect block.The nf_tables can use the >> indr block architecture. >>

Re: [PATCH net-next v4 2/3] flow_offload: Support get default block from tc immediately

2019-07-29 Thread wenxu
在 2019/7/30 0:55, Jakub Kicinski 写道: > On Mon, 29 Jul 2019 15:18:03 +0800, wenxu wrote: >> On 7/29/2019 12:42 PM, Jakub Kicinski wrote: >>> On Mon, 29 Jul 2019 10:43:56 +0800, wenxu wrote: >>>> On 7/29/2019 4:16 AM, Jakub Kicinski wrote: >>>>> I d

[PATCH net-next 0/6] flow_offload: add indr-block in nf_table_offload

2019-07-31 Thread wenxu
From: wenxu This series patch make nftables offload support the vlan and tunnel device offload through indr-block architecture. The first four patches mv tc indr block to flow offload and rename to flow-indr-block. Because the new flow-indr-block can't get the tcf_block directly. The f

[PATCH net-next 4/6] flow_offload: move tc indirect block to flow offload

2019-07-31 Thread wenxu
From: wenxu move tc indirect block to flow_offload and rename it to flow indirect block.The nf_tables can use the indr block architecture. Signed-off-by: wenxu --- drivers/net/ethernet/mellanox/mlx5/core/en_rep.c | 10 +- .../net/ethernet/netronome/nfp/flower/offload.c| 11 +- include

[PATCH net-next 2/6] cls_api: replace block with flow_block in tc_indr_block_dev

2019-07-31 Thread wenxu
From: wenxu This patch make tc_indr_block_dev can separate from tc subsystem Signed-off-by: wenxu --- net/sched/cls_api.c | 31 ++- 1 file changed, 22 insertions(+), 9 deletions(-) diff --git a/net/sched/cls_api.c b/net/sched/cls_api.c index 2e3b58d..f9643fa

[PATCH net-next 1/6] cls_api: modify the tc_indr_block_ing_cmd parameters.

2019-07-31 Thread wenxu
From: wenxu This patch make tc_indr_block_ing_cmd can't access struct tc_indr_block_dev and tc_indr_block_cb. Signed-off-by: wenxu --- net/sched/cls_api.c | 26 +++--- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/net/sched/cls_api.c b/net/sched/cls_

[PATCH net-next 6/6] netfilter: nf_tables_offload: support indr block call

2019-07-31 Thread wenxu
From: wenxu nftable support indr-block call. It makes nftable an offload vlan and tunnel device. nft add table netdev firewall nft add chain netdev firewall aclout { type filter hook ingress offload device mlx_pf0vf0 priority - 300 \; } nft add rule netdev firewall aclout ip daddr 10.0.0.1 fwd

[PATCH net-next 5/6] flow_offload: support get flow_block immediately

2019-07-31 Thread wenxu
From: wenxu The new flow-indr-block can't get the tcf_block directly. It provide a callback list to find the flow_block immediately when the device register and contain a ingress block. Signed-off-by: wenxu --- include/net/flow_offload.h | 17 + net/core/flow_offload.c

[PATCH net-next 3/6] cls_api: add flow_indr_block_call function

2019-07-31 Thread wenxu
From: wenxu This patch make indr_block_call don't access struct tc_indr_block_cb and tc_indr_block_dev directly Signed-off-by: wenxu --- net/sched/cls_api.c | 33 - 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/net/sched/cls_api.c b/net/

[PATCH net-next v5 1/6] cls_api: modify the tc_indr_block_ing_cmd parameters.

2019-07-31 Thread wenxu
From: wenxu This patch make tc_indr_block_ing_cmd can't access struct tc_indr_block_dev and tc_indr_block_cb. Signed-off-by: wenxu --- v5: new patch net/sched/cls_api.c | 26 +++--- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/net/sched/cls_api.c

[PATCH net-next v5 5/6] flow_offload: support get flow_block immediately

2019-07-31 Thread wenxu
From: wenxu The new flow-indr-block can't get the tcf_block directly. It provide a callback list to find the flow_block immediately when the device register and contain a ingress block. Signed-off-by: wenxu --- v5: add get_block_cb_list for both nft and tc include/net/flow_offload.h

[PATCH net-next v5 0/6] flow_offload: add indr-block in nf_table_offload

2019-07-31 Thread wenxu
From: wenxu This series patch make nftables offload support the vlan and tunnel device offload through indr-block architecture. The first four patches mv tc indr block to flow offload and rename to flow-indr-block. Because the new flow-indr-block can't get the tcf_block directly. The f

[PATCH net-next v5 4/6] flow_offload: move tc indirect block to flow offload

2019-07-31 Thread wenxu
From: wenxu move tc indirect block to flow_offload and rename it to flow indirect block.The nf_tables can use the indr block architecture. Signed-off-by: wenxu --- v5: make flow_indr_block_cb/dev in c file drivers/net/ethernet/mellanox/mlx5/core/en_rep.c | 10 +- .../net/ethernet

[PATCH net-next v5 2/6] cls_api: replace block with flow_block in tc_indr_block_dev

2019-07-31 Thread wenxu
From: wenxu This patch make tc_indr_block_dev can separate from tc subsystem Signed-off-by: wenxu --- v5: new patch net/sched/cls_api.c | 31 ++- 1 file changed, 22 insertions(+), 9 deletions(-) diff --git a/net/sched/cls_api.c b/net/sched/cls_api.c index 2e3b58d

[PATCH net-next 3/6] cls_api: add flow_indr_block_call function

2019-07-31 Thread wenxu
From: wenxu This patch make indr_block_call don't access struct tc_indr_block_cb and tc_indr_block_dev directly Signed-off-by: wenxu --- v5: new patch net/sched/cls_api.c | 33 - 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/net/

[PATCH net-next v5 6/6] netfilter: nf_tables_offload: support indr block call

2019-07-31 Thread wenxu
From: wenxu nftable support indr-block call. It makes nftable an offload vlan and tunnel device. nft add table netdev firewall nft add chain netdev firewall aclout { type filter hook ingress offload device mlx_pf0vf0 priority - 300 \; } nft add rule netdev firewall aclout ip daddr 10.0.0.1 fwd

Re: [PATCH net-next v5 6/6] netfilter: nf_tables_offload: support indr block call

2019-07-31 Thread wenxu
On 8/1/2019 11:58 AM, Yunsheng Lin wrote: > On 2019/8/1 11:03, we...@ucloud.cn wrote: >> From: wenxu >> >> nftable support indr-block call. It makes nftable an offload vlan >> and tunnel device. >> >> nft add table netdev firewall >> nft add ch

Re: [PATCH net-next v5 5/6] flow_offload: support get flow_block immediately

2019-08-01 Thread wenxu
On 8/2/2019 7:11 AM, Jakub Kicinski wrote: > On Thu, 1 Aug 2019 11:03:46 +0800, we...@ucloud.cn wrote: >> From: wenxu >> >> The new flow-indr-block can't get the tcf_block >> directly. It provide a callback list to find the flow_block immediately >>

Re: [PATCH net-next v5 5/6] flow_offload: support get flow_block immediately

2019-08-02 Thread wenxu
On 8/2/2019 7:11 AM, Jakub Kicinski wrote: > On Thu, 1 Aug 2019 11:03:46 +0800, we...@ucloud.cn wrote: >> From: wenxu >> >> The new flow-indr-block can't get the tcf_block >> directly. It provide a callback list to find the flow_block immediately >>

Re: [PATCH net-next v5 5/6] flow_offload: support get flow_block immediately

2019-08-02 Thread wenxu
在 2019/8/2 18:45, wenxu 写道: > On 8/2/2019 7:11 AM, Jakub Kicinski wrote: >> On Thu, 1 Aug 2019 11:03:46 +0800, we...@ucloud.cn wrote: >>> From: wenxu >>> >>> The new flow-indr-block can't get the tcf_block >>> directly. It provide a callback li

Re: [PATCH net-next v5 5/6] flow_offload: support get flow_block immediately

2019-08-02 Thread wenxu
在 2019/8/3 2:02, Jakub Kicinski 写道: > On Fri, 2 Aug 2019 21:09:03 +0800, wenxu wrote: >>>> We'd have something like the loop in flow_get_default_block(): >>>> >>>>for each (subsystem) >>>>subsystem->handle_new_indir_cb(

Re: [PATCH net-next v5 5/6] flow_offload: support get flow_block immediately

2019-08-03 Thread wenxu
在 2019/8/3 8:21, Jakub Kicinski 写道: > On Sat, 3 Aug 2019 07:19:31 +0800, wenxu wrote: >>> Or: >>> >>> device unregister: >>> - nft block destroy >>> - UNBIND cb >>> - free driver's block state >>> - driver n

[PATCH net-next v6 0/6] flow_offload: add indr-block in nf_table_offload

2019-08-04 Thread wenxu
From: wenxu This series patch make nftables offload support the vlan and tunnel device offload through indr-block architecture. The first four patches mv tc indr block to flow offload and rename to flow-indr-block. Because the new flow-indr-block can't get the tcf_block directly. The

[PATCH net-next v6 3/6] cls_api: add flow_indr_block_call function

2019-08-04 Thread wenxu
From: wenxu This patch make indr_block_call don't access struct tc_indr_block_cb and tc_indr_block_dev directly Signed-off-by: wenxu --- v6: no change net/sched/cls_api.c | 27 +-- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/net/sched/cls_ap

[PATCH net-next v6 5/6] flow_offload: support get multi-subsystem block

2019-08-04 Thread wenxu
From: wenxu It provide a callback list to find the blocks of tc and nft subsystems Signed-off-by: wenxu --- v6: new patch include/net/flow_offload.h | 10 +- net/core/flow_offload.c| 47 +- net/sched/cls_api.c| 9 - 3

[PATCH net-next v6 1/6] cls_api: modify the tc_indr_block_ing_cmd parameters.

2019-08-04 Thread wenxu
From: wenxu This patch make tc_indr_block_ing_cmd can't access struct tc_indr_block_dev and tc_indr_block_cb. Signed-off-by: wenxu --- v6: no change net/sched/cls_api.c | 26 +++--- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/net/sched/cls_api.c

[PATCH net-next v6 2/6] cls_api: remove the tcf_block cache

2019-08-04 Thread wenxu
From: wenxu Remove the tcf_block in the tc_indr_block_dev for muti-subsystem support. Signed-off-by: wenxu --- v6: new patch net/sched/cls_api.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/net/sched/cls_api.c b/net/sched/cls_api.c index 2e3b58d

[PATCH net-next v6 6/6] netfilter: nf_tables_offload: support indr block call

2019-08-04 Thread wenxu
From: wenxu nftable support indr-block call. It makes nftable an offload vlan and tunnel device. nft add table netdev firewall nft add chain netdev firewall aclout { type filter hook ingress offload device mlx_pf0vf0 priority - 300 \; } nft add rule netdev firewall aclout ip daddr 10.0.0.1 fwd

[PATCH net-next v6 4/6] flow_offload: move tc indirect block to flow offload

2019-08-04 Thread wenxu
From: wenxu move tc indirect block to flow_offload and rename it to flow indirect block.The nf_tables can use the indr block architecture. Signed-off-by: wenxu --- v6: add a block_get_and_ing_cmd callback drivers/net/ethernet/mellanox/mlx5/core/en_rep.c | 10 +- .../net/ethernet/netronome

Re: [PATCH net-next 3/6] cls_api: add flow_indr_block_call function

2019-08-04 Thread wenxu
v5 contain this patch but with non-version tag, I used --subject-prefix in git-format-patch. I am sorry to  make a mistake when modify the commit log. So should I repost the v6? On 8/5/2019 2:02 PM, Jiri Pirko wrote: > Re subject. You don't have "v5" in this patch. I don't understand how > tha

Re: [PATCH net-next v6 5/6] flow_offload: support get multi-subsystem block

2019-08-06 Thread wenxu
在 2019/8/7 0:10, Pablo Neira Ayuso 写道: > On Sun, Aug 04, 2019 at 09:24:00PM +0800, we...@ucloud.cn wrote: >> diff --git a/include/net/flow_offload.h b/include/net/flow_offload.h >> index 8f1a7b8..6022dd0 100644 >> --- a/include/net/flow_offload.h >> +++ b/include/net/flow_offload.h > [...] >> @@

Re: [PATCH net-next v6 5/6] flow_offload: support get multi-subsystem block

2019-08-06 Thread wenxu
在 2019/8/7 0:10, Pablo Neira Ayuso 写道: > >> >> +void flow_indr_add_block_ing_cb(struct flow_indr_block_ing_entry *entry) >> +{ > ... but registration does not protect the list with a mutex. > >> +list_add_tail_rcu(&entry->list, &block_ing_cb_list); >> +} >> +EXPORT_SYMBOL_GPL(flow_indr_add_

[PATCH net-next v7 6/6] netfilter: nf_tables_offload: support indr block call

2019-08-06 Thread wenxu
From: wenxu nftable support indr-block call. It makes nftable an offload vlan and tunnel device. nft add table netdev firewall nft add chain netdev firewall aclout { type filter hook ingress offload device mlx_pf0vf0 priority - 300 \; } nft add rule netdev firewall aclout ip daddr 10.0.0.1 fwd

[PATCH net-next v7 3/6] cls_api: add flow_indr_block_call function

2019-08-06 Thread wenxu
From: wenxu This patch make indr_block_call don't access struct tc_indr_block_cb and tc_indr_block_dev directly Signed-off-by: wenxu Acked-by: Jakub Kicinski --- v7: no change net/sched/cls_api.c | 27 +-- 1 file changed, 17 insertions(+), 10 deletions(-) diff

[PATCH net-next v7 4/6] flow_offload: move tc indirect block to flow offload

2019-08-06 Thread wenxu
From: wenxu move tc indirect block to flow_offload and rename it to flow indirect block.The nf_tables can use the indr block architecture. Signed-off-by: wenxu Acked-by: Jakub Kicinski --- v7: no change drivers/net/ethernet/mellanox/mlx5/core/en_rep.c | 10 +- .../net/ethernet/netronome

[PATCH net-next v7 2/6] cls_api: remove the tcf_block cache

2019-08-06 Thread wenxu
From: wenxu Remove the tcf_block in the tc_indr_block_dev for muti-subsystem support. Signed-off-by: wenxu Acked-by: Jakub Kicinski --- v7: no change net/sched/cls_api.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/net/sched/cls_api.c b/net/sched

[PATCH net-next v7 0/6] flow_offload: add indr-block in nf_table_offload

2019-08-06 Thread wenxu
From: wenxu This series patch make nftables offload support the vlan and tunnel device offload through indr-block architecture. The first four patches mv tc indr block to flow offload and rename to flow-indr-block. Because the new flow-indr-block can't get the tcf_block directly. The

[PATCH net-next v7 5/6] flow_offload: support get multi-subsystem block

2019-08-06 Thread wenxu
From: wenxu It provide a callback list to find the blocks of tc and nft subsystems Signed-off-by: wenxu Acked-by: Jakub Kicinski --- v7: add a mutex lock for add/del flow_indr_block_ing_cb include/net/flow_offload.h | 10 - net/core/flow_offload.c| 51

[PATCH net-next v7 1/6] cls_api: modify the tc_indr_block_ing_cmd parameters.

2019-08-06 Thread wenxu
From: wenxu This patch make tc_indr_block_ing_cmd can't access struct tc_indr_block_dev and tc_indr_block_cb. Signed-off-by: wenxu Acked-by: Jakub Kicinski --- v7: no change net/sched/cls_api.c | 26 +++--- 1 file changed, 15 insertions(+), 11 deletions(-) diff --

Ktls RX offload in CX6 of mellanox

2021-01-14 Thread wenxu
-hw-rx-offload: off [fixed] But I found the RX offload is not supported currently? I found the mlx5_accel_is_ktls_rx(mdev) will return false and it leads this feature not supported. So it means the current FW also does not support RX offload? BR wenxu

[PATCH net-next] net/sched: cls_flower add CT_FLAGS_INVALID flag support

2021-01-17 Thread wenxu
From: wenxu This patch add the TCA_FLOWER_KEY_CT_FLAGS_INVALID flag to match the ct_state with invalid for conntrack. Signed-off-by: wenxu --- include/linux/skbuff.h | 4 ++-- include/net/sch_generic.h| 1 + include/uapi/linux/pkt_cls.h | 1 + net/core/dev.c | 2

Re: [PATCH net-next] net/sched: cls_flower add CT_FLAGS_INVALID flag support

2021-01-18 Thread wenxu
On 1/19/2021 2:21 AM, Marcelo Ricardo Leitner wrote: > On Mon, Jan 18, 2021 at 01:18:47PM +0800, we...@ucloud.cn wrote: > ... >> --- a/net/sched/cls_flower.c >> +++ b/net/sched/cls_flower.c >> @@ -305,6 +305,9 @@ static int fl_classify(struct sk_buff *skb, const struct >> tcf_proto *tp, >>

[PATCH v2 net-next ] net/sched: cls_flower add CT_FLAGS_INVALID flag support

2021-01-19 Thread wenxu
From: wenxu This patch add the TCA_FLOWER_KEY_CT_FLAGS_INVALID flag to match the ct_state with invalid for conntrack. Signed-off-by: wenxu --- v2: initialize post_ct right on the declaration include/linux/skbuff.h | 4 ++-- include/net/sch_generic.h| 1 + include/uapi/linux

[PATCH iproute2-next] tc: flower: add tc conntrack inv ct_state support

2021-01-19 Thread wenxu
From: wenxu Matches on conntrack inv ct_state. Signed-off-by: wenxu --- include/uapi/linux/pkt_cls.h | 1 + man/man8/tc-flower.8 | 2 ++ tc/f_flower.c| 1 + 3 files changed, 4 insertions(+) diff --git a/include/uapi/linux/pkt_cls.h b/include/uapi/linux/pkt_cls.h index

[PATCH iproute2-next v2] tc: flower: add tc conntrack inv ct_state support

2021-01-19 Thread wenxu
From: wenxu Matches on conntrack inv ct_state. Signed-off-by: wenxu --- v2: change the description include/uapi/linux/pkt_cls.h | 1 + man/man8/tc-flower.8 | 2 ++ tc/f_flower.c| 1 + 3 files changed, 4 insertions(+) diff --git a/include/uapi/linux/pkt_cls.h b

Re: [PATCH v2 net-next ] net/sched: cls_flower add CT_FLAGS_INVALID flag support

2021-01-20 Thread wenxu
On 1/21/2021 9:09 AM, Cong Wang wrote: > On Wed, Jan 20, 2021 at 3:40 PM Marcelo Ricardo Leitner > wrote: >> On Wed, Jan 20, 2021 at 02:18:41PM -0800, Cong Wang wrote: >>> On Tue, Jan 19, 2021 at 12:33 AM wrote: diff --git a/net/core/flow_dissector.c b/net/core/flow_dissector.c index

Re: [PATCH v2 net-next 3/3] net/sched: sch_frag: add generic packet fragment support.

2020-11-18 Thread wenxu
在 2020/11/18 15:00, Cong Wang 写道: > On Tue, Nov 17, 2020 at 5:37 PM wrote: >> From: wenxu >> >> Currently kernel tc subsystem can do conntrack in cat_ct. But when several >> fragment packets go through the act_ct, function tcf_ct_handle_fragments >> will def

[PATCH v3 net-next 2/3] net/sched: act_mirred: refactor the handle of xmit

2020-11-19 Thread wenxu
From: wenxu This one is prepare for the next patch. Signed-off-by: wenxu --- v3: no change include/net/sch_generic.h | 5 - net/sched/act_mirred.c| 21 +++-- 2 files changed, 15 insertions(+), 11 deletions(-) diff --git a/include/net/sch_generic.h b/include/net

[PATCH v3 net-next 0/3] net/sched: fix over mtu packet of defrag in

2020-11-19 Thread wenxu
From: wenxu Currently kernel tc subsystem can do conntrack in act_ct. But when several fragment packets go through the act_ct, function tcf_ct_handle_fragments will defrag the packets to a big one. But the last action will redirect mirred to a device which maybe lead the reassembly big packet

[PATCH v3 net-next 3/3] net/sched: sch_frag: add generic packet fragment support.

2020-11-19 Thread wenxu
From: wenxu Currently kernel tc subsystem can do conntrack in cat_ct. But when several fragment packets go through the act_ct, function tcf_ct_handle_fragments will defrag the packets to a big one. But the last action will redirect mirred to a device which maybe lead the reassembly big packet

[PATCH v3 net-next 1/3] net/sched: fix miss init the mru in qdisc_skb_cb

2020-11-19 Thread wenxu
From: wenxu The mru in the qdisc_skb_cb should be init as 0. Only defrag packets in the act_ct will set the value. Fixes: 038ebb1a713d ("net/sched: act_ct: fix miss set mru for ovs after defrag in act_ct") Signed-off-by: wenxu --- v3: no change net/core/dev.c | 2 ++ 1 file

Re: [PATCH v3 net-next 3/3] net/sched: sch_frag: add generic packet fragment support.

2020-11-24 Thread wenxu
在 2020/11/25 3:24, Jakub Kicinski 写道: > On Fri, 20 Nov 2020 07:38:36 +0800 we...@ucloud.cn wrote: >> +int tcf_dev_queue_xmit(struct sk_buff *skb, int (*xmit)(struct sk_buff >> *skb)) >> +{ >> +xmit_hook_func *xmit_hook; >> + >> +xmit_hook = rcu_dereference(tcf_xmit_hook); >> +if (xmi

[PATCH v4 net-next 0/3] net/sched: fix over mtu packet of defrag in

2020-11-24 Thread wenxu
From: wenxu Currently kernel tc subsystem can do conntrack in act_ct. But when several fragment packets go through the act_ct, function tcf_ct_handle_fragments will defrag the packets to a big one. But the last action will redirect mirred to a device which maybe lead the reassembly big packet

[PATCH v4 net-next 2/3] net/sched: act_mirred: refactor the handle of xmit

2020-11-24 Thread wenxu
From: wenxu This one is prepare for the next patch. Signed-off-by: wenxu --- v4: no change include/net/sch_generic.h | 5 - net/sched/act_mirred.c| 21 +++-- 2 files changed, 15 insertions(+), 11 deletions(-) diff --git a/include/net/sch_generic.h b/include/net

[PATCH v4 net-next 1/3] net/sched: fix miss init the mru in qdisc_skb_cb

2020-11-24 Thread wenxu
From: wenxu The mru in the qdisc_skb_cb should be init as 0. Only defrag packets in the act_ct will set the value. Fixes: 038ebb1a713d ("net/sched: act_ct: fix miss set mru for ovs after defrag in act_ct") Signed-off-by: wenxu --- v4: no change net/core/dev.c | 2 ++ 1 file

[PATCH v4 net-next 3/3] net/sched: sch_frag: add generic packet fragment support.

2020-11-24 Thread wenxu
From: wenxu Currently kernel tc subsystem can do conntrack in cat_ct. But when several fragment packets go through the act_ct, function tcf_ct_handle_fragments will defrag the packets to a big one. But the last action will redirect mirred to a device which maybe lead the reassembly big packet

Re: [PATCH net-next] net/sched: act_ct: enable stats for HW offloaded entries

2020-11-26 Thread wenxu
; - nf_ct_acct_update(ct, dir, skb->len); > + if (nf_ft->flags & NF_FLOWTABLE_COUNTER) > + nf_ct_acct_update(ct, dir, skb->len); > > return true; > } Acked-by: wenxu BR wenxu

Re: [PATCH v5 net-next 3/3] net/sched: act_frag: add implict packet fragment support.

2020-11-09 Thread wenxu
在 2020/11/9 21:24, Vlad Buslov 写道: > On Sun 08 Nov 2020 at 01:30, we...@ucloud.cn wrote: >> From: wenxu >> >> Currently kernel tc subsystem can do conntrack in act_ct. But when several >> fragment packets go through the act_ct, function tcf_ct_handle_fragments >

[PATCH v6 net-next 0/3] net/sched: fix over mtu packet of defrag in

2020-11-09 Thread wenxu
From: wenxu Currently kernel tc subsystem can do conntrack in act_ct. But when several fragment packets go through the act_ct, function tcf_ct_handle_fragments will defrag the packets to a big one. But the last action will redirect mirred to a device which maybe lead the reassembly big packet

[PATCH v6 net-next 1/3] net/sched: fix miss init the mru in qdisc_skb_cb

2020-11-09 Thread wenxu
From: wenxu The mru in the qdisc_skb_cb should be init as 0. Only defrag packets in the act_ct will set the value. Fixes: 038ebb1a713d ("net/sched: act_ct: fix miss set mru for ovs after defrag in act_ct") Signed-off-by: wenxu --- v5: new patch v6: no change net/core/dev.c | 2

[PATCH v6 net-next 2/3] net/sched: act_mirred: refactor the handle of xmit

2020-11-09 Thread wenxu
From: wenxu This one is prepare for the next patch. Signed-off-by: wenxu --- v6: no change include/net/sch_generic.h | 5 - net/sched/act_mirred.c| 21 +++-- 2 files changed, 15 insertions(+), 11 deletions(-) diff --git a/include/net/sch_generic.h b/include/net

[PATCH v6 net-next 3/3] net/sched: act_frag: add implict packet fragment support.

2020-11-09 Thread wenxu
From: wenxu Currently kernel tc subsystem can do conntrack in cat_ct. But when several fragment packets go through the act_ct, function tcf_ct_handle_fragments will defrag the packets to a big one. But the last action will redirect mirred to a device which maybe lead the reassembly big packet

[PATCH v7 net-next 2/3] net/sched: act_mirred: refactor the handle of xmit

2020-11-10 Thread wenxu
From: wenxu This one is prepare for the next patch. Signed-off-by: wenxu --- v7: no change include/net/sch_generic.h | 5 - net/sched/act_mirred.c| 21 +++-- 2 files changed, 15 insertions(+), 11 deletions(-) diff --git a/include/net/sch_generic.h b/include/net

[PATCH v7 net-next 3/3] net/sched: act_frag: add implict packet fragment support.

2020-11-10 Thread wenxu
From: wenxu Currently kernel tc subsystem can do conntrack in cat_ct. But when several fragment packets go through the act_ct, function tcf_ct_handle_fragments will defrag the packets to a big one. But the last action will redirect mirred to a device which maybe lead the reassembly big packet

[PATCH v7 net-next 0/3] net/sched: fix over mtu packet of defrag in

2020-11-10 Thread wenxu
From: wenxu Currently kernel tc subsystem can do conntrack in act_ct. But when several fragment packets go through the act_ct, function tcf_ct_handle_fragments will defrag the packets to a big one. But the last action will redirect mirred to a device which maybe lead the reassembly big packet

  1   2   3   4   5   >