netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH nf-next] netfilter: nf_flow_table_offload: Fix setup block as TC_SETUP_FT cmd
@ 2019-11-20  4:30 wenxu
  2019-11-25 12:26 ` [nf-next] " Paul Blakey
  2019-11-29  8:01 ` [PATCH nf-next] " Pablo Neira Ayuso
  0 siblings, 2 replies; 3+ messages in thread
From: wenxu @ 2019-11-20  4:30 UTC (permalink / raw)
  To: pablo; +Cc: netfilter-devel

From: wenxu <wenxu@ucloud.cn>

Flow table offload should setup block through TC_SETUP_FT cmd

Fixes: c29f74e0df7a ("netfilter: nf_flow_table: hardware offload support")
Signed-off-by: wenxu <wenxu@ucloud.cn>
---
 net/netfilter/nf_flow_table_offload.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/netfilter/nf_flow_table_offload.c b/net/netfilter/nf_flow_table_offload.c
index c54c9a6..6067268 100644
--- a/net/netfilter/nf_flow_table_offload.c
+++ b/net/netfilter/nf_flow_table_offload.c
@@ -822,7 +822,7 @@ int nf_flow_table_offload_setup(struct nf_flowtable *flowtable,
 	bo.extack	= &extack;
 	INIT_LIST_HEAD(&bo.cb_list);
 
-	err = dev->netdev_ops->ndo_setup_tc(dev, TC_SETUP_BLOCK, &bo);
+	err = dev->netdev_ops->ndo_setup_tc(dev, TC_SETUP_FT, &bo);
 	if (err < 0)
 		return err;
 
-- 
1.8.3.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [nf-next] netfilter: nf_flow_table_offload: Fix setup block as TC_SETUP_FT cmd
  2019-11-20  4:30 [PATCH nf-next] netfilter: nf_flow_table_offload: Fix setup block as TC_SETUP_FT cmd wenxu
@ 2019-11-25 12:26 ` Paul Blakey
  2019-11-29  8:01 ` [PATCH nf-next] " Pablo Neira Ayuso
  1 sibling, 0 replies; 3+ messages in thread
From: Paul Blakey @ 2019-11-25 12:26 UTC (permalink / raw)
  To: wenxu, Pablo Neira Ayuso; +Cc: netfilter-devel

Looks good to me.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH nf-next] netfilter: nf_flow_table_offload: Fix setup block as TC_SETUP_FT cmd
  2019-11-20  4:30 [PATCH nf-next] netfilter: nf_flow_table_offload: Fix setup block as TC_SETUP_FT cmd wenxu
  2019-11-25 12:26 ` [nf-next] " Paul Blakey
@ 2019-11-29  8:01 ` Pablo Neira Ayuso
  1 sibling, 0 replies; 3+ messages in thread
From: Pablo Neira Ayuso @ 2019-11-29  8:01 UTC (permalink / raw)
  To: wenxu; +Cc: netfilter-devel

On Wed, Nov 20, 2019 at 12:30:42PM +0800, wenxu@ucloud.cn wrote:
> From: wenxu <wenxu@ucloud.cn>
> 
> Flow table offload should setup block through TC_SETUP_FT cmd

Applied, thanks.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-11-29  8:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-20  4:30 [PATCH nf-next] netfilter: nf_flow_table_offload: Fix setup block as TC_SETUP_FT cmd wenxu
2019-11-25 12:26 ` [nf-next] " Paul Blakey
2019-11-29  8:01 ` [PATCH nf-next] " Pablo Neira Ayuso

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).