diff options
author | Pavan Chebbi <[email protected]> | 2022-08-22 11:06:51 -0400 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2022-08-23 15:32:07 -0700 |
commit | 7dd3de7cb1d657a918c6b2bc673c71e318aa0c05 (patch) | |
tree | 14871ce1ece7fb3c49b2a23f0c77907828b71a6e /tools/testing/selftests/bpf/prog_tests/autoload.c | |
parent | 15f7cfae912ea1739c8844b7edf3621ba981a37a (diff) |
bnxt_en: Use PAGE_SIZE to init buffer when multi buffer XDP is not in use
Using BNXT_PAGE_MODE_BUF_SIZE + offset as buffer length value is not
sufficient when running single buffer XDP programs doing redirect
operations. The stack will complain on missing skb tail room. Fix it
by using PAGE_SIZE when calling xdp_init_buff() for single buffer
programs.
Fixes: b231c3f3414c ("bnxt: refactor bnxt_rx_xdp to separate xdp_init_buff/xdp_prepare_buff")
Reviewed-by: Somnath Kotur <[email protected]>
Signed-off-by: Pavan Chebbi <[email protected]>
Signed-off-by: Michael Chan <[email protected]>
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions