-
Notifications
You must be signed in to change notification settings - Fork 1.5k
net/can: add write buffer to support nonblock send #17435
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@simbit18 seems like github is having difficulties: error: failed retrieving file 'vim-9.1.1623-1-x86_64.pkg.tar.zst.sig' from ftp2.osuosl.org : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds |
|
Hi @acassis , let's wait for all the jobs to finish running and then restart the msys2 job. |
Question: is there some way to avoid download the source code packages all the time? Maybe adding it to the docker machine directly? |
|
@acassis , previously the cache was enabled for GitHub Action to setup MSYS2, but to avoid closing the NuttX repository, we had to make some cuts. :) |
Thank you @simbit18 ! I don't understand why ASF was limiting our job runners, but they keep the same amount for all projects, even projects that are dead. |
acassis
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@zhhyu7 new feature without Documentation, please add https://nuttx.apache.org/docs/latest/components/drivers/character/can.html
|
@zhhyu7 I noticed that the CAN documentation starts with wrong information: "NuttX supports only a very low-level CAN driver.", could you please fix it when updating the RST file? |
OK. |
@acassis please review again. |
|
Really good Documentation @zhhyu7 !!! Thank you for doing it! |
Documentation already added, just need some modifications
correction return value Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
after the socket calls bind with ifindex is 0, it can receive packets from all can devices Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
The sending of can socket can support more scenarios Signed-off-by: wangjinjing1 <wangjinjing1@xiaomi.com>
standardize the usage of semphore Signed-off-by: wangjinjing1 <wangjinjing1@xiaomi.com>
If there is data in readahead, it needs to be released; otherwise, it will cause the leakage of IOB resources Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2a70366
Summary
add write buffer to support nonblock send, and improve the processing of some code.
Impact
Partial return values of can socket bind,
The sending method of can_sendmsg.
Testing
INFINEON board.
After the can socket is bound to the CAN network card, data is sent and received in nonblock mode.