On Fri, 7 Jun 2019 19:55:34 -0700, William Tu wrote: > Hi, > > When using AF_XDP, the TC qdisc layer is by-passed and packets go to > userspace directly. One problem is that there is no QoS support when > using AF_XDP. > > For egress shaping, I'm thinking about using tc-mqprio, which has > hardware offload support. And for OVS, we can add tc-mqprio support. What is your end game? Once upon the time Simon was explaining the QoS stuff in OvS to me, but IIRC it used CBQ and/or HTB. The XDP TX queues are not exposed to the stack, so we can't set per-queue QoS, setting a root Qdisc (like mqprio) and expecting the XDP queues to have the same settings would be very limiting (then again even with mqprio IDK how you'd select the prio? by using the TX queue ID? hm..). > For ingress policing, I don't know how to do it. Is there an hardware > offload ingress policing support? There is support for act_police in a couple drivers. Although using it per queue could be a challenge... (At least we do have a real queue ID on the RX, hopefully the mlx5 fake queues never get merged.)