]> git.baikalelectronics.ru Git - kernel.git/commit
staging: fsl-dpaa2/eth: Cleanup TX frame freeing code
authorIoana Radulescu <ruxandra.radulescu@nxp.com>
Fri, 23 Mar 2018 13:44:11 +0000 (08:44 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Mar 2018 15:01:57 +0000 (16:01 +0100)
commit1dbb379f75f758e0866606b30dc93787a718810f
tree90abda58d3ddf9d7fd3c5f13eaecc4e05560bf17
parent5347aff0ace149d73b78f4bc80e603387146bc0d
staging: fsl-dpaa2/eth: Cleanup TX frame freeing code

Cleanup code in free_tx_fd() that deals with S/G frames:
- remove local variables that aren't really needed
- in the frame sw annotation area, store the actual SG table
buffer size, which is needed on free, rather then recompute
it based on number of S/G entries

Signed-off-by: Ioana Radulescu <ruxandra.radulescu@nxp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c
drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.h