aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJacob Keller <jacob.e.keller@intel.com>2019-02-28 09:52:53 -0800
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2019-05-03 14:31:39 -0700
commita01e5f222f210548ee88de8841176562d5d52c24 (patch)
treef104814d3df9a34329fd688c9e9762fed576c3f1 /tools/perf/scripts/python
parenti40e: Further implementation of LLDP (diff)
downloadlinux-a01e5f222f210548ee88de8841176562d5d52c24.tar.gz
linux-a01e5f222f210548ee88de8841176562d5d52c24.zip
i40e: remove out-of-range comparisons in i40e_validate_cloud_filter
The function i40e_validate_cloud_filter checks that the destination and source port numbers are valid by attempting to ensure that the number is non-zero and no larger than 0xFFFF. However, the types for the dst_port and src_port variable are __be16 which by definition cannot be larger than 0xFFFF Since these values cannot be larger than 2 bytes, the check to see if they exceed 0xFFFF is meaningless. One might consider these checks as some sort of defensive coding, in case the type was later changed. However, these checks also byte-swap the value before comparison using be16_to_cpu, which will truncate the values to 16bits anyways. Additionally, changing the type would require updating the opcodes to support new data layout of these virtchnl commands. Remove the check to silence the -Wtype-limits warning that was added to GCC 8. Signed-off-by: Jacob Keller <jacob.e.keller@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
tions'>-6/+3 2019-01-20gcc-plugins: arm_ssp_per_task_plugin: fix for GCC 9+Ard Biesheuvel1-0/+18 2019-01-20gcc-plugins: arm_ssp_per_task_plugin: sign extend the SP maskArd Biesheuvel1-2/+3 2019-01-21fix int_sqrt64() for very large numbersFlorian La Roche1-1/+1 2019-01-20x86: uaccess: Inhibit speculation past access_ok() in user_access_begin()Will Deacon1-1/+1 2019-01-20bpf: in __bpf_redirect_no_mac pull mac only if presentWillem de Bruijn2-10/+12 2019-01-19virtio_net: bulk free tx skbsMichael S. Tsirkin1-6/+6 2019-01-19clang-format: Update .clang-format with the latest for_each macro listJason Gunthorpe1-1/+42 2019-01-19net: phy: phy driver features are mandatoryCamelia Groza2-2/+7 2019-01-19isdn: avm: Fix string plus integer warning from ClangNathan Chancellor1-1/+1 2019-01-19powerpc: chrp: Use of_node_is_type to access device_typeRob Herring1-2/+1 2019-01-18net/mlx5e: Fix cb_ident duplicate in indirect block registerEli Britstein1-13/+16 2019-01-18net/mlx5e: Fix wrong (zero) TX drop counter indication for representorTariq Toukan1-0/+1 2019-01-18net/mlx5e: Fix wrong error code return on FEC query failureShay Agroskin1-1/+4 2019-01-18net/mlx5e: Force CHECKSUM_UNNECESSARY for short ethernet framesCong Wang1-0/+13 2019-01-18tools: bpftool: Cleanup license messThomas Gleixner2-11/+1 2019-01-18bpf: fix inner map masking to prevent oob under speculationDaniel Borkmann1-2/+15