summaryrefslogtreecommitdiff
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorSowmini Varadhan <sowmini.varadhan@oracle.com>2014-11-06 22:51:08 +0300
committerDavid S. Miller <davem@davemloft.net>2014-11-06 23:16:30 +0300
commit8c4ee3e70646d6bfdda55afe84016b914c7fdd0e (patch)
treee943ec597065f6d33713272d4e5805f3de7c052f /include/uapi/linux
parent6c3ce8a30c1bafa8952461fb76e66e2da338b7ed (diff)
downloadlinux-8c4ee3e70646d6bfdda55afe84016b914c7fdd0e.tar.xz
sunvnet: Return from vnet_napi_event() if no packets to read
vnet_event_napi() may be called as part of the NAPI ->poll, to resume reading descriptor rings. When no data is available, descriptor ring state (e.g., rcv_nxt) needs to be reset carefully to stay in lock-step with ldc_read(). In the interest of simplicity, the best way to do this is to return from vnet_event_napi() when there are no more packets to read. The next trip through ldc_rx will correctly set up the dring state. Signed-off-by: Sowmini Varadhan <sowmini.varadhan@oracle.com> Tested-by: David Stevens <david.stevens@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux')
0 files changed, 0 insertions, 0 deletions