DPDK patches and discussions
 help / color / mirror / Atom feed
From: Andrew Rybchenko <arybchenko@solarflare.com>
To: <dev@dpdk.org>
Cc: Andrew Rybchenko <Andrew.Rybchenko@oktetlabs.ru>
Subject: [dpdk-dev] [PATCH 3/5] net/sfc/base: report no Tx checksum FW subvariant support
Date: Tue, 3 Apr 2018 16:07:05 +0100	[thread overview]
Message-ID: <1522768027-17384-4-git-send-email-arybchenko@solarflare.com> (raw)
In-Reply-To: <1522768027-17384-1-git-send-email-arybchenko@solarflare.com>

From: Andrew Rybchenko <Andrew.Rybchenko@oktetlabs.ru>

Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
Reviewed-by: Andy Moreton <amoreton@solarflare.com>
Reviewed-by: Andrew Lee <alee@solarflare.com>
---
 drivers/net/sfc/base/ef10_nic.c  | 6 ++++++
 drivers/net/sfc/base/efx.h       | 1 +
 drivers/net/sfc/base/siena_nic.c | 1 +
 3 files changed, 8 insertions(+)

diff --git a/drivers/net/sfc/base/ef10_nic.c b/drivers/net/sfc/base/ef10_nic.c
index 42c37dd..57b9ff0 100644
--- a/drivers/net/sfc/base/ef10_nic.c
+++ b/drivers/net/sfc/base/ef10_nic.c
@@ -1108,6 +1108,12 @@ ef10_get_datapath_caps(
 	else
 		encp->enc_rx_var_packed_stream_supported = B_FALSE;
 
+	/* Check if the firmware supports FW subvariant w/o Tx checksuming */
+	if (CAP_FLAGS2(req, FW_SUBVARIANT_NO_TX_CSUM))
+		encp->enc_fw_subvariant_no_tx_csum_supported = B_TRUE;
+	else
+		encp->enc_fw_subvariant_no_tx_csum_supported = B_FALSE;
+
 	/* Check if the firmware supports set mac with running filters */
 	if (CAP_FLAGS1(req, VADAPTOR_PERMIT_SET_MAC_WHEN_FILTERS_INSTALLED))
 		encp->enc_allow_set_mac_with_installed_filters = B_TRUE;
diff --git a/drivers/net/sfc/base/efx.h b/drivers/net/sfc/base/efx.h
index fd9f059..e334b96 100644
--- a/drivers/net/sfc/base/efx.h
+++ b/drivers/net/sfc/base/efx.h
@@ -1259,6 +1259,7 @@ typedef struct efx_nic_cfg_s {
 	boolean_t		enc_init_evq_v2_supported;
 	boolean_t		enc_rx_packed_stream_supported;
 	boolean_t		enc_rx_var_packed_stream_supported;
+	boolean_t		enc_fw_subvariant_no_tx_csum_supported;
 	boolean_t		enc_pm_and_rxdp_counters;
 	boolean_t		enc_mac_stats_40g_tx_size_bins;
 	uint32_t		enc_tunnel_encapsulations_supported;
diff --git a/drivers/net/sfc/base/siena_nic.c b/drivers/net/sfc/base/siena_nic.c
index f518a54..6e57de4 100644
--- a/drivers/net/sfc/base/siena_nic.c
+++ b/drivers/net/sfc/base/siena_nic.c
@@ -149,6 +149,7 @@ siena_board_cfg(
 	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;
+	encp->enc_fw_subvariant_no_tx_csum_supported = B_FALSE;
 
 	/* Siena supports two 10G ports, and 8 lanes of PCIe Gen2 */
 	encp->enc_required_pcie_bandwidth_mbps = 2 * 10000;
-- 
2.7.4

  parent reply	other threads:[~2018-04-03 15:07 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-03 15:07 [dpdk-dev] [PATCH 0/5] net/sfc: support choice of FW subvariant without Tx checksum Andrew Rybchenko
2018-04-03 15:07 ` [dpdk-dev] [PATCH 1/5] net/sfc/base: update MCDI headers Andrew Rybchenko
2018-04-03 15:07 ` [dpdk-dev] [PATCH 2/5] net/sfc/base: add firmware subvariant aware driver option Andrew Rybchenko
2018-04-03 15:07 ` Andrew Rybchenko [this message]
2018-04-03 15:07 ` [dpdk-dev] [PATCH 4/5] net/sfc/base: support FW subvariant choice Andrew Rybchenko
2018-04-03 15:07 ` [dpdk-dev] [PATCH 5/5] net/sfc: support choice of FW subvariant without Tx checksum Andrew Rybchenko
2018-04-04 14:17 ` [dpdk-dev] [PATCH v2 0/5] " Andrew Rybchenko
2018-04-04 14:17   ` [dpdk-dev] [PATCH v2 1/5] net/sfc/base: update MCDI headers Andrew Rybchenko
2018-04-04 14:17   ` [dpdk-dev] [PATCH v2 2/5] net/sfc/base: add firmware subvariant aware driver option Andrew Rybchenko
2018-04-04 14:17   ` [dpdk-dev] [PATCH v2 3/5] net/sfc/base: report no Tx checksum FW subvariant support Andrew Rybchenko
2018-04-04 14:17   ` [dpdk-dev] [PATCH v2 4/5] net/sfc/base: support FW subvariant choice Andrew Rybchenko
2018-04-04 14:17   ` [dpdk-dev] [PATCH v2 5/5] net/sfc: support choice of FW subvariant without Tx checksum Andrew Rybchenko
2018-04-04 14:23 ` [dpdk-dev] [PATCH v3 0/5] " Andrew Rybchenko
2018-04-04 14:23   ` [dpdk-dev] [PATCH v3 1/5] net/sfc/base: update MCDI headers Andrew Rybchenko
2018-04-04 14:23   ` [dpdk-dev] [PATCH v3 2/5] net/sfc/base: add firmware subvariant aware driver option Andrew Rybchenko
2018-04-04 14:23   ` [dpdk-dev] [PATCH v3 3/5] net/sfc/base: report no Tx checksum FW subvariant support Andrew Rybchenko
2018-04-04 14:23   ` [dpdk-dev] [PATCH v3 4/5] net/sfc/base: support FW subvariant choice Andrew Rybchenko
2018-04-04 14:23   ` [dpdk-dev] [PATCH v3 5/5] net/sfc: support choice of FW subvariant without Tx checksum Andrew Rybchenko
2018-04-06 17:37   ` [dpdk-dev] [PATCH v3 0/5] " Ferruh Yigit

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1522768027-17384-4-git-send-email-arybchenko@solarflare.com \
    --to=arybchenko@solarflare.com \
    --cc=Andrew.Rybchenko@oktetlabs.ru \
    --cc=dev@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).