]> git.baikalelectronics.ru Git - kernel.git/commitdiff
octeontx2-vf: Add support for adaptive interrupt coalescing
authorSuman Ghosh <sumang@marvell.com>
Sun, 12 Jun 2022 17:45:36 +0000 (23:15 +0530)
committerDavid S. Miller <davem@davemloft.net>
Mon, 13 Jun 2022 12:42:24 +0000 (13:42 +0100)
Fixes: 21ad7a1888f3 (octeontx2-pf: Add support for adaptive interrupt coalescing)
Added support for VF interfaces as well.

Signed-off-by: Suman Ghosh <sumang@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/nic/otx2_ethtool.c

index bc614a4def9ef6a2b334107f52762f08ac0e3793..3f60a80e34c822433beb4386cca26f2064bf0405 100644 (file)
@@ -1390,7 +1390,8 @@ static int otx2vf_get_link_ksettings(struct net_device *netdev,
 
 static const struct ethtool_ops otx2vf_ethtool_ops = {
        .supported_coalesce_params = ETHTOOL_COALESCE_USECS |
-                                    ETHTOOL_COALESCE_MAX_FRAMES,
+                                    ETHTOOL_COALESCE_MAX_FRAMES |
+                                    ETHTOOL_COALESCE_USE_ADAPTIVE,
        .supported_ring_params  = ETHTOOL_RING_USE_RX_BUF_LEN |
                                  ETHTOOL_RING_USE_CQE_SIZE,
        .get_link               = otx2_get_link,