summaryrefslogtreecommitdiffstats
path: root/include/drm/gma_drm.h
diff options
context:
space:
mode:
authorShenwei Wang <shenwei.wang@nxp.com>2023-05-04 17:35:17 +0200
committerDavid S. Miller <davem@davemloft.net>2023-05-05 10:58:06 +0200
commit26312c685ae0bca61e06ac75ee158b1e69546415 (patch)
tree0b945b53cd3a9b36b820e4a6ad214c3edb8797ee /include/drm/gma_drm.h
parentnet: enetc: check the index of the SFI rather than the handle (diff)
downloadlinux-26312c685ae0bca61e06ac75ee158b1e69546415.tar.xz
linux-26312c685ae0bca61e06ac75ee158b1e69546415.zip
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 'include/drm/gma_drm.h')
0 files changed, 0 insertions, 0 deletions