Hi Wenxu,

I think that the error you are seeing is the expected behaviour whereby
netdev_tc_flow_put() returns EOPNOTSUPP when it receives a flow
whose offload is not supported. And it seems to me that is the
correct place for this to be handled.

I am referring to the following code around line 1555 of
lib/netdev-tc-offloads.c

        } else {
            VLOG_DBG_RL(&rl, "unsupported put action type: %d",
                        nl_attr_type(nla));
            return EOPNOTSUPP;
        }

I do, however, wonder if the log message you report should be of level info
rather than error in the case where the error is EOPNOTSUPP:  this isn't an
error in the sense that the system is malfunctioning but rather lower
layers are reporting that a flow can't be offloaded because it is not
supported which is a part of the design of support for offloads.

Kind regards,
Simon


On Mon, Mar 18, 2019 at 01:45:20PM -0700, Ben Pfaff wrote:
> I guess that Simon should look at it.
> 
> On Mon, Mar 11, 2019 at 09:26:03AM +0800, wenxu wrote:
> > 
> > Hi,
> > Are there any idear for this patch?
> > 
> > BR
> > wenxu
> > 
> > 
> > 在 2019-03-06 12:35:58,[email protected] 写道:
> > 
> > > From: wenxu <[email protected]>
> > > 
> > > The hw do/t support USERSPACE action, it will lead many err
> > > logs as following
> > > "ERR|failed to offload flow: Operation not supported"
> > > 
> > > Signed-off-by: wenxu <[email protected]>
> > > ---
> > >  lib/dpif-netlink.c | 3 +++
> > >  1 file changed, 3 insertions(+)
> > > 
> > > diff --git a/lib/dpif-netlink.c b/lib/dpif-netlink.c
> > > index 00538e5..46fe022 100644
> > > --- a/lib/dpif-netlink.c
> > > +++ b/lib/dpif-netlink.c
> > > @@ -2036,6 +2036,9 @@ parse_flow_put(struct dpif_netlink *dpif, struct 
> > > dpif_flow_put *put)
> > >                  csum_on = tnl_cfg->csum;
> > >              }
> > >              netdev_close(outdev);
> > > +        } else if (nl_attr_type(nla) == OVS_ACTION_ATTR_USERSPACE) {
> > > +            err = EOPNOTSUPP;
> > > +            goto out;
> > >          }
> > >      }
> > >  
> > > -- 
> > > 1.8.3.1
> > > 
> > 
> > 
> > _______________________________________________
> > dev mailing list
> > [email protected]
> > https://mail.openvswitch.org/mailman/listinfo/ovs-dev
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to