aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/sun
diff options
context:
space:
mode:
authorSubbaraya Sundeep <sbhatta@marvell.com>2021-10-10 15:39:35 +0530
committerDavid S. Miller <davem@davemloft.net>2021-10-10 11:46:54 +0100
commit0182d0788cd66292cb1698b48dd21887d93c68ed (patch)
treea53197977f48295215c05a2dd69a5ff6acc16319 /drivers/net/ethernet/sun
parentethernet: Remove redundant 'flush_workqueue()' calls (diff)
downloadlinux-dev-0182d0788cd66292cb1698b48dd21887d93c68ed.tar.xz
linux-dev-0182d0788cd66292cb1698b48dd21887d93c68ed.zip
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 <sbhatta@marvell.com> Signed-off-by: Hariprasad Kelam <hkelam@marvell.com> Signed-off-by: Sunil Goutham <sgoutham@marvell.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/sun')
0 files changed, 0 insertions, 0 deletions