summaryrefslogtreecommitdiff
path: root/tools/include
diff options
context:
space:
mode:
authorMarek BehĂșn <kabel@kernel.org>2021-11-22 23:08:34 +0300
committerDavid S. Miller <davem@davemloft.net>2021-11-23 15:37:09 +0300
commit7b1b62bc1e6a7b2fd5ee7a4296268eb291d23aeb (patch)
tree6ef73d1078582cde76c4fbfa9ee4942dcd6820e7 /tools/include
parente4e9bfb7c93d7e78aa4ad7e1c411a8df15386062 (diff)
downloadlinux-7b1b62bc1e6a7b2fd5ee7a4296268eb291d23aeb.tar.xz
net: marvell: mvpp2: increase MTU limit when XDP enabled
Currently mvpp2_xdp_setup won't allow attaching XDP program if mtu > ETH_DATA_LEN (1500). The mvpp2_change_mtu on the other hand checks whether MVPP2_RX_PKT_SIZE(mtu) > MVPP2_BM_LONG_PKT_SIZE. These two checks are semantically different. Moreover this limit can be increased to MVPP2_MAX_RX_BUF_SIZE, since in mvpp2_rx we have xdp.data = data + MVPP2_MH_SIZE + MVPP2_SKB_HEADROOM; xdp.frame_sz = PAGE_SIZE; Change the checks to check whether mtu > MVPP2_MAX_RX_BUF_SIZE Fixes: 07dd0a7aae7f ("mvpp2: add basic XDP support") Signed-off-by: Marek BehĂșn <kabel@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/include')
0 files changed, 0 insertions, 0 deletions