]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9fa9d30f9b6b8e5feacf4af92cc072b0f416e785
treeac77f1b4b1d797c63fc06444e7660a3d572de9aa
parentfc1f863498e87aa4c4773554fa41e9aa92a03d65
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