diff options
author | Subbaraya Sundeep <[email protected]> | 2021-10-10 15:39:35 +0530 |
---|---|---|
committer | David S. Miller <[email protected]> | 2021-10-10 11:46:54 +0100 |
commit | 0182d0788cd66292cb1698b48dd21887d93c68ed (patch) | |
tree | a53197977f48295215c05a2dd69a5ff6acc16319 /tools/perf/scripts/python/libxed.py | |
parent | b9c56ccb436d1e952bb1fc0ddf752669a116b310 (diff) |
octeontx2-pf: Simplify the receive buffer size calculation
This patch separates the logic of configuring hardware
maximum transmit frame size and receive frame size.
This simplifies the logic to calculate receive buffer
size and using cqe descriptor of different size.
Also additional size of skb_shared_info structure is
allocated for each receive buffer pointer given to
hardware which is not necessary. Hence change the
size calculation to remove the size of
skb_shared_info. Add a check for array out of
bounds while adding fragments to the network stack.
Signed-off-by: Subbaraya Sundeep <[email protected]>
Signed-off-by: Hariprasad Kelam <[email protected]>
Signed-off-by: Sunil Goutham <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions