diff options
author | Tomasz Duszynski <tduszynski@marvell.com> | 2020-03-21 00:27:22 +0530 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-03-23 21:11:43 -0700 |
commit | 05c22b5431488d6441845cfa015c9b9f1d8ae44f (patch) | |
tree | b7c97793f7dfb7142fe35895d50bb038f7e21435 /drivers/net/ethernet/marvell/octeontx2/nic/otx2_vf.c | |
parent | octeontx2-vf: Virtual function driver support (diff) | |
download | wireguard-linux-05c22b5431488d6441845cfa015c9b9f1d8ae44f.tar.xz wireguard-linux-05c22b5431488d6441845cfa015c9b9f1d8ae44f.zip |
octeontx2-vf: Ethtool support
Added ethtool support for VF devices for
- Driver stats, Tx/Rx perqueue stats
- Set/show Rx/Tx queue count
- Set/show Rx/Tx ring sizes
- Set/show IRQ coalescing parameters
- RSS configuration etc
It's the PF which owns the interface, hence VF
cannot display underlying CGX interface stats.
Except for this rest ethtool support reuses PF's
APIs.
Signed-off-by: Tomasz Duszynski <tduszynski@marvell.com>
Signed-off-by: Sunil Goutham <sgoutham@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r-- | drivers/net/ethernet/marvell/octeontx2/nic/otx2_vf.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/marvell/octeontx2/nic/otx2_vf.c b/drivers/net/ethernet/marvell/octeontx2/nic/otx2_vf.c index 2b5c38d2ba25..b2727b64afa8 100644 --- a/drivers/net/ethernet/marvell/octeontx2/nic/otx2_vf.c +++ b/drivers/net/ethernet/marvell/octeontx2/nic/otx2_vf.c @@ -579,6 +579,8 @@ static int otx2vf_probe(struct pci_dev *pdev, const struct pci_device_id *id) goto err_detach_rsrc; } + otx2vf_set_ethtool_ops(netdev); + /* Enable pause frames by default */ vf->flags |= OTX2_FLAG_RX_PAUSE_ENABLED; vf->flags |= OTX2_FLAG_TX_PAUSE_ENABLED; |