WSL2-Linux-Kernel/drivers/net/ethernet/intel
Jesse Brandeburg f0a03a0268 igb: check timestamp validity
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: f56e7bba22 ("igb: Pull timestamp from fragment before adding it to skb")
Fixes: 9cbc948b5a ("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>
2021-03-19 08:47:46 -07:00
..
e1000 e1000: drop unneeded assignment in e1000_set_itr() 2021-02-03 16:32:18 -08:00
e1000e e1000e: Fix duplicate include guard 2021-03-19 08:47:46 -07:00
fm10k net: use the new dev_page_is_reusable() instead of private versions 2021-02-04 18:20:14 -08:00
i40e i40e: move headroom initialization to i40e_configure_rx_ring 2021-03-12 07:43:46 -08:00
iavf net: intel: iavf: fix error return code of iavf_init_get_resources() 2021-03-05 12:59:32 -08:00
ice ice: move headroom initialization to ice_setup_rx_ctx 2021-03-12 07:43:46 -08:00
igb igb: check timestamp validity 2021-03-19 08:47:46 -07:00
igbvf net: igbvf: use skb_csum_is_sctp instead of protocol check 2021-01-19 14:31:25 -08:00
igc igc: Fix igc_ptp_rx_pktstamp() 2021-03-11 09:37:48 -08:00
ixgb intel: handle unused assignments 2020-09-25 16:28:59 -07:00
ixgbe ixgbe: move headroom initialization to ixgbe_configure_rx_ring 2021-03-12 07:43:46 -08:00
ixgbevf ixgbe: fail to create xfrm offload of IPsec tunnel mode SA 2021-03-04 11:05:05 -08:00
Kconfig ice: implement device flash update via devlink 2020-07-28 17:07:06 -07:00
Makefile igc: Add skeletal frame for Intel(R) 2.5G Ethernet Controller support 2018-10-17 12:14:54 -07:00
e100.c e100: switch from 'pci_' to 'dma_' API 2021-01-28 18:31:18 -08:00