diff options
author | Jesse Brandeburg <jesse.brandeburg@intel.com> | 2021-03-25 17:38:28 -0700 |
---|---|---|
committer | Tony Nguyen <anthony.l.nguyen@intel.com> | 2021-05-26 09:11:41 -0700 |
commit | c7cbfb028b95360403d579c47aaaeef1ff140964 (patch) | |
tree | 031e6fe0d24cf4546281008a3817e66e50f3c074 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 88c228b22e001cce1d36112b883bd320c0893ef8 (diff) |
igb: handle vlan types with checker enabled
The sparse build (C=2) finds some issues with how the driver
dealt with the (very difficult) hardware that in some generations
uses little-endian, and in others uses big endian, for the VLAN
field. The code as written picks __le16 as a type and for some
hardware revisions we override it to __be16 as done in this
patch. This impacted the VF driver as well so fix it there too.
Also change the vlan_tci assignment to override the sparse
warning without changing functionality.
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: Dave Switzer <david.switzer@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions