nfp: support VF rate limit with NFDK
authorBin Chen <bin.chen@corigine.com>
Thu, 30 Jun 2022 11:21:55 +0000 (13:21 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Jul 2022 12:40:00 +0000 (13:40 +0100)
commitc7b1267b1c64925ef0c036ffb303057884481c53
tree2ca312aa36ce23e1864ad9f5f5d6a9ddcce0532f
parent7fa2d1707d4102a5b3dcd3f49b235015f4d66955
nfp: support VF rate limit with NFDK

Support VF rate limiting with NFDK by adding ndo_set_vf_rate to the NFDK
ops structure.

NFDK is used to communicate via PCIE to NFP-3800 based NICs
while NFD3 is used for other NICs supported by the NFP driver.
The VF rate limit feature is already supported by the driver for NFD3.

Signed-off-by: Bin Chen <bin.chen@corigine.com>
Reviewed-by: Baowen Zheng <baowen.zheng@corigine.com>
Reviewed-by: Louis Peens <louis.peens@corigine.com>
Signed-off-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/nfp_net_common.c