]> git.baikalelectronics.ru Git - kernel.git/commit
sfc: Include XDP packet headroom in buffer step size.
authorCharles McLachlan <cmclachlan@solarflare.com>
Fri, 20 Dec 2019 16:27:10 +0000 (16:27 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 21 Dec 2019 05:56:48 +0000 (21:56 -0800)
commit9fe6988496adec7ebea06477ec766f4d89d891b5
tree54429d281b249240732e8cba3191d2f63e575df1
parentb9a23191bc74caadf935c632e634593407d0d2aa
sfc: Include XDP packet headroom in buffer step size.

Correct a mismatch between rx_page_buf_step and the actual step size
used when filling buffer pages.

This patch fixes the page overrun that occured when the MTU was set to
anything bigger than 1692.

Fixes: 2e6b0faad9d7 ("sfc: allocate channels for XDP tx queues")
Signed-off-by: Charles McLachlan <cmclachlan@solarflare.com>
Signed-off-by: Edward Cree <ecree@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sfc/rx.c