sfc: Add XDP frame size
authorJesper Dangaard Brouer <brouer@redhat.com>
Thu, 14 May 2020 10:49:12 +0000 (12:49 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 15 May 2020 04:21:54 +0000 (21:21 -0700)
commit983e43451830742fa93f83656ccbdcb865ea4259
treef0e236cfb7c075e68f9ac05fe16f93811338ed5e
parent63fe91ab3d1c5c0b4497b993b8eeaa54f6688d53
sfc: Add XDP frame size

This driver uses RX page-split when possible. It was recently fixed
in commit 86e85bf6981c ("sfc: fix XDP-redirect in this driver") to
add needed tailroom for XDP-redirect.

After the fix efx->rx_page_buf_step is the frame size, with enough
head and tail-room for XDP-redirect.

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/158945335278.97035.14611425333184621652.stgit@firesoul
drivers/net/ethernet/sfc/rx.c