summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorShenwei Wang <shenwei.wang@nxp.com>2023-05-04 18:35:17 +0300
committerDavid S. Miller <davem@davemloft.net>2023-05-05 11:58:06 +0300
commit26312c685ae0bca61e06ac75ee158b1e69546415 (patch)
tree0b945b53cd3a9b36b820e4a6ad214c3edb8797ee /net
parent299efdc2380aac588557f4d0b2ce7bee05bd0cf2 (diff)
downloadlinux-26312c685ae0bca61e06ac75ee158b1e69546415.tar.xz
net: fec: correct the counting of XDP sent frames
In the current xdp_xmit implementation, if any single frame fails to transmit due to insufficient buffer descriptors, the function nevertheless reports success in sending all frames. This results in erroneously indicating that frames were transmitted when in fact they were dropped. This patch fixes the issue by ensureing the return value properly indicates the actual number of frames successfully transmitted, rather than potentially reporting success for all frames when some could not transmit. Fixes: 6d6b39f180b8 ("net: fec: add initial XDP support") Signed-off-by: Gagandeep Singh <g.singh@nxp.com> Signed-off-by: Shenwei Wang <shenwei.wang@nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions