]> git.baikalelectronics.ru Git - kernel.git/commitdiff
bnxt: report header-data split state
authorJakub Kicinski <kuba@kernel.org>
Thu, 27 Jan 2022 18:43:00 +0000 (10:43 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Jan 2022 14:43:48 +0000 (14:43 +0000)
Aggregation rings imply header-data split.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c

index 003330e8cd58bde45305e746307c9e693461eaaf..5edbee92f5c412300961faadff00447449ef6dda 100644 (file)
@@ -11,6 +11,7 @@
 #include <linux/ctype.h>
 #include <linux/stringify.h>
 #include <linux/ethtool.h>
+#include <linux/ethtool_netlink.h>
 #include <linux/linkmode.h>
 #include <linux/interrupt.h>
 #include <linux/pci.h>
@@ -802,9 +803,11 @@ static void bnxt_get_ringparam(struct net_device *dev,
        if (bp->flags & BNXT_FLAG_AGG_RINGS) {
                ering->rx_max_pending = BNXT_MAX_RX_DESC_CNT_JUM_ENA;
                ering->rx_jumbo_max_pending = BNXT_MAX_RX_JUM_DESC_CNT;
+               kernel_ering->tcp_data_split = ETHTOOL_TCP_DATA_SPLIT_ENABLED;
        } else {
                ering->rx_max_pending = BNXT_MAX_RX_DESC_CNT;
                ering->rx_jumbo_max_pending = 0;
+               kernel_ering->tcp_data_split = ETHTOOL_TCP_DATA_SPLIT_DISABLED;
        }
        ering->tx_max_pending = BNXT_MAX_TX_DESC_CNT;