aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/sfxge/common/efx_lic.c
Commit message (Collapse)AuthorAgeFilesLines
* sfxge: clean up empty lines in .c and .h filesMateusz Guzik2020-09-011-10/+0
| | | | Notes: svn path=/head/; revision=365086
* sfxge(4): fix ID retrieval in v3 licensingAndrew Rybchenko2018-11-301-30/+9
| | | | | | | | | | Submitted by: Andy Moreton <amoreton at solarflare.com> Sponsored by: Solarflare Communications, Inc. MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D18262 Notes: svn path=/head/; revision=341300
* sfxge(4): fix out of bounds read when dereferencing sdupAndrew Rybchenko2018-11-301-24/+15
| | | | | | | | | | | | | Introduce and use macro to make sure that MCDI buffers allocated on stack are rounded up properly. Submitted by: Gautam Dawar <gdawar at solarflare.com> Sponsored by: Solarflare Communications, Inc. MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D18259 Notes: svn path=/head/; revision=341297
* sfxge(4): generalise EF10 NVRAM buffer interfaceAndrew Rybchenko2018-11-301-4/+11
| | | | | | | | | | | | | | | | The SFN driver's PartitionControl WMI object requires an API to parse and filter partition data in TLV format, particularly for the Dynamic Config partition. The ef10_nvram_buffer functions provide this functionality but are tied to use with license partition only. Modify functions so they are applicable to all TLV partitions and add functions to support in-place tag modification. Submitted by: Richard Houldsworth <rhouldsworth at solarflare.com> Sponsored by: Solarflare Communications, Inc. Differential Revision: https://reviews.freebsd.org/D18256 Notes: svn path=/head/; revision=341294
* sfxge(4): add Medford2 support for licensingAndrew Rybchenko2018-11-281-7/+16
| | | | | | | | | Submitted by: Andy Moreton <amoreton at solarflare.com> Sponsored by: Solarflare Communications, Inc. Differential Revision: https://reviews.freebsd.org/D18202 Notes: svn path=/head/; revision=341127
* sfxge(4): update autogenerated headers from firmwaresrcAndrew Rybchenko2018-11-261-0/+3
| | | | | | | | | | | | Pick up Medford2 interfaces. Split AOE operations out into own header. Sponsored by: Solarflare Communications, Inc. Differential Revision: https://reviews.freebsd.org/D18137 Notes: svn path=/head/; revision=340930
* sfxge(4): fix warnings from VS2015 C compiler (C4100)Andrew Rybchenko2018-11-241-3/+3
| | | | | | | | | | | | | | | | | | | | Fix multiple level 4 warnings "C4100: 'xxx': unreferenced formal parameter" no functional changes. The _NOTE(ARGUNUSED(xxx)) annotations are being exposed to the Visual Studio 2015 C compiler with the following: #define _NOTE_ARGUNUSED(...) UNREFERENCED_PARAMETER((__VA_ARGS__)); #define _NOTE(_annotation) _NOTE_ ## _annotation Submitted by: Andrew Lee <alee at solarflare.com> Sponsored by: Solarflare Communications, Inc. MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D18122 Notes: svn path=/head/; revision=340888
* sfxge(4): fix probes in licensing supportAndrew Rybchenko2018-11-241-3/+3
| | | | | | | | | | | | | | | | EFSYS_PROBE1 takes one typed value (in addition to the probe name), whereas EFSYS_PROBE has just the probe name. Which to use is determined by the probe name - "fail1" probes are expected to include the function result. Submitted by: Mark Spender <mspender at solarflare.com> Sponsored by: Solarflare Communications, Inc. MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D18118 Notes: svn path=/head/; revision=340884
* sfxge(4): fix coding styleAndrew Rybchenko2018-11-241-111/+75
| | | | | | | | | Submitted by: Andy Moreton <amoreton at solarflare.com> Sponsored by: Solarflare Communications, Inc. Differential Revision: https://reviews.freebsd.org/D18115 Notes: svn path=/head/; revision=340880
* sfxge(4): cleanup: add missing space between type and pointer symbolAndrew Rybchenko2016-12-281-6/+6
| | | | | | | | | | Found by DPDK checkpatch.sh Sponsored by: Solarflare Communications, Inc. MFC after: 2 days Notes: svn path=/head/; revision=310686
* sfxge(4): cleanup: avoid C99 // commentsAndrew Rybchenko2016-12-281-6/+6
| | | | | | | | | | Found by DPDK checkpatch.sh Sponsored by: Solarflare Communications, Inc. MFC after: 2 days Notes: svn path=/head/; revision=310682
* sfxge(4): cleanup: remove unnecessary spacesAndrew Rybchenko2016-12-281-1/+1
| | | | | | | | | | Found by DPDK checkpatch.sh Sponsored by: Solarflare Communications, Inc. MFC after: 2 days Notes: svn path=/head/; revision=310681
* sfxge(4): cleanup: use spaces around binary arithmetic operationsAndrew Rybchenko2016-12-281-4/+5
| | | | | | | | | | Found by DPDK checkpatch.sh Sponsored by: Solarflare Communications, Inc. MFC after: 2 days Notes: svn path=/head/; revision=310680
* sfxge(4): cleanup: remove unused variables in common codeAndrew Rybchenko2016-06-011-9/+0
| | | | | | | | | Submitted by: Andy Moreton <amoreton at solarflare.com> Sponsored by: Solarflare Communications, Inc. MFC after: 1 week Notes: svn path=/head/; revision=301127
* sfxge(4): cleanup: add missing space after if keywordAndrew Rybchenko2016-06-011-2/+2
| | | | | | | | Sponsored by: Solarflare Communications, Inc. MFC after: 1 week Notes: svn path=/head/; revision=301125
* sfxge(4): cleanup: update copyright to 2016Andrew Rybchenko2016-05-241-1/+1
| | | | | | | | | Sponsored by: Solarflare Communications, Inc. MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D6509 Notes: svn path=/head/; revision=300607
* sfxge(4): store licensing state in efx_licAndrew Rybchenko2016-05-171-0/+19
| | | | | | | | | | | | | | Check licensing support at NIC startup to avoid multiple checks later. As state is stored, licensing initialisation is moved later in start procedure. Submitted by: Richard Houldsworth <rhouldsworth at solarflare.com> Sponsored by: Solarflare Communications, Inc. MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D6385 Notes: svn path=/head/; revision=300007
* sfxge(4): cleanup: make MCDI license queries quieter in common codeAndrew Rybchenko2016-05-161-3/+3
| | | | | | | | | Submitted by: Andy Moreton <amoreton at solarflare.com> Sponsored by: Solarflare Communications, Inc. MFC after: 1 week Notes: svn path=/head/; revision=299923
* sfxge(4): fix license validation check for V3 licensesAndrew Rybchenko2016-05-161-6/+6
| | | | | | | | | | | Length consistency checks were failing for ECC hashes. Submitted by: Richard Houldsworth <rhouldsworth at solarflare.com> Sponsored by: Solarflare Communications, Inc. MFC after: 1 week Notes: svn path=/head/; revision=299911
* sfxge(4): increase maximum size of license keysAndrew Rybchenko2016-05-161-1/+1
| | | | | | | | | | | | Increase buffer sizes for license keys to 160 bytes to accomodate ECDSA hashes. Submitted by: Richard Houldsworth <rhouldsworth at solarflare.com> Sponsored by: Solarflare Communications, Inc. MFC after: 1 week Notes: svn path=/head/; revision=299907
* sfxge(4): fix V1 licensing MCDI operationsAndrew Rybchenko2016-05-161-2/+8
| | | | | | | | | | | | | Implementation of the MCDI commands for Siena boards was requesting the wrong operation. Submitted by: Richard Houldsworth <rhouldsworth at solarflare.com> Sponsored by: Solarflare Communications, Inc. MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D6370 Notes: svn path=/head/; revision=299905
* sfxge(4): cleanup: make licensing function quieterAndrew Rybchenko2016-05-161-14/+7
| | | | | | | | | | | | | Silent handling of failure to invoke functions that are not supported on older licensing versions. Submitted by: Richard Houldsworth <rhouldsworth at solarflare.com> Sponsored by: Solarflare Communications, Inc. MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D6365 Notes: svn path=/head/; revision=299899
* sfxge(4): restructure efx_lic to support V3 licensingAndrew Rybchenko2016-05-161-1/+953
| | | | | | | | | | | | | | | Create separate implementations of the efx_lic API for each revision of the licensing system. All processing of the V1/V2 license partition is moved to efx_lic, and an implementation of V3 licensing uses the existing TLV functions with extensions for writing new TLV entries. Submitted by: Richard Houldsworth <rhouldsworth at solarflare.com> Sponsored by: Solarflare Communications, Inc. MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D6364 Notes: svn path=/head/; revision=299898
* sfxge(4): cleanup: constify common code method tablesAndrew Rybchenko2016-05-121-12/+12
| | | | | | | | | | Submitted by: Andy Moreton <amoreton at solarflare.com> Sponsored by: Solarflare Communications, Inc. MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D6317 Notes: svn path=/head/; revision=299517
* sfxge: add accessors for license-related MCDI calls to common codeAndrew Rybchenko2016-01-141-0/+792
Add support for Huntington MCDI licensing interface to common code. Ported from Linux net driver IOCTL functions with restructuring for initial support for V3 licensing API. Submitted by: Richard Houldsworth <rhouldsworth at solarflare.com> Reviewed by: gnn Sponsored by: Solarflare Communications, Inc. MFC after: 2 days Differential Revision: https://reviews.freebsd.org/D4918 Notes: svn path=/head/; revision=293901