On Fri, May 17, 2019 at 12:45 PM <we...@ucloud.cn> wrote: > From: wenxu <we...@ucloud.cn> > > The mlx5e support the lag mode. When add mlx_p0 and mlx_p1 to bond0. > packet received from mlx_p0 or mlx_p1 and in the ingress tc flower > forward to vf0. The tc rule can't be offloaded because there is > no indr_register_block for the bonding device.
For the bonding case, the offloading strategy is tc block sharing, namly have user-space share the tc block of the upper device (bond) with the lower devices (mlx5 p0 and p1). This is implemented for example in ovs. You can read on tc block sharing in the mlxsw driver wiki [1] Or. [1] https://github.com/Mellanox/mlxsw/wiki/ACLs#shared-blocks-support