All of lore.kernel.org
 help / color / mirror / Atom feed
From: Edward Cree <ecree@solarflare.com>
To: <linux-net-drivers@solarflare.com>, <davem@davemloft.net>
Cc: <netdev@vger.kernel.org>
Subject: [PATCH net-next 11/12] sfc_ef100: read pf_index at probe time
Date: Thu, 30 Jul 2020 15:40:34 +0100	[thread overview]
Message-ID: <33169027-ade5-05a8-94f1-8dab09eb682b@solarflare.com> (raw)
In-Reply-To: <abac4f27-7fac-2bd4-636b-4cfc401603ae@solarflare.com>

We'll need it later, for VF representors.

Signed-off-by: Edward Cree <ecree@solarflare.com>
---
 drivers/net/ethernet/sfc/ef100_nic.c | 4 ++++
 drivers/net/ethernet/sfc/ef100_nic.h | 1 +
 2 files changed, 5 insertions(+)

diff --git a/drivers/net/ethernet/sfc/ef100_nic.c b/drivers/net/ethernet/sfc/ef100_nic.c
index f2eb6ce0760d..48083ae52db1 100644
--- a/drivers/net/ethernet/sfc/ef100_nic.c
+++ b/drivers/net/ethernet/sfc/ef100_nic.c
@@ -1082,6 +1082,10 @@ static int ef100_probe_main(struct efx_nic *efx)
 	if (rc)
 		goto fail;
 
+	rc = efx_get_pf_index(efx, &nic_data->pf_index);
+	if (rc)
+		goto fail;
+
 	rc = efx_ef100_init_datapath_caps(efx);
 	if (rc < 0)
 		goto fail;
diff --git a/drivers/net/ethernet/sfc/ef100_nic.h b/drivers/net/ethernet/sfc/ef100_nic.h
index 7c2d37490074..4a64c9438493 100644
--- a/drivers/net/ethernet/sfc/ef100_nic.h
+++ b/drivers/net/ethernet/sfc/ef100_nic.h
@@ -63,6 +63,7 @@ struct ef100_nic_data {
 	u32 datapath_caps;
 	u32 datapath_caps2;
 	u32 datapath_caps3;
+	unsigned int pf_index;
 	u16 warm_boot_count;
 	u8 port_id[ETH_ALEN];
 	DECLARE_BITMAP(evq_phases, EFX_MAX_CHANNELS);


  parent reply	other threads:[~2020-07-30 14:40 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-30 14:31 [PATCH net-next 00/12] sfc: driver for EF100 family NICs, part 2 Edward Cree
2020-07-30 14:33 ` [PATCH net-next 01/12] sfc_ef100: check firmware version at start-of-day Edward Cree
2020-07-30 14:34 ` [PATCH net-next 02/12] sfc_ef100: fail the probe if NIC uses unsol_ev credits Edward Cree
2020-07-30 14:35 ` [PATCH net-next 03/12] sfc_ef100: read Design Parameters at probe time Edward Cree
2020-07-30 14:36 ` [PATCH net-next 04/12] sfc_ef100: TX path for EF100 NICs Edward Cree
2020-07-30 14:36 ` [PATCH net-next 05/12] sfc_ef100: RX filter table management and related gubbins Edward Cree
2020-07-30 17:42   ` kernel test robot
2020-07-30 17:42     ` kernel test robot
2020-07-30 14:37 ` [PATCH net-next 06/12] sfc_ef100: RX path for EF100 Edward Cree
2020-07-30 14:38 ` [PATCH net-next 07/12] sfc_ef100: plumb in fini_dmaq Edward Cree
2020-07-30 14:38 ` [PATCH net-next 08/12] sfc_ef100: statistics gathering Edward Cree
2020-07-30 19:25   ` kernel test robot
2020-07-30 19:25     ` kernel test robot
2020-07-30 14:39 ` [PATCH net-next 09/12] sfc_ef100: functions for selftests Edward Cree
2020-07-30 14:39 ` [PATCH net-next 10/12] sfc_ef100: add ethtool ops and miscellaneous ndos Edward Cree
2020-07-30 14:40 ` Edward Cree [this message]
2020-07-30 14:40 ` [PATCH net-next 12/12] sfc_ef100: add nic-type for VFs, and bind to them Edward Cree
2020-07-30 18:10 ` [PATCH net-next 00/12] sfc: driver for EF100 family NICs, part 2 Edward Cree

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=33169027-ade5-05a8-94f1-8dab09eb682b@solarflare.com \
    --to=ecree@solarflare.com \
    --cc=davem@davemloft.net \
    --cc=linux-net-drivers@solarflare.com \
    --cc=netdev@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.