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)
commit11a14dc8d7a76d3117896b975c536f1372f2a7c4
tree54429d281b249240732e8cba3191d2f63e575df1
parent8700aff089843399f95bc7701ae87b642b35a716
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: 3990a8fffbda ("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