Re: j1939: discussion: RX path

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 6/26/19 11:55 AM, David Jander wrote:
>> One more question regarding isolation of different sockets. Should we
>> allow a bind()+connect() to the same tuple (SRC/DST/PGN) from more than
>> one socket? We have to take care of Names, too...somehow.
> 
> Good question... does that have impact on the code? Is it easier to restrict
> it to one instance, or is it easier to just sent duplicated data to the same
> kind of sockets?

For now we receive the whole (E)TP in kernel and dump the whole message
into all matching sockets. So it doesn't make any difference here.

We were also having incremental recv() in the back of our heads, it's
probably easier with only one socket.

However it probably only makes sense on connect()ed sockets, as an
ongoing huge ETP will block every small packet. And huge ETP transfers
can take up to an hour...

Marc

-- 
Pengutronix e.K.                  | Marc Kleine-Budde           |
Industrial Linux Solutions        | Phone: +49-231-2826-924     |
Vertretung West/Dortmund          | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de   |

Attachment: signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [Automotive Discussions]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]     [CAN Bus]

  Powered by Linux