Thread (21 messages) 21 messages, 3 authors, 2026-01-09

Re: [PATCH net-next v2 09/10] octeontx2: switch: Flow offload support

From: ALOK TIWARI <hidden>
Date: 2026-01-08 09:09:31
Also in: lkml


On 1/7/2026 6:54 PM, Ratheesh Kannoth wrote:
+	err = sw_fl_get_route(&res, dst);
+	if (err) {
+		pr_err("%s:%d Failed to find route to dst %pI4\n",
+		       __func__, __LINE__, &dst);
+		goto done;
+	}
+
+	if (res.fi->fib_type != RTN_UNICAST) {
+		pr_err("%s:%d Not unicast  route to dst %pi4\n",
%pi4 -> %pI4
+		       __func__, __LINE__, &dst);
+		err = -EFAULT;
+		goto done;
+	}
+
+	fib_nhc = fib_info_nhc(res.fi, 0);
+	if (!fib_nhc) {
+		err = -EINVAL;
+		pr_err("%s:%d Could not get fib_nhc for %pI4\n",
+		       __func__, __LINE__, &dst);
+		goto done;
+	}

Thanks,
Alok
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help