Re: [PATCH net-next v2 09/10] octeontx2: switch: Flow offload support
From: Ratheesh Kannoth
Date: Thu Jan 08 2026 - 10:27:37 EST
On 2026-01-08 at 14:39:11, ALOK TIWARI (alok.a.tiwari@xxxxxxxxxx) wrote:
>
>
> 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
ACK
>
> > + __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