linux-stable/include/linux/qed
Alexander Lobakin 9b6ee3cf95 qed: sanitize PBL chains allocation
PBL chain elements are actually DMA addresses stored in __le64, but
currently their size is hardcoded to 8, and DMA addresses are assigned
via cast to variable-sized dma_addr_t without any bitwise conversions.
Change the type of pbl_virt array to match the actual one, add a new
field to store the size of allocated DMA memory and sanitize elements
assignment.

Misc: give more logic names to the members of qed_chain::pbl_sp embedded
struct.

Signed-off-by: Alexander Lobakin <alobakin@marvell.com>
Signed-off-by: Igor Russkikh <irusskikh@marvell.com>
Signed-off-by: Michal Kalderon <michal.kalderon@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-07-22 18:19:03 -07:00
..
common_hsi.h net: qed: update copyright years 2020-06-30 15:51:40 -07:00
eth_common.h net: qed: update copyright years 2020-06-30 15:51:40 -07:00
fcoe_common.h net: qed: update copyright years 2020-06-30 15:51:40 -07:00
iscsi_common.h net: qed: update copyright years 2020-06-30 15:51:40 -07:00
iwarp_common.h net: qed: update copyright years 2020-06-30 15:51:40 -07:00
qed_chain.h qed: sanitize PBL chains allocation 2020-07-22 18:19:03 -07:00
qed_eth_if.h net: qed: update copyright years 2020-06-30 15:51:40 -07:00
qed_fcoe_if.h net: qed: update copyright years 2020-06-30 15:51:40 -07:00
qed_if.h qed: add support for the extended speed and FEC modes 2020-07-20 17:59:44 -07:00
qed_iov_if.h net: qed: update copyright years 2020-06-30 15:51:40 -07:00
qed_iscsi_if.h net: qed: update copyright years 2020-06-30 15:51:40 -07:00
qed_ll2_if.h net: qed: update copyright years 2020-06-30 15:51:40 -07:00
qed_rdma_if.h net: qed: update copyright years 2020-06-30 15:51:40 -07:00
qede_rdma.h net: qed: update copyright years 2020-06-30 15:51:40 -07:00
rdma_common.h net: qed: update copyright years 2020-06-30 15:51:40 -07:00
roce_common.h net: qed: update copyright years 2020-06-30 15:51:40 -07:00
storage_common.h net: qed: update copyright years 2020-06-30 15:51:40 -07:00
tcp_common.h net: qed: update copyright years 2020-06-30 15:51:40 -07:00