freebsd-skq/sys/dev/sfxge/common
Andrew Rybchenko ec30f0bec6 sfxge(4): fix power of 2 round up when align has smaller type
Substitute driver-defined P2ROUNDUP() h with EFX_P2ROUNDUP()
defined in libefx.

Cast value and alignment to one specified type to guarantee result
correctness.

Reported by:	Andrea Valsania <andrea.valsania at answervad.it>
Reviewed by:    philip
Sponsored by:   Solarflare Communications, Inc.
MFC after:      2 days
Differential Revision:  https://reviews.freebsd.org/D21074
2019-07-27 09:36:27 +00:00
..
ef10_ev.c sfxge(4): add routine to check for hardware presence 2018-11-30 07:05:49 +00:00
ef10_filter.c sfxge(4): fix a typo in unicast filter insertion comment 2018-11-30 07:06:35 +00:00
ef10_image.c sfxge(4): add signed image layout support 2018-11-29 06:41:41 +00:00
ef10_impl.h sfxge(4): fix power of 2 round up when align has smaller type 2019-07-27 09:36:27 +00:00
ef10_intr.c sfxge(4): fix out of bounds read when dereferencing sdup 2018-11-30 07:05:36 +00:00
ef10_mac.c sfxge(4): add accessor to whole link status 2018-11-30 07:09:46 +00:00
ef10_mcdi.c sfxge(4): refactoring eliminating code analysis warnings 2018-11-27 12:59:09 +00:00
ef10_nic.c sfxge(4): update external port number calculation 2018-11-30 07:10:32 +00:00
ef10_nvram.c sfxge(4): fix power of 2 round up when align has smaller type 2019-07-27 09:36:27 +00:00
ef10_phy.c sfxge(4): add accessor to whole link status 2018-11-30 07:09:46 +00:00
ef10_rx.c sfxge(4): fix power of 2 round up when align has smaller type 2019-07-27 09:36:27 +00:00
ef10_signed_image_layout.h sfxge(4): add firmware image layout option 2018-11-29 06:29:24 +00:00
ef10_tlv_layout.h sfxge(4): update autogenerated MCDI and TLV headers 2018-11-29 06:45:04 +00:00
ef10_tx.c sfxge(4): fix out of bounds read when dereferencing sdup 2018-11-30 07:05:36 +00:00
ef10_vpd.c sfxge(4): refactoring eliminating code analysis warnings 2018-11-27 12:59:09 +00:00
efsys.h sfxge(4): fix power of 2 round up when align has smaller type 2019-07-27 09:36:27 +00:00
efx_annote.h sfxge(4): check buffer size for hash flags 2018-11-30 07:07:09 +00:00
efx_bootcfg.c sfxge(4): add buffer editing functions to boot config 2018-11-30 07:04:37 +00:00
efx_check.h sfxge(4): support equal stride super-buffer Rx mode 2018-11-29 06:45:38 +00:00
efx_crc32.c
efx_ev.c sfxge(4): ensure EvQ poll stops when abort is requested 2018-11-30 07:10:54 +00:00
efx_filter.c sfxge(4): add helper API to make Geneve filter spec 2018-11-30 07:08:05 +00:00
efx_hash.c
efx_impl.h sfxge(4): add accessor to whole link status 2018-11-30 07:09:46 +00:00
efx_intr.c sfxge(4): correct annotations where NULL input is OK 2018-11-30 07:10:20 +00:00
efx_lic.c sfxge(4): fix ID retrieval in v3 licensing 2018-11-30 07:06:13 +00:00
efx_mac.c sfxge(4): generate Medford2 RxDP stats 2018-11-29 06:46:33 +00:00
efx_mcdi.c sfxge(4): use transceiver ID when reading info 2018-11-30 07:09:58 +00:00
efx_mcdi.h sfxge(4): fix power of 2 round up when align has smaller type 2019-07-27 09:36:27 +00:00
efx_mon.c sfxge(4): add API to retrieve sensor limits 2018-11-30 07:04:25 +00:00
efx_nic.c sfxge(4): report support for Tx checksum op descriptors 2018-12-10 09:35:45 +00:00
efx_nvram.c sfxge(4): fix out of bounds read when dereferencing sdup 2018-11-30 07:05:36 +00:00
efx_phy_ids.h
efx_phy.c sfxge(4): add accessor to whole link status 2018-11-30 07:09:46 +00:00
efx_port.c sfxge(4): fix PreFAST warnings because of unused return 2018-11-29 06:47:06 +00:00
efx_regs_ef10.h sfxge(4): add equal stride super-buffer prefix layout 2018-11-29 06:45:50 +00:00
efx_regs_mcdi_aoe.h sfxge(4): update MCDI headers 2018-11-29 06:43:23 +00:00
efx_regs_mcdi_strs.h sfxge(4): add generated description of sensors 2018-11-30 05:54:30 +00:00
efx_regs_mcdi.h sfxge(4): update autogenerated MCDI and TLV headers 2018-11-29 06:45:04 +00:00
efx_regs_pci.h
efx_regs.h
efx_rx.c sfxge(4): correct annotations where NULL input is OK 2018-11-30 07:10:20 +00:00
efx_sram.c sfxge(4): add Medford2 support to SRAM module 2018-11-27 12:21:53 +00:00
efx_tunnel.c sfxge(4): fix out of bounds read when dereferencing sdup 2018-11-30 07:05:36 +00:00
efx_tx.c sfxge(4): fix power of 2 round up when align has smaller type 2019-07-27 09:36:27 +00:00
efx_types.h sfxge(4): cope with clang warning on negative shift 2018-11-29 06:44:20 +00:00
efx_vpd.c sfxge(4): add Medford2 support to VPD module 2018-11-27 12:22:14 +00:00
efx.h sfxge(4): fix power of 2 round up when align has smaller type 2019-07-27 09:36:27 +00:00
hunt_impl.h
hunt_nic.c sfxge(4): support improvements to bandwidth calculations 2018-11-30 07:09:11 +00:00
mcdi_mon.c sfxge(4): fix out of bounds read when dereferencing sdup 2018-11-30 07:05:36 +00:00
mcdi_mon.h sfxge(4): add API to retrieve sensor limits 2018-11-30 07:04:25 +00:00
medford2_impl.h sfxge(4): add Medford2 support to NIC module 2018-11-27 12:14:16 +00:00
medford2_nic.c sfxge(4): support improvements to bandwidth calculations 2018-11-30 07:09:11 +00:00
medford_impl.h sfxge(4): remove unused defined for WPTR alignment 2018-11-24 15:24:35 +00:00
medford_nic.c sfxge(4): support improvements to bandwidth calculations 2018-11-30 07:09:11 +00:00
siena_flash.h sfxge(4): regenerate files with genfwdef after ID update 2018-11-26 07:15:19 +00:00
siena_impl.h sfxge(4): fix diagnostics support build without Siena 2018-11-24 16:29:11 +00:00
siena_mac.c sfxge(4): fix out of bounds read when dereferencing sdup 2018-11-30 07:05:36 +00:00
siena_mcdi.c sfxge(4): refactoring eliminating code analysis warnings 2018-11-27 12:59:09 +00:00
siena_nic.c sfxge(4): guard Rx scale code with corresponding option 2018-11-30 07:09:34 +00:00
siena_nvram.c sfxge(4): fix out of bounds read when dereferencing sdup 2018-11-30 07:05:36 +00:00
siena_phy.c sfxge(4): fix out of bounds read when dereferencing sdup 2018-11-30 07:05:36 +00:00
siena_sram.c
siena_vpd.c sfxge(4): refactoring eliminating code analysis warnings 2018-11-27 12:59:09 +00:00