common/sfc_efx/base: indicate support for TSO version 3
authorIvan Malov <ivan.malov@oktetlabs.ru>
Thu, 24 Sep 2020 12:12:12 +0000 (13:12 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 30 Sep 2020 17:19:12 +0000 (19:19 +0200)
Riverhead boards support TSO version 3.

Signed-off-by: Ivan Malov <ivan.malov@oktetlabs.ru>
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
Reviewed-by: Andrew Lee <andrewle@xilinx.com>
Reviewed-by: Andy Moreton <amoreton@xilinx.com>
drivers/common/sfc_efx/base/ef10_nic.c
drivers/common/sfc_efx/base/efx.h
drivers/common/sfc_efx/base/siena_nic.c

index 80dc99a..43f3412 100644 (file)
@@ -1109,6 +1109,12 @@ ef10_get_datapath_caps(
        else
                encp->enc_fw_assisted_tso_v2_encap_enabled = B_FALSE;
 
+       /* Check if TSOv3 is supported */
+       if (CAP_FLAGS2(req, TX_TSO_V3))
+               encp->enc_tso_v3_enabled = B_TRUE;
+       else
+               encp->enc_tso_v3_enabled = B_FALSE;
+
        /* Check if the firmware has vadapter/vport/vswitch support */
        if (CAP_FLAGS1(req, EVB))
                encp->enc_datapath_cap_evb = B_TRUE;
index 2437980..08f7cdd 100644 (file)
@@ -1469,6 +1469,7 @@ typedef struct efx_nic_cfg_s {
        boolean_t               enc_fw_assisted_tso_enabled;
        boolean_t               enc_fw_assisted_tso_v2_enabled;
        boolean_t               enc_fw_assisted_tso_v2_encap_enabled;
+       boolean_t               enc_tso_v3_enabled;
        /* Number of TSO contexts on the NIC (FATSOv2) */
        uint32_t                enc_fw_assisted_tso_v2_n_contexts;
        boolean_t               enc_hw_tx_insert_vlan_enabled;
index beabac0..9c30e27 100644 (file)
@@ -176,6 +176,7 @@ siena_board_cfg(
        encp->enc_fw_assisted_tso_enabled = B_FALSE;
        encp->enc_fw_assisted_tso_v2_enabled = B_FALSE;
        encp->enc_fw_assisted_tso_v2_n_contexts = 0;
+       encp->enc_tso_v3_enabled = B_FALSE;
        encp->enc_allow_set_mac_with_installed_filters = B_TRUE;
        encp->enc_rx_packed_stream_supported = B_FALSE;
        encp->enc_rx_var_packed_stream_supported = B_FALSE;