]> git.baikalelectronics.ru Git - kernel.git/commit
qed: Correct doorbell configuration for !4Kb pages
authorRam Amrani <Ram.Amrani@cavium.com>
Tue, 9 May 2017 12:07:50 +0000 (15:07 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 9 May 2017 15:24:22 +0000 (11:24 -0400)
commit787283d67706d098fe2fef206d9209d2c405a348
treec925691eaa9d40c2982a95fbff27752b81506cd5
parentb59474cda72838e3cb9f760967ccb7bd9c4c2a32
qed: Correct doorbell configuration for !4Kb pages

When configuring the doorbell DPI address, driver aligns the start
address to 4KB [HW-pages] instead of host PAGE_SIZE.
As a result, RoCE applications might receive addresses which are
unaligned to pages [when PAGE_SIZE > 4KB], which is a security risk.

Fixes: 917e79de7fa7 ("qed: Add support for RoCE hw init")
Signed-off-by: Ram Amrani <Ram.Amrani@cavium.com>
Signed-off-by: Yuval Mintz <Yuval.Mintz@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qed/qed_dev.c