diff options
author | Maxim Mikityanskiy <[email protected]> | 2019-06-26 17:35:30 +0300 |
---|---|---|
committer | Daniel Borkmann <[email protected]> | 2019-06-27 22:53:27 +0200 |
commit | a069e977d6d8f26c90a5d9374135729dc41c3a0d (patch) | |
tree | 2d0941492b91bc6fb185c2485e85fec5112f5696 /drivers/fpga/fpga-bridge.c | |
parent | 6ed9350fe0d5d1f14c25b6145b685bc7720fce6e (diff) |
net/mlx5e: Calculate linear RX frag size considering XSK
Additional conditions introduced:
- XSK implies XDP.
- Headroom includes the XSK headroom if it exists.
- No space is reserved for struct shared_skb_info in XSK mode.
- Fragment size smaller than the XSK chunk size is not allowed.
A new auxiliary function mlx5e_get_linear_rq_headroom with the support
for XSK is introduced. Use this function in the implementation of
mlx5e_get_rq_headroom. Change headroom to u32 to match the headroom
field in struct xdp_umem.
Signed-off-by: Maxim Mikityanskiy <[email protected]>
Signed-off-by: Tariq Toukan <[email protected]>
Acked-by: Saeed Mahameed <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-bridge.c')
0 files changed, 0 insertions, 0 deletions