aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/bpf/btf_dump.c
diff options
context:
space:
mode:
authorJesse Brandeburg <jesse.brandeburg@intel.com>2021-03-03 12:51:03 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-03-30 14:32:02 +0200
commit2330d46db081367db6b20161ed280b5024799fe8 (patch)
tree5882db824149f9a5d6dba7887a7bdd5e47c49468 /tools/lib/bpf/btf_dump.c
parent421e0d731070fb497212ba929df3623cfce4561d (diff)
downloadkernel_replicant_linux-2330d46db081367db6b20161ed280b5024799fe8.tar.gz
kernel_replicant_linux-2330d46db081367db6b20161ed280b5024799fe8.tar.bz2
kernel_replicant_linux-2330d46db081367db6b20161ed280b5024799fe8.zip
igb: check timestamp validity
[ Upstream commit f0a03a026857d6c7766eb7d5835edbf5523ca15c ] Add a couple of checks to make sure timestamping is on and that the timestamp value from DMA is valid. This avoids any functional issues that could come from a misinterpreted time stamp. One of the functions changed doesn't need a return value added because there was no value in checking from the calling locations. While here, fix a couple of reverse christmas tree issues next to the code being changed. Fixes: f56e7bba22fa ("igb: Pull timestamp from fragment before adding it to skb") Fixes: 9cbc948b5a20 ("igb: add XDP support") 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools/lib/bpf/btf_dump.c')
0 files changed, 0 insertions, 0 deletions