summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/sfc/ef100_nic.h
diff options
context:
space:
mode:
authorEdward Cree <ecree@solarflare.com>2020-08-03 22:33:20 +0200
committerDavid S. Miller <davem@davemloft.net>2020-08-04 03:22:54 +0200
commitadcfc3482ffff813fa2c34e5902005853f79c2aa (patch)
treeac77f1b4b1d797c63fc06444e7660a3d572de9aa /drivers/net/ethernet/sfc/ef100_nic.h
parentsfc_ef100: fail the probe if NIC uses unsol_ev credits (diff)
downloadlinux-adcfc3482ffff813fa2c34e5902005853f79c2aa.tar.xz
linux-adcfc3482ffff813fa2c34e5902005853f79c2aa.zip
sfc_ef100: read Design Parameters at probe time
Several parts of the EF100 architecture are parameterised (to allow varying capabilities on FPGAs according to resource constraints), and these parameters are exposed to the driver through a TLV-encoded region of the BAR. For the most part we either don't care about these values at all or just need to sanity-check them against the driver's assumptions, but there are a number of TSO limits which we record so that we will be able to check against them in the TX path when handling GSO skbs. Signed-off-by: Edward Cree <ecree@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/sfc/ef100_nic.h')
-rw-r--r--drivers/net/ethernet/sfc/ef100_nic.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ethernet/sfc/ef100_nic.h b/drivers/net/ethernet/sfc/ef100_nic.h
index 6367bbb2c9b3..c8816bc6ae78 100644
--- a/drivers/net/ethernet/sfc/ef100_nic.h
+++ b/drivers/net/ethernet/sfc/ef100_nic.h
@@ -26,6 +26,10 @@ struct ef100_nic_data {
u16 warm_boot_count;
u8 port_id[ETH_ALEN];
DECLARE_BITMAP(evq_phases, EFX_MAX_CHANNELS);
+ u16 tso_max_hdr_len;
+ u16 tso_max_payload_num_segs;
+ u16 tso_max_frames;
+ unsigned int tso_max_payload_len;
};
#define efx_ef100_has_cap(caps, flag) \