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: Florian Westphal <fw@strlen.de>
Date: 2026-06-11 23:12:43
Also in: netfilter-devel

Jakub Kicinski [off-list ref] wrote:
On Wed, 10 Jun 2026 19:58:43 +0200 Florian Westphal wrote:
quoted
@@ -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.
I'd rather not reimplement the '30% failure rate' and the 'make-it-fail'
logic (allows to have restrict the error injection to selected
processed), so I would prefer to give fuzzers more rope.

I'll fix up the sashiko hints in v2.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help