Thread (6 messages) 6 messages, 2 authors, 2026-06-11

Re: [PATCH net-next 1/2] netdevsim: tc: allow to test nf_tables offload control plane code

From: Jakub Kicinski <kuba@kernel.org>
Date: 2026-06-11 20:39:11
Also in: netfilter-devel

On Wed, 10 Jun 2026 19:58:43 +0200 Florian Westphal wrote:
quoted hunk ↗ jump to hunk
@@ -73,7 +86,10 @@ nsim_setup_tc(struct net_device *dev, enum tc_setup_type type, void *type_data)
 						  &nsim_block_cb_list,
 						  nsim_setup_tc_block_cb,
 						  ns, ns, true);
+	case TC_SETUP_FT:
+		return 0;
 	default:
 		return -EOPNOTSUPP;
 	}
 }
+ALLOW_ERROR_INJECTION(nsim_setup_tc, ERRNO);
As you probably seen other netdevsim offloads use explicit debugfs 
files to "fail operation X". Slightly easier to deal with, and
netdevsim is a test harness anyway. But entirely up to you.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help