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

From: ALOK TIWARI
Date: Thu Jan 08 2026 - 07:02:01 EST




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