include/sys/socket.h: Add SOCK_CTRL to socket type#8370
Conversation
|
@SPRESENSE but how to pass the ioctl to usrsock server now? |
|
Dear @xiaoxiang781216 san
This fix only add a new Socket Type for requests to Daemons that do not use the device's Socket. |
Ok, I saw SOCK_CTRL will convert to the real type: |
|
Dear @xiaoxiang781216 san
The benefit of this change is that Daemon can determine not to consume Socket resources for devices that should not consume them.(e.g. One of modem as ALT1250 can use 5 internal socket only.) |
Ok, so the patch tries to reduce the driver consumption, but not the nework stack self. Look reasonable, thanks, then let's fix the CI error. |
4be21c7 to
eb75ee4
Compare
|
@Shunichi-K please merge the intermediate change into the first patch. |
eb75ee4 to
35c0f39
Compare
|
Dear @xiaoxiang781216 san Sure. I updated a commit now. |
SOCK_CTRL is added to provide special control over network drivers and daemons. Currently, SOCK_DGRAM and SOCK_STREAM perform this control, but these use socket resources. In the case of usersocket in particular, this is a waste of the device's limited socket resources.
35c0f39 to
78bfd37
Compare
|
@SPRESENSE @xiaoxiang781216 |
|
Let me revert this PR. |
Summary
SOCK_CTRL is added to provide special control over network drivers and daemons. Currently, SOCK_DGRAM and SOCK_STREAM perform this control, but these use socket resources. In the case of usersocket in particular, this is a waste of the device's limited socket resources.
Impact
Applications using NET_SOCK_TYPE.
Testing
SPRESENSE LTE board.