sfc_ef100: read Design Parameters at probe time
authorEdward Cree <ecree@solarflare.com>
Mon, 3 Aug 2020 20:33:20 +0000 (21:33 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 4 Aug 2020 01:22:54 +0000 (18:22 -0700)
commitadcfc3482ffff813fa2c34e5902005853f79c2aa
treeac77f1b4b1d797c63fc06444e7660a3d572de9aa
parent4496363bec32df36df51db7f915a11d3b38615e3
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>
drivers/net/ethernet/sfc/ef100_nic.c
drivers/net/ethernet/sfc/ef100_nic.h